]>
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 |
07ad0da3 AM |
7 | version = 2.5 |
8 | release = 1 | |
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 | 34 | configure_options += \ |
802ea3af MT |
35 | --without-prelude \ |
36 | --without-libwrap \ | |
37 | --enable-gssapi-krb5=no \ | |
38 | --with-libcap-ng=yes | |
c3a05990 | 39 | |
802ea3af MT |
40 | prepare_cmds |
41 | autoreconf -fvi | |
42 | end | |
598293d7 | 43 | |
802ea3af | 44 | install_cmds |
db10c9e2 SS |
45 | mkdir -pv %{BUILDROOT}/var/log/audit |
46 | ||
802ea3af MT |
47 | rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig} |
48 | end | |
49 | end | |
c3a05990 | 50 | |
802ea3af MT |
51 | packages |
52 | package %{name} | |
9aee0bab SS |
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 | |
802ea3af | 72 | end |
c3a05990 | 73 | |
802ea3af MT |
74 | package %{name}-libs |
75 | template LIBS | |
76 | end | |
1f9bc2f0 | 77 | |
802ea3af MT |
78 | package %{name}-devel |
79 | template DEVEL | |
a69a8695 MT |
80 | |
81 | # Just require the libs to link | |
82 | # against them. | |
83 | requires | |
84 | %{name}-libs = %{thisver} | |
85 | end | |
802ea3af | 86 | end |
1f9bc2f0 | 87 | |
0f3c5dcf SS |
88 | package python-%{name} |
89 | summary = Python bindings for libaudit. | |
90 | description = %{summary} | |
91 | ||
92 | files | |
e2c672b4 | 93 | %{libdir}/python*/ |
0f3c5dcf SS |
94 | end |
95 | end | |
0c2f2c2d | 96 | |
1f9bc2f0 MT |
97 | package %{name}-debuginfo |
98 | template DEBUGINFO | |
99 | end | |
802ea3af | 100 | end |