]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - audit/audit.nm
Merge remote-tracking branch 'stevee/libatasmart'
[people/arne_f/ipfire-3.x.git] / audit / audit.nm
CommitLineData
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 6name = audit
98329963
SS
7version = 2.2
8release = 1
c3a05990 9
802ea3af
MT
10groups = System/Daemons
11url = http://people.redhat.com/sgrubb/audit/
12license = GPLv2+
13summary = User space tools for 2.6 kernel auditing.
c3a05990 14
802ea3af
MT
15description
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.
19end
c3a05990 20
802ea3af 21source_dl = http://people.redhat.com/sgrubb/audit/
c3a05990 22
802ea3af
MT
23build
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 \
a69a8695 37 --libdir=/%{lib} \
802ea3af
MT
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
802ea3af 47 install_cmds
a69a8695
MT
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
c3a05990 51
802ea3af
MT
52 mkdir -pv %{BUILDROOT}/usr/sbin/
53 mv -v %{BUILDROOT}/sbin/audisp*remote %{BUILDROOT}/usr/sbin/
c3a05990 54
db10c9e2
SS
55 mkdir -pv %{BUILDROOT}/var/log/audit
56
802ea3af
MT
57 rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig}
58 end
59end
c3a05990 60
802ea3af
MT
61packages
62 package %{name}
9aee0bab
SS
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
802ea3af 82 end
c3a05990 83
802ea3af
MT
84 package %{name}-libs
85 template LIBS
86 end
1f9bc2f0 87
802ea3af
MT
88 package %{name}-devel
89 template DEVEL
a69a8695
MT
90
91 # Just require the libs to link
92 # against them.
93 requires
94 %{name}-libs = %{thisver}
95 end
802ea3af 96 end
1f9bc2f0 97
0f3c5dcf
SS
98 package python-%{name}
99 summary = Python bindings for libaudit.
100 description = %{summary}
101
102 files
103 /usr/lib/python*/
104 end
105 end
0c2f2c2d 106
1f9bc2f0
MT
107 package %{name}-debuginfo
108 template DEBUGINFO
109 end
802ea3af 110end