]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - audit/audit.nm
Merge remote-tracking branch 'stevee/unicode-ucd'
[people/amarx/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.2
8 release = 2
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 --without-prelude \
36 --without-libwrap \
37 --enable-gssapi-krb5=no \
38 --with-libcap-ng=yes
39
40 prepare_cmds
41 autoreconf -fvi
42 end
43
44 install_cmds
45 mkdir -pv %{BUILDROOT}/var/log/audit
46
47 rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig}
48 end
49 end
50
51 packages
52 package %{name}
53 prerequires += systemd-units
54
55 script postin
56 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
57 end
58
59 script preun
60 /bin/systemctl --no-reload disable auditd.service >/dev/null 2>&1 || :
61 /bin/systemctl stop auditd.service >/dev/null 2>&1 || :
62 end
63
64 script postun
65 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
66 end
67
68 script postup
69 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
70 /bin/systemctl try-restart auditd.service >/dev/null 2>&1 || :
71 end
72 end
73
74 package %{name}-libs
75 template LIBS
76 end
77
78 package %{name}-devel
79 template DEVEL
80
81 # Just require the libs to link
82 # against them.
83 requires
84 %{name}-libs = %{thisver}
85 end
86 end
87
88 package python-%{name}
89 summary = Python bindings for libaudit.
90 description = %{summary}
91
92 files
93 %{libdir}/python*/
94 end
95 end
96
97 package %{name}-debuginfo
98 template DEBUGINFO
99 end
100 end