be3514e25c
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>
41 lines
791 B
RPMSpec
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
|