]>
Commit | Line | Data |
---|---|---|
c3a05990 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
c3a05990 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = audit |
d885ecb1 | 7 | version = 2.1.3 |
db10c9e2 | 8 | release = 5 |
c3a05990 | 9 | |
802ea3af MT |
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. | |
c3a05990 | 14 | |
802ea3af MT |
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 | |
c3a05990 | 20 | |
802ea3af | 21 | source_dl = http://people.redhat.com/sgrubb/audit/ |
c3a05990 | 22 | |
802ea3af MT |
23 | build |
24 | requires | |
25 | autoconf | |
26 | automake | |
27 | libcap-ng-devel | |
28 | libtool | |
29 | openldap-devel | |
30 | python-devel | |
31 | swig | |
32 | end | |
c3a05990 | 33 | |
802ea3af MT |
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 | |
c3a05990 | 42 | |
802ea3af MT |
43 | prepare_cmds |
44 | autoreconf -fvi | |
45 | end | |
598293d7 | 46 | |
d0085d73 SS |
47 | test |
48 | make check | |
49 | end | |
50 | ||
802ea3af MT |
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 | |
c3a05990 | 55 | |
802ea3af MT |
56 | mkdir -pv %{BUILDROOT}/usr/sbin/ |
57 | mv -v %{BUILDROOT}/sbin/audisp*remote %{BUILDROOT}/usr/sbin/ | |
c3a05990 | 58 | |
db10c9e2 SS |
59 | mkdir -pv %{BUILDROOT}/var/log/audit |
60 | ||
802ea3af MT |
61 | rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig} |
62 | end | |
63 | end | |
c3a05990 | 64 | |
802ea3af MT |
65 | packages |
66 | package %{name} | |
9aee0bab SS |
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 | |
802ea3af | 86 | end |
c3a05990 | 87 | |
802ea3af MT |
88 | package %{name}-libs |
89 | template LIBS | |
90 | end | |
91 | ||
92 | package %{name}-devel | |
93 | template DEVEL | |
94 | end | |
0f3c5dcf SS |
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 | |
802ea3af | 104 | end |