]> git.ipfire.org Git - ipfire-3.x.git/blob - audit/audit.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[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 = 8
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 install_cmds
48 rm -vf %{BUILDROOT}/%{lib}/libau{dit,parse}.so
49 ln -svf ../../%{lib}/libaudit.so.1 %{BUILDROOT}%{libdir}/libaudit.so
50 ln -svf ../../%{lib}/libauparse.so.0 %{BUILDROOT}%{libdir}/libauparse.so
51
52 mkdir -pv %{BUILDROOT}/usr/sbin/
53 mv -v %{BUILDROOT}/sbin/audisp*remote %{BUILDROOT}/usr/sbin/
54
55 mkdir -pv %{BUILDROOT}/var/log/audit
56
57 rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig}
58 end
59 end
60
61 packages
62 package %{name}
63 prerequires += systemd-units
64
65 script postin
66 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
67 end
68
69 script preun
70 /bin/systemctl --no-reload disable auditd.service >/dev/null 2>&1 || :
71 /bin/systemctl stop auditd.service >/dev/null 2>&1 || :
72 end
73
74 script postun
75 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
76 end
77
78 script postup
79 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
80 /bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
81 end
82 end
83
84 package %{name}-libs
85 template LIBS
86 end
87
88 package %{name}-devel
89 template DEVEL
90
91 # Just require the libs to link
92 # against them.
93 requires
94 %{name}-libs = %{thisver}
95 end
96 end
97
98 package python-%{name}
99 summary = Python bindings for libaudit.
100 description = %{summary}
101
102 files
103 /usr/lib/python*/
104 end
105 end
106
107 package %{name}-debuginfo
108 template DEBUGINFO
109 end
110 end