packages: audit/audit.spec, audit/auditd.service (NEW) - rel 2; add systemd...

cactus cactus at pld-linux.org
Fri Dec 2 16:48:12 CET 2011


Author: cactus                       Date: Fri Dec  2 15:48:12 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 2; add systemd service

---- Files affected:
packages/audit:
   audit.spec (1.82 -> 1.83) , auditd.service (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/audit/audit.spec
diff -u packages/audit/audit.spec:1.82 packages/audit/audit.spec:1.83
--- packages/audit/audit.spec:1.82	Wed Aug 17 20:45:57 2011
+++ packages/audit/audit.spec	Fri Dec  2 16:48:06 2011
@@ -9,13 +9,14 @@
 Summary(pl.UTF-8):	Narzędzia przestrzeni użytkownika do audytu jąder 2.6
 Name:		audit
 Version:	2.1.3
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Daemons
 Source0:	http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
 # Source0-md5:	abf26e3ac09f666905c5636dd24611fa
 Source2:	%{name}d.init
 Source3:	%{name}d.sysconfig
+Source4:	%{name}d.service
 Patch0:		%{name}-install.patch
 Patch1:		%{name}-m4.patch
 Patch2:		%{name}-nolibs.patch
@@ -132,6 +133,14 @@
 %description -n python-audit -l pl.UTF-8
 Pythonowy interfejs do biblioteki libaudit.
 
+%package systemd
+Summary:	systemd units for audit
+Group:		Base
+Requires:	%{name} = %{version}-%{release}
+
+%description systemd
+systemd units for audit.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -181,11 +190,12 @@
 	$RPM_BUILD_ROOT%{_libdir}/libauparse.so
 
 # We manually install this since Makefile doesn't
-install -d $RPM_BUILD_ROOT%{_includedir}
+install -d $RPM_BUILD_ROOT{%{_includedir},/lib/systemd/system}
 install lib/libaudit.h $RPM_BUILD_ROOT%{_includedir}
 
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd
+install %{SOURCE4} $RPM_BUILD_ROOT/lib/systemd/system
 
 %if %{with python}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
@@ -285,6 +295,10 @@
 %{_libdir}/libaudit.a
 %{_libdir}/libauparse.a
 
+%files systemd
+%defattr(644,root,root,755)
+/lib/systemd/system/auditd.service
+
 %if %{with prelude}
 %files plugin-prelude
 %defattr(644,root,root,755)
@@ -309,6 +323,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.83  2011/12/02 15:48:06  cactus
+- rel 2; add systemd service
+
 Revision 1.82  2011/08/17 18:45:57  qboosh
 - updated to 2.1.3
 

================================================================
Index: packages/audit/auditd.service
diff -u /dev/null packages/audit/auditd.service:1.1
--- /dev/null	Fri Dec  2 16:48:12 2011
+++ packages/audit/auditd.service	Fri Dec  2 16:48:07 2011
@@ -0,0 +1,11 @@
+[Unit]
+Description=Security Auditing Service
+After=syslog.target
+
+[Service]
+ExecStart=/sbin/auditd -n
+ExecStartPost=/sbin/auditctl -R /etc/audit/audit.rules
+
+[Install]
+WantedBy=multi-user.target
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/audit/audit.spec?r1=1.82&r2=1.83&f=u



More information about the pld-cvs-commit mailing list