Enable by default (#737060)
This commit is contained in:
parent
8dd6547d12
commit
33ec4fcb44
22
audit.spec
22
audit.spec
@ -3,7 +3,7 @@
|
|||||||
Summary: User space tools for 2.6 kernel auditing
|
Summary: User space tools for 2.6 kernel auditing
|
||||||
Name: audit
|
Name: audit
|
||||||
Version: 2.1.3
|
Version: 2.1.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://people.redhat.com/sgrubb/audit/
|
URL: http://people.redhat.com/sgrubb/audit/
|
||||||
@ -145,21 +145,24 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
# Initial installation
|
||||||
|
/bin/systemctl enable auditd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
if [ $1 -eq 0 ] ; then
|
||||||
if [ $1 -ge 1 ] ; then
|
# Package removal, not upgrade
|
||||||
/bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
|
/bin/systemctl --no-reload disable auditd.service > /dev/null 2>&1 || :
|
||||||
|
/bin/systemctl stop auditd.service > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 = 0 ]; then
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
/bin/systemctl --no-reload auditd.service > /dev/null 2>&1 || :
|
if [ $1 -ge 1 ] ; then
|
||||||
/bin/systemctl stop auditd.service > /dev/null 2>&1 || :
|
# Package upgrade, not uninstall
|
||||||
|
/bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%triggerun -- audit < 2.1.2-2
|
%triggerun -- audit < 2.1.2-2
|
||||||
@ -252,6 +255,9 @@ fi
|
|||||||
%attr(644,root,root) %{_mandir}/man8/audisp-remote.8.gz
|
%attr(644,root,root) %{_mandir}/man8/audisp-remote.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Sep 14 2011 Steve Grubb <sgrubb@redhat.com> 2.1.3-3
|
||||||
|
- Enable by default (#737060)
|
||||||
|
|
||||||
* Tue Aug 30 2011 Steve Grubb <sgrubb@redhat.com> 2.1.3-2
|
* Tue Aug 30 2011 Steve Grubb <sgrubb@redhat.com> 2.1.3-2
|
||||||
- Correct misplaced %ifnarch (#734359)
|
- Correct misplaced %ifnarch (#734359)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user