]> git.pld-linux.org Git - packages/audit.git/commitdiff
- rel 3; mv to new rpm macros, add post,preun,postun actions auto/th/audit-2_1_3-3
authorBartłomiej Zimoń <cactus@pld-linux.org>
Sun, 4 Dec 2011 01:55:29 +0000 (01:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    audit.spec -> 1.84

audit.spec

index 6b0dc89d156bded7afdaa536c22a0608d6e4051d..32eba1b68254bbdacd1e35686bbfa1c23ef5a345 100644 (file)
@@ -8,7 +8,7 @@ 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.1.3
-Release:       2
+Release:       3
 License:       GPL v2+
 Group:         Daemons
 Source0:       http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
@@ -36,7 +36,7 @@ BuildRequires:        python-devel >= 1:2.5
 BuildRequires: rpm-pythonprov
 BuildRequires: swig-python
 %endif
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.623
 BuildRequires: sed >= 4.0
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-libs = %{version}-%{release}
@@ -189,12 +189,12 @@ ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*) \
        $RPM_BUILD_ROOT%{_libdir}/libauparse.so
 
 # We manually install this since Makefile doesn't
-install -d $RPM_BUILD_ROOT{%{_includedir},/lib/systemd/system}
+install -d $RPM_BUILD_ROOT{%{_includedir},%{systemdunitdir}}
 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
+install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}
 
 %if %{with python}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
@@ -219,6 +219,16 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del auditd
 fi
 
+%post systemd
+%systemd_post
+%systemd_enable auditd.service
+
+%preun systemd
+%systemd_preun auditd.service
+
+%postun systemd
+%systemd_postun auditd.service
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README THANKS TODO
@@ -296,7 +306,7 @@ fi
 
 %files systemd
 %defattr(644,root,root,755)
-/lib/systemd/system/auditd.service
+%{systemdunitdir}/auditd.service
 
 %if %{with prelude}
 %files plugin-prelude
This page took 0.144236 seconds and 4 git commands to generate.