]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - audit/audit.nm
Merge remote-tracking branch 'stevee/systemd'
[people/ms/ipfire-3.x.git] / audit / audit.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = audit
7 version = 2.1.3
8 release = 7
9
10 groups = System/Daemons
11 url = http://people.redhat.com/sgrubb/audit/
12 license = GPLv2+
13 summary = User space tools for 2.6 kernel auditing.
14
15 description
16 The audit package contains the user space utilities for
17 storing and searching the audit records generate by
18 the audit subsystem in the Linux 2.6 kernel.
19 end
20
21 source_dl = http://people.redhat.com/sgrubb/audit/
22
23 build
24 requires
25 autoconf
26 automake
27 libcap-ng-devel
28 libtool
29 openldap-devel
30 python-devel
31 swig
32 end
33
34 configure_options += \
35 --sysconfdir=/etc \
36 --sbindir=/sbin \
37 --libdir=/lib \
38 --without-prelude \
39 --without-libwrap \
40 --enable-gssapi-krb5=no \
41 --with-libcap-ng=yes
42
43 prepare_cmds
44 autoreconf -fvi
45 end
46
47 test
48 make check
49 end
50
51 install_cmds
52 rm -vf %{BUILDROOT}/lib/libau{dit,parse}.so
53 ln -svf ../../lib/libaudit.so.1 %{BUILDROOT}/usr/lib/libaudit.so
54 ln -svf ../../lib/libauparse.so.0 %{BUILDROOT}/usr/lib/libauparse.so
55
56 mkdir -pv %{BUILDROOT}/usr/sbin/
57 mv -v %{BUILDROOT}/sbin/audisp*remote %{BUILDROOT}/usr/sbin/
58
59 mkdir -pv %{BUILDROOT}/var/log/audit
60
61 rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig}
62 end
63 end
64
65 packages
66 package %{name}
67 prerequires += systemd-units
68
69 script postin
70 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
71 end
72
73 script preun
74 /bin/systemctl --no-reload disable auditd.service >/dev/null 2>&1 || :
75 /bin/systemctl stop auditd.service >/dev/null 2>&1 || :
76 end
77
78 script postun
79 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
80 end
81
82 script postup
83 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
84 /bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
85 end
86 end
87
88 package %{name}-libs
89 template LIBS
90 end
91
92 package %{name}-devel
93 template DEVEL
94 end
95
96 package python-%{name}
97 summary = Python bindings for libaudit.
98 description = %{summary}
99
100 files
101 /usr/lib/python*/
102 end
103 end
104
105 package %{name}-debuginfo
106 template DEBUGINFO
107 end
108 end