name = audit
version = 2.1.3
-release = 3
+release = 4
groups = System/Daemons
url = http://people.redhat.com/sgrubb/audit/
packages
package %{name}
+
+ prerequires += systemd-units
+
+ script postin
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ script preun
+ /bin/systemctl --no-reload disable auditd.service >/dev/null 2>&1 || :
+ /bin/systemctl stop auditd.service >/dev/null 2>&1 || :
+ end
+
+ script postun
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ end
+
+ script postup
+ /bin/systemctl daemon-reload >/dev/null 2>&1 || :
+ /bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
+ end
end
package %{name}-libs