integ/config-files/audit-config/centos/audit-config.spec
slin14 be3514e25c refactor audit
Package audit-config is created to config customized config
file of audit. Since there is no other change for audit,
we could replace srpm with rpm directly.

audit-config is set to depends on audit, so audit rpm will be
installed automatically.

Test:
Pass build and multi node deploy test. Confirm syslog.conf is
the same as before in the deploy.

Story: 2003768
Task: 27602
Depends-On: https://review.openstack.org/617174

Change-Id: I6101142642dd21c35e7db1352cc8c9aa05fba923
Signed-off-by: slin14 <shuicheng.lin@intel.com>
2018-11-12 19:51:58 +08:00

41 lines
791 B
RPMSpec

Summary: StarlingX audit Configuration File
Name: audit-config
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: config-files
Packager: StarlingX
URL: unknown
Source: %name-%version.tar.gz
BuildArch: noarch
Requires: audit
Requires: audit-libs
Requires: audit-libs-python
%define debug_package %{nil}
%description
StarlingX audit configuration file
%prep
%setup
%build
%install
install -d %{buildroot}%{_datadir}/starlingx
install -m640 syslog.conf %{buildroot}%{_datadir}/starlingx/syslog.conf
%post
if [ $1 -eq 1 ] ; then
cp -f %{_datadir}/starlingx/syslog.conf %{_sysconfdir}/audisp/plugins.d/syslog.conf
chmod 640 %{_sysconfdir}/audisp/plugins.d/syslog.conf
fi
%files
%defattr(-,root,root)
%license LICENSE
%{_datadir}/starlingx/syslog.conf