]> git.pld-linux.org Git - packages/audit.git/blame - audit.spec
- up to 2.0
[packages/audit.git] / audit.spec
CommitLineData
e5a8c0d8
JB
1#
2# Conditional build:
3%bcond_without pie # auditd as PIE binary
526a1f46 4%bcond_without prelude # prelude audisp plugin
57f09668 5%bcond_without python # don't build python bindings
e5a8c0d8 6#
54697230 7Summary: User space tools for 2.6 kernel auditing
7f0a1e1e 8Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do audytu jąder 2.6
54697230 9Name: audit
82313177
AM
10Version: 2.0
11Release: 1
ab8f94cb 12License: GPL v2+
54697230
JB
13Group: Daemons
14Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
82313177 15# Source0-md5: d0c064c4646f8fe5c50de789c627f2da
de2a21fd
JB
16Source2: %{name}d.init
17Source3: %{name}d.sysconfig
80475ae6 18Patch0: %{name}-install.patch
1e78f2d9 19Patch1: %{name}-pthread.patch
82313177 20Patch2: %{name}-m4.patch
54697230
JB
21URL: http://people.redhat.com/sgrubb/audit/
22BuildRequires: autoconf >= 2.59
10583781 23BuildRequires: automake >= 1:1.9
e5a8c0d8 24%{?with_pie:BuildRequires: gcc >= 5:3.4}
0a348a92 25BuildRequires: gettext-devel >= 0.14.6
10583781 26BuildRequires: glibc-headers >= 6:2.3.6
1e78f2d9 27BuildRequires: heimdal-devel
5e4a6748 28BuildRequires: intltool
10583781 29BuildRequires: libstdc++-devel
526a1f46 30%{?with_prelude:BuildRequires: libprelude-devel}
54697230 31BuildRequires: libtool
80475ae6 32BuildRequires: linux-libc-headers >= 7:2.6.20
792ef7a1 33BuildRequires: openldap-devel
57f09668 34%if %{with python}
84214962 35BuildRequires: python-devel >= 1:2.5
9ee6c1ce 36BuildRequires: rpm-pythonprov
7e695d35 37BuildRequires: swig-python
57f09668 38%endif
39BuildRequires: rpmbuild(macros) >= 1.268
ab8f94cb 40BuildRequires: sed >= 4.0
54697230
JB
41Requires(post,preun): /sbin/chkconfig
42Requires: %{name}-libs = %{version}-%{release}
96102055 43Requires: rc-scripts
526a1f46 44Obsoletes: audit-audispd-plugins
54697230
JB
45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%define _sbindir /sbin
ab8f94cb
JB
48# use /lib, because this path is put in /usr/share/.../settings.py
49%define _libexecdir %{_prefix}/lib
54697230
JB
50
51%description
52The audit package contains the user space utilities for storing and
53processing the audit records generate by the audit subsystem in the
54Linux 2.6 kernel.
55
b27e8f95
JR
56%description -l pl.UTF-8
57Ten pakiet zawiera narzędzia przestrzeni użytkownika do przechowywania
58i przetwarzania rekordów audytu generowanych przez podsystem audytu w
59jądrach Linuksa 2.6.
54697230
JB
60
61%package libs
5a56b716 62Summary: Dynamic audit libraries
7f0a1e1e 63Summary(pl.UTF-8): Biblioteki dynamiczne audit
ab8f94cb 64License: LGPL v2.1+
54697230
JB
65Group: Libraries
66
67%description libs
5a56b716 68The audit-libs package contains the dynamic libraries needed for
54697230
JB
69applications to use the audit framework.
70
b27e8f95 71%description libs -l pl.UTF-8
5a56b716 72Ten pakiet zawiera biblioteki dynamiczne potrzebne dla aplikacji
b27e8f95 73używających środowiska audytu.
54697230
JB
74
75%package libs-devel
5a56b716 76Summary: Header files for audit libraries
7f0a1e1e 77Summary(pl.UTF-8): Pliki nagłówkowe bibliotek audit
ab8f94cb 78License: LGPL v2.1+
54697230
JB
79Group: Development/Libraries
80Requires: %{name}-libs = %{version}-%{release}
ab8f94cb 81Requires: linux-libc-headers >= 7:2.6.20
54697230
JB
82
83%description libs-devel
84The audit-libs-devel package contains the header files needed for
85developing applications that need to use the audit framework library.
86
b27e8f95
JR
87%description libs-devel -l pl.UTF-8
88Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
89używających biblioteki środowiska audytu.
54697230
JB
90
91%package libs-static
5a56b716 92Summary: Static audit libraries
7f0a1e1e 93Summary(pl.UTF-8): Statyczne biblioteki audit
ab8f94cb 94License: LGPL v2.1+
54697230
JB
95Group: Development/Libraries
96Requires: %{name}-libs-devel = %{version}-%{release}
97
98%description libs-static
5a56b716
JB
99The audit-libs-static package contains the static libraries for
100developing applications that need to use the audit framework.
54697230 101
b27e8f95 102%description libs-static -l pl.UTF-8
5a56b716 103Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji
b27e8f95 104używających środowiska audytu.
54697230 105
526a1f46
JB
106%package plugin-prelude
107Summary: prelude plugin for audispd
108Summary(pl.UTF-8): Wtyczka prelude dla audispd
109Group: Daemons
110Requires: %{name} = %{version}-%{release}
111
112%description plugin-prelude
113audisp-prelude is a plugin for the audit event dispatcher daemon,
114audispd, that uses libprelude to send IDMEF alerts for possible
115Intrusion Detection events.
116
117%description plugin-prelude -l pl.UTF-8
118audisp-prelude to wtyczka demona audispd przekazującego zdarzenia
119audytowe wykorzystująca libprelude do wysyłania alarmów IDMEF o
120prawdopodobnych zdarzeniach IDS.
121
9ee6c1ce
JB
122%package -n python-audit
123Summary: Python interface to libaudit library
7f0a1e1e 124Summary(pl.UTF-8): Pythonowy interfejs do biblioteki libaudit
ab8f94cb 125License: LGPL v2.1+
9ee6c1ce
JB
126Group: Libraries/Python
127Requires: %{name}-libs = %{version}-%{release}
128
129%description -n python-audit
130Python interface to libaudit library.
131
b27e8f95 132%description -n python-audit -l pl.UTF-8
9ee6c1ce
JB
133Pythonowy interfejs do biblioteki libaudit.
134
ab8f94cb
JB
135%package -n system-config-audit
136Summary: Utility for editing audit configuration
137Summary(pl.UTF-8): Narzędzie do zmiany konfiguracji audytu
138License: GPL v2
139Group: Applications/System
140Requires: %{name} = %{version}-%{release}
df9476f1 141Version: 0.4.8
6fc26f9b 142Requires: python-pygtk-glade >= 2:2.0
ab8f94cb
JB
143Requires: usermode
144#Requires: usermode-gtk ???
145
146%description -n system-config-audit
147An utility for editing audit configuration.
148
149%description -n system-config-audit -l pl.UTF-8
150Narzędzie do zmiany konfiguracji audytu.
151
54697230
JB
152%prep
153%setup -q
eb9b3ab9 154%patch0 -p1
1e78f2d9 155%patch1 -p1
82313177 156%patch2 -p1
1a8b063a 157
3d5ad897 158%if !%{with python}
b89f6d79 159sed 's#swig/Makefile ##' -i configure.ac
9d3991e5 160sed 's/swig//' -i Makefile.am
57f09668 161%endif
162
54697230
JB
163%build
164%{__libtoolize}
165%{__aclocal}
166%{__autoconf}
167%{__autoheader}
168%{__automake}
cc094a3e 169%configure \
526a1f46 170 --with-apparmor \
1e78f2d9 171 --enable-gssapi-krb5 \
526a1f46 172 %{?with_prelude:--with-prelude}
e5a8c0d8
JB
173# override auditd_{C,LD}FLAGS to avoid -fPIE unsupported by gcc 3.3
174%{__make} \
aac5fae1 175 %{!?with_pie:auditd_CFLAGS="-D_REENTRANT -D_GNU_SOURCE" auditd_LDFLAGS="-Wl,-z,relro"}
54697230 176
bf2e6acc
JB
177# temporarily not included in all
178%{__make} -C auparse
179
54697230
JB
180%install
181rm -rf $RPM_BUILD_ROOT
182install -d $RPM_BUILD_ROOT%{_var}/log/audit
183
184%{__make} install \
185 DESTDIR=$RPM_BUILD_ROOT
186
bf2e6acc
JB
187# temporarily not included in all
188%{__make} -C auparse install \
189 DESTDIR=$RPM_BUILD_ROOT
190
54697230
JB
191install -d $RPM_BUILD_ROOT/%{_lib}
192mv -f $RPM_BUILD_ROOT%{_libdir}/libaudit.so.* $RPM_BUILD_ROOT/%{_lib}
fef538cf 193ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libaudit.so.*.*.*) \
1a8b063a 194 $RPM_BUILD_ROOT%{_libdir}/libaudit.so
8ba70267 195mv -f $RPM_BUILD_ROOT%{_libdir}/libauparse.so.* $RPM_BUILD_ROOT/%{_lib}
fef538cf 196ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*) \
8ba70267 197 $RPM_BUILD_ROOT%{_libdir}/libauparse.so
54697230
JB
198
199# We manually install this since Makefile doesn't
200install -d $RPM_BUILD_ROOT%{_includedir}
201install lib/libaudit.h $RPM_BUILD_ROOT%{_includedir}
202
de2a21fd
JB
203install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd
204install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd
205
57f09668 206%if %{with python}
eb9b3ab9 207%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
8e99bb72 208%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
eb9b3ab9 209rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
8e99bb72 210rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
57f09668 211%endif
9ee6c1ce 212
54697230
JB
213%clean
214rm -rf $RPM_BUILD_ROOT
215
216%post libs -p /sbin/ldconfig
217%postun libs -p /sbin/ldconfig
218
219%post
220/sbin/chkconfig --add auditd
2a6b8c9c 221%service auditd restart "audit daemon"
54697230
JB
222
223%preun
224if [ "$1" = "0" ]; then
2a6b8c9c 225 %service auditd stop
54697230
JB
226 /sbin/chkconfig --del auditd
227fi
228
229%files
230%defattr(644,root,root,755)
bd0730be 231%doc AUTHORS ChangeLog README THANKS TODO
2bfdaebd 232%attr(750,root,root) %{_bindir}/aulast
08b12da9
JB
233%attr(750,root,root) %{_bindir}/aulastlog
234%attr(750,root,root) %{_bindir}/ausyscall
80475ae6 235%attr(750,root,root) %{_sbindir}/audispd
54697230
JB
236%attr(750,root,root) %{_sbindir}/auditctl
237%attr(750,root,root) %{_sbindir}/auditd
e5a8c0d8 238%attr(750,root,root) %{_sbindir}/aureport
54697230
JB
239%attr(750,root,root) %{_sbindir}/ausearch
240%attr(750,root,root) %{_sbindir}/autrace
08b12da9 241%attr(755,root,root) %{_sbindir}/audisp-remote
2f4ad87a 242%attr(755,root,root) %{_sbindir}/audispd-zos-remote
0a348a92
JB
243%dir %{_sysconfdir}/audisp
244%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audispd.conf
08b12da9 245%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audisp-remote.conf
2f4ad87a 246%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/zos-remote.conf
0a348a92
JB
247%dir %{_sysconfdir}/audisp/plugins.d
248%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/af_unix.conf
08b12da9 249%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/au-remote.conf
792ef7a1 250%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/audispd-zos-remote.conf
0a348a92 251%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/syslog.conf
7630c8d3
JB
252%dir %{_sysconfdir}/audit
253%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/auditd.conf
254%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/audit.rules
80475ae6 255%attr(754,root,root) /etc/rc.d/init.d/auditd
f6ae0a53 256%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/auditd
54697230 257%attr(750,root,root) %dir %{_var}/log/audit
0a348a92 258%{_mandir}/man5/audispd.conf.5*
08b12da9 259%{_mandir}/man5/audisp-remote.conf.5*
80475ae6 260%{_mandir}/man5/auditd.conf.5*
526a1f46 261%{_mandir}/man5/ausearch-expression.5*
2f4ad87a 262%{_mandir}/man5/zos-remote.conf.5*
08b12da9 263%{_mandir}/man8/audisp-remote.8*
526a1f46
JB
264%{_mandir}/man8/audispd-zos-remote.8*
265%{_mandir}/man8/audispd.8*
266%{_mandir}/man8/auditctl.8*
267%{_mandir}/man8/auditd.8*
2bfdaebd 268%{_mandir}/man8/aulast.8*
526a1f46
JB
269%{_mandir}/man8/aulastlog.8*
270%{_mandir}/man8/aureport.8*
271%{_mandir}/man8/ausearch.8*
08b12da9 272%{_mandir}/man8/ausyscall.8*
526a1f46 273%{_mandir}/man8/autrace.8*
54697230
JB
274
275%files libs
276%defattr(644,root,root,755)
277%attr(755,root,root) /%{_lib}/libaudit.so.*.*.*
82313177 278%attr(755,root,root) %ghost /%{_lib}/libaudit.so.1
8ba70267 279%attr(755,root,root) /%{_lib}/libauparse.so.*.*.*
fef538cf 280%attr(755,root,root) %ghost /%{_lib}/libauparse.so.0
7630c8d3 281%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libaudit.conf
54697230
JB
282
283%files libs-devel
284%defattr(644,root,root,755)
285%attr(755,root,root) %{_libdir}/libaudit.so
8ba70267 286%attr(755,root,root) %{_libdir}/libauparse.so
54697230 287%{_libdir}/libaudit.la
8ba70267 288%{_libdir}/libauparse.la
6d3a6f20 289%{_includedir}/auparse*.h
54697230 290%{_includedir}/libaudit.h
526a1f46
JB
291%{_mandir}/man3/audit_*.3*
292%{_mandir}/man3/auparse_*.3*
293%{_mandir}/man3/ausearch_*.3*
294%{_mandir}/man3/get_auditfail_action.3*
295%{_mandir}/man3/set_aumessage_mode.3*
54697230
JB
296
297%files libs-static
298%defattr(644,root,root,755)
299%{_libdir}/libaudit.a
8ba70267 300%{_libdir}/libauparse.a
9ee6c1ce 301
526a1f46
JB
302%if %{with prelude}
303%files plugin-prelude
304%defattr(644,root,root,755)
305%attr(755,root,root) %{_sbindir}/audisp-prelude
306%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audisp-prelude.conf
307%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/au-prelude.conf
308%{_mandir}/man5/audisp-prelude.conf.5*
309%{_mandir}/man8/audisp-prelude.8*
310%endif
311
57f09668 312%if %{with python}
9ee6c1ce
JB
313%files -n python-audit
314%defattr(644,root,root,755)
315%attr(755,root,root) %{py_sitedir}/_audit.so
84214962 316%attr(755,root,root) %{py_sitedir}/auparse.so
4c11c375 317%{py_sitedir}/audit.py[co]
57f09668 318%endif
This page took 0.144046 seconds and 4 git commands to generate.