[packages/audit] - up to 2.3.2 - updated systemd-notonly patch
qboosh
qboosh at pld-linux.org
Sat Aug 24 22:06:24 CEST 2013
commit 6c98eb8c0cc33411a22fcfe6ea4c4842442fef24
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Aug 24 22:05:48 2013 +0200
- up to 2.3.2
- updated systemd-notonly patch
audit-systemd-notonly.patch | 17 ++++++++++++-----
audit.spec | 11 +++++------
2 files changed, 17 insertions(+), 11 deletions(-)
---
diff --git a/audit.spec b/audit.spec
index 3656b18..0d45412 100644
--- a/audit.spec
+++ b/audit.spec
@@ -1,10 +1,6 @@
# TODO: - revise our auditd.service vs upstream version
# - add triggers for existing rules
# look at https://www.redhat.com/archives/linux-audit/2013-May/msg00000.html
-# - files:
-# warning: Installed (but unpackaged) file(s) found:
-# /usr/lib/initscripts/legacy-actions/auditd/resume
-# /usr/lib/initscripts/legacy-actions/auditd/rotate
#
# Conditional build:
%bcond_without kerberos5 # do not build with heimdal
@@ -16,12 +12,12 @@
Summary: User space tools for 2.6 kernel auditing
Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do audytu jąder 2.6
Name: audit
-Version: 2.3.1
+Version: 2.3.2
Release: 0.1
License: GPL v2+
Group: Daemons
Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
-# Source0-md5: 82c2c4b1052d7c1e948deafa0d5077fe
+# Source0-md5: 4e8d065b5cc16b77b9b61e93a9ed160e
Source2: %{name}d.init
Source3: %{name}d.sysconfig
Source4: %{name}d.service
@@ -207,6 +203,9 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd
install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd
install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}
+# seems RH initscripts-specific
+%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/initscripts
+
%if %{with python}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
diff --git a/audit-systemd-notonly.patch b/audit-systemd-notonly.patch
index dbc6d94..5269407 100644
--- a/audit-systemd-notonly.patch
+++ b/audit-systemd-notonly.patch
@@ -1,5 +1,5 @@
---- audit-2.3.1/init.d/Makefile.am.orig 2013-06-08 22:26:09.755754441 +0200
-+++ audit-2.3.1/init.d/Makefile.am 2013-06-08 22:28:05.405752030 +0200
+--- audit-2.3.2/init.d/Makefile.am.orig 2013-08-24 21:51:07.859509228 +0200
++++ audit-2.3.2/init.d/Makefile.am 2013-08-24 21:52:55.076171394 +0200
@@ -28,12 +28,11 @@
dispconfig = audispd.conf
dispconfigdir = $(sysconfdir)/audisp
@@ -15,7 +15,7 @@
auditdir = $(sysconfdir)/audit
auditrdir = $(auditdir)/rules.d
-@@ -44,22 +43,18 @@
+@@ -44,24 +43,20 @@
install-data-hook:
$(INSTALL_DATA) -D -m 640 ${srcdir}/${dispconfig} ${DESTDIR}${dispconfigdir}/${dispconfig}
$(INSTALL_DATA) -D -m 640 ${srcdir}/${libconfig} ${DESTDIR}${sysconfdir}/${libconfig}
@@ -33,6 +33,8 @@
$(INSTALL_SCRIPT) -D -m 750 ${srcdir}/auditd.rotate ${DESTDIR}${legacydir}/rotate
$(INSTALL_SCRIPT) -D -m 750 ${srcdir}/auditd.resume ${DESTDIR}${legacydir}/resume
$(INSTALL_SCRIPT) -D -m 750 ${srcdir}/auditd.stop ${DESTDIR}${legacydir}/stop
+ $(INSTALL_SCRIPT) -D -m 750 ${srcdir}/auditd.restart ${DESTDIR}${legacydir}/restart
+ $(INSTALL_SCRIPT) -D -m 750 ${srcdir}/auditd.condrestart ${DESTDIR}${legacydir}/condrestart
-else
- $(INSTALL_SCRIPT) -D ${srcdir}/auditd.init ${DESTDIR}${initdir}/auditd
endif
@@ -40,13 +42,18 @@
chmod 0750 $(DESTDIR)$(sbindir)/augenrules
-@@ -67,9 +62,8 @@
+@@ -69,14 +64,13 @@
rm ${DESTDIR}${dispconfigdir}/${dispconfig}
rm ${DESTDIR}${sysconfdir}/${libconfig}
if ENABLE_SYSTEMD
- rm ${DESTDIR}${initdir}/auditd.service
--else
+ rm ${DESTDIR}${systemdunitdir}/auditd.service
+ rm ${DESTDIR}${legacydir}/rotate
+ rm ${DESTDIR}${legacydir}/resume
+ rm ${DESTDIR}${legacydir}/stop
+ rm ${DESTDIR}${legacydir}/restart
+ rm ${DESTDIR}${legacydir}/condrestart
+-else
+endif
rm ${DESTDIR}${sysconfigdir}/auditd
rm ${DESTDIR}${initdir}/auditd
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/audit.git/commitdiff/6c98eb8c0cc33411a22fcfe6ea4c4842442fef24
More information about the pld-cvs-commit
mailing list