]>
Commit | Line | Data |
---|---|---|
ce14e998 | 1 | # |
e5a8c0d8 | 2 | # Conditional build: |
49caa03e | 3 | %bcond_without kerberos5 # Kerberos V support via heimdal |
ffa39469 | 4 | %bcond_without prelude # prelude audisp plugin |
49caa03e | 5 | %bcond_without golang # Go language bindings |
b7895bd5 | 6 | %bcond_with gccgo # use GCC go frontend instead of golang implementation |
659527ec JB |
7 | %bcond_without python # Python bindings (any) |
8 | %bcond_without python3 # Python 3 bindings | |
49caa03e | 9 | %bcond_without zos_remote # zos-remote audisp plugin (LDAP dep) |
f99a4738 | 10 | |
b7895bd5 JB |
11 | %ifnarch %{ix86} %{x8664} %{arm} aarch64 mips64 mips64le ppc64 ppc64le s390x |
12 | %define with_gccgo 1 | |
f99a4738 JR |
13 | %endif |
14 | ||
659527ec JB |
15 | %if %{without python} |
16 | %undefine with_python3 | |
17 | %endif | |
54697230 | 18 | Summary: User space tools for 2.6 kernel auditing |
7f0a1e1e | 19 | Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do audytu jąder 2.6 |
54697230 | 20 | Name: audit |
ac7f1d16 JB |
21 | Version: 2.8.5 |
22 | Release: 1 | |
ab8f94cb | 23 | License: GPL v2+ |
54697230 JB |
24 | Group: Daemons |
25 | Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz | |
ac7f1d16 | 26 | # Source0-md5: 9455e5773670afdbccaeb92681b2e97d |
de2a21fd JB |
27 | Source2: %{name}d.init |
28 | Source3: %{name}d.sysconfig | |
80475ae6 | 29 | Patch0: %{name}-install.patch |
b0722891 | 30 | Patch1: %{name}-m4.patch |
61d763d9 | 31 | Patch2: %{name}-nolibs.patch |
d1e0ebb3 JK |
32 | Patch3: %{name}-systemd-notonly.patch |
33 | Patch4: %{name}-am.patch | |
34 | Patch5: %{name}-no-refusemanualstop.patch | |
35 | Patch6: %{name}-cronjob.patch | |
36 | Patch7: golang-paths.patch | |
54697230 JB |
37 | URL: http://people.redhat.com/sgrubb/audit/ |
38 | BuildRequires: autoconf >= 2.59 | |
4faf4930 | 39 | BuildRequires: automake >= 1:1.12.6 |
10583781 | 40 | BuildRequires: glibc-headers >= 6:2.3.6 |
220b3c30 | 41 | %{?with_kerberos5:BuildRequires: heimdal-devel} |
693afa1c | 42 | BuildRequires: libcap-ng-devel |
526a1f46 | 43 | %{?with_prelude:BuildRequires: libprelude-devel} |
54697230 | 44 | BuildRequires: libtool |
61d763d9 | 45 | BuildRequires: libwrap-devel |
d80f3483 | 46 | BuildRequires: linux-libc-headers >= 7:2.6.30 |
220b3c30 | 47 | %{?with_zos_remote:BuildRequires: openldap-devel} |
57f09668 | 48 | %if %{with python} |
84214962 | 49 | BuildRequires: python-devel >= 1:2.5 |
9ee6c1ce | 50 | BuildRequires: rpm-pythonprov |
7e695d35 | 51 | BuildRequires: swig-python |
57f09668 | 52 | %endif |
2d0ad02a JR |
53 | %if %{with python3} |
54 | BuildRequires: python3-devel | |
55 | BuildRequires: rpm-pythonprov | |
56 | BuildRequires: swig-python | |
57 | %endif | |
9a3b9076 | 58 | BuildRequires: rpmbuild(macros) >= 1.623 |
ab8f94cb | 59 | BuildRequires: sed >= 4.0 |
b7895bd5 JB |
60 | %if %{with golang} |
61 | %{?with_gccgo:BuildRequires: gcc-go >= 5.1} | |
62 | %{!?with_gccgo:BuildRequires: golang >= 1.4} | |
63 | %endif | |
54697230 | 64 | Requires(post,preun): /sbin/chkconfig |
195529ba | 65 | Requires(post,preun,postun): systemd-units >= 38 |
54697230 | 66 | Requires: %{name}-libs = %{version}-%{release} |
96102055 | 67 | Requires: rc-scripts |
195529ba | 68 | Requires: systemd-units >= 38 |
526a1f46 | 69 | Obsoletes: audit-audispd-plugins |
7ede5762 | 70 | Obsoletes: audit-systemd |
54697230 JB |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
72 | ||
73 | %define _sbindir /sbin | |
ab8f94cb JB |
74 | # use /lib, because this path is put in /usr/share/.../settings.py |
75 | %define _libexecdir %{_prefix}/lib | |
54697230 JB |
76 | |
77 | %description | |
78 | The audit package contains the user space utilities for storing and | |
79 | processing the audit records generate by the audit subsystem in the | |
80 | Linux 2.6 kernel. | |
81 | ||
b27e8f95 JR |
82 | %description -l pl.UTF-8 |
83 | Ten pakiet zawiera narzędzia przestrzeni użytkownika do przechowywania | |
84 | i przetwarzania rekordów audytu generowanych przez podsystem audytu w | |
85 | jądrach Linuksa 2.6. | |
54697230 JB |
86 | |
87 | %package libs | |
5a56b716 | 88 | Summary: Dynamic audit libraries |
7f0a1e1e | 89 | Summary(pl.UTF-8): Biblioteki dynamiczne audit |
ab8f94cb | 90 | License: LGPL v2.1+ |
54697230 JB |
91 | Group: Libraries |
92 | ||
93 | %description libs | |
5a56b716 | 94 | The audit-libs package contains the dynamic libraries needed for |
54697230 JB |
95 | applications to use the audit framework. |
96 | ||
b27e8f95 | 97 | %description libs -l pl.UTF-8 |
5a56b716 | 98 | Ten pakiet zawiera biblioteki dynamiczne potrzebne dla aplikacji |
b27e8f95 | 99 | używających środowiska audytu. |
54697230 JB |
100 | |
101 | %package libs-devel | |
5a56b716 | 102 | Summary: Header files for audit libraries |
7f0a1e1e | 103 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek audit |
ab8f94cb | 104 | License: LGPL v2.1+ |
54697230 JB |
105 | Group: Development/Libraries |
106 | Requires: %{name}-libs = %{version}-%{release} | |
d80f3483 | 107 | Requires: linux-libc-headers >= 7:2.6.30 |
9a4de669 | 108 | Requires: libcap-ng-devel |
54697230 JB |
109 | |
110 | %description libs-devel | |
111 | The audit-libs-devel package contains the header files needed for | |
112 | developing applications that need to use the audit framework library. | |
113 | ||
b27e8f95 JR |
114 | %description libs-devel -l pl.UTF-8 |
115 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
116 | używających biblioteki środowiska audytu. | |
54697230 JB |
117 | |
118 | %package libs-static | |
5a56b716 | 119 | Summary: Static audit libraries |
7f0a1e1e | 120 | Summary(pl.UTF-8): Statyczne biblioteki audit |
ab8f94cb | 121 | License: LGPL v2.1+ |
54697230 JB |
122 | Group: Development/Libraries |
123 | Requires: %{name}-libs-devel = %{version}-%{release} | |
124 | ||
125 | %description libs-static | |
5a56b716 JB |
126 | The audit-libs-static package contains the static libraries for |
127 | developing applications that need to use the audit framework. | |
54697230 | 128 | |
b27e8f95 | 129 | %description libs-static -l pl.UTF-8 |
5a56b716 | 130 | Ten pakiet zawiera statyczne biblioteki do tworzenia aplikacji |
b27e8f95 | 131 | używających środowiska audytu. |
54697230 | 132 | |
526a1f46 JB |
133 | %package plugin-prelude |
134 | Summary: prelude plugin for audispd | |
135 | Summary(pl.UTF-8): Wtyczka prelude dla audispd | |
136 | Group: Daemons | |
137 | Requires: %{name} = %{version}-%{release} | |
138 | ||
139 | %description plugin-prelude | |
140 | audisp-prelude is a plugin for the audit event dispatcher daemon, | |
141 | audispd, that uses libprelude to send IDMEF alerts for possible | |
142 | Intrusion Detection events. | |
143 | ||
144 | %description plugin-prelude -l pl.UTF-8 | |
145 | audisp-prelude to wtyczka demona audispd przekazującego zdarzenia | |
146 | audytowe wykorzystująca libprelude do wysyłania alarmów IDMEF o | |
147 | prawdopodobnych zdarzeniach IDS. | |
148 | ||
49caa03e JB |
149 | %package -n golang-audit |
150 | Summary: Go language interface to libaudit library | |
151 | Summary(pl.UTF-8): Interfejs języka Go do biblioteki libaudit | |
152 | License: LGPL v2.1+ | |
153 | Group: Development/Languages | |
154 | Requires: %{name}-libs = %{version}-%{release} | |
b7895bd5 JB |
155 | %if %{with gccgo} |
156 | Requires: gcc-go >= 5.1 | |
157 | %else | |
659527ec | 158 | Requires: golang >= 1.4 |
b7895bd5 | 159 | %endif |
49caa03e JB |
160 | |
161 | %description -n golang-audit | |
162 | Go language interface to libaudit library. | |
163 | ||
164 | %description -n golang-audit -l pl.UTF-8 | |
165 | Interfejs języka Go do biblioteki libaudit. | |
166 | ||
9ee6c1ce | 167 | %package -n python-audit |
659527ec JB |
168 | Summary: Python 2.x interface to libaudit library |
169 | Summary(pl.UTF-8): Interfejs Pythona 2.x do biblioteki libaudit | |
ab8f94cb | 170 | License: LGPL v2.1+ |
9ee6c1ce JB |
171 | Group: Libraries/Python |
172 | Requires: %{name}-libs = %{version}-%{release} | |
173 | ||
174 | %description -n python-audit | |
659527ec | 175 | Python 2.x interface to libaudit library. |
9ee6c1ce | 176 | |
b27e8f95 | 177 | %description -n python-audit -l pl.UTF-8 |
659527ec | 178 | Interfejs Pythona 2.x do biblioteki libaudit. |
9ee6c1ce | 179 | |
2d0ad02a | 180 | %package -n python3-audit |
659527ec JB |
181 | Summary: Python 3.x interface to libaudit library |
182 | Summary(pl.UTF-8): Interfejs Pythona 3.x do biblioteki libaudit | |
2d0ad02a JR |
183 | License: LGPL v2.1+ |
184 | Group: Libraries/Python | |
185 | Requires: %{name}-libs = %{version}-%{release} | |
186 | ||
187 | %description -n python3-audit | |
659527ec | 188 | Python 3.x interface to libaudit library. |
2d0ad02a JR |
189 | |
190 | %description -n python3-audit -l pl.UTF-8 | |
659527ec | 191 | Interfejs Pythona 3.x do biblioteki libaudit. |
2d0ad02a | 192 | |
54697230 JB |
193 | %prep |
194 | %setup -q | |
eb9b3ab9 | 195 | %patch0 -p1 |
1e78f2d9 | 196 | %patch1 -p1 |
61d763d9 | 197 | %patch2 -p1 |
d1e0ebb3 | 198 | %patch3 -p1 |
ffa39469 | 199 | %patch4 -p1 |
0bd7ba4a | 200 | %patch5 -p1 |
738da8d6 JR |
201 | %patch6 -p1 |
202 | %patch7 -p1 | |
1a8b063a | 203 | |
68d62ac9 | 204 | %if %{without python} |
99572413 JP |
205 | sed 's#[^ ]*swig/[^ ]*/Makefile ##g' -i configure.ac |
206 | sed 's/swig//' -i bindings/Makefile.am | |
57f09668 | 207 | %endif |
208 | ||
54697230 JB |
209 | %build |
210 | %{__libtoolize} | |
211 | %{__aclocal} | |
212 | %{__autoconf} | |
213 | %{__autoheader} | |
214 | %{__automake} | |
cc094a3e | 215 | %configure \ |
56096462 JP |
216 | CC_FOR_BUILD="%{__cc}" \ |
217 | CPPFLAGS_FOR_BUILD="%{rpmcppflags}" \ | |
218 | CFLAGS_FOR_BUILD="%{rpmcflags}" \ | |
219 | LDFLAGS_FOR_BUILD="%{rpmldflags}" \ | |
220b3c30 | 220 | %{?with_kerberos5:--enable-gssapi-krb5} \ |
ffa39469 | 221 | --enable-systemd \ |
61d763d9 JB |
222 | --with-apparmor \ |
223 | --with-libwrap \ | |
d1e0ebb3 JK |
224 | %{?with_prelude:--with-prelude} \ |
225 | %{!?with_zos_remote:--disable-zos-remote} | |
54697230 | 226 | |
738da8d6 | 227 | %{__make} |
bf2e6acc | 228 | |
54697230 JB |
229 | %install |
230 | rm -rf $RPM_BUILD_ROOT | |
0167336b | 231 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/audit/rules.d,%{_var}/log/audit} |
54697230 JB |
232 | |
233 | %{__make} install \ | |
234 | DESTDIR=$RPM_BUILD_ROOT | |
235 | ||
0167336b JB |
236 | # default to no audit (and no overhead) |
237 | cp -p rules/10-no-audit.rules $RPM_BUILD_ROOT%{_sysconfdir}/audit/rules.d | |
238 | ||
738da8d6 JR |
239 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/auditd |
240 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/auditd | |
bf2e6acc | 241 | |
54697230 JB |
242 | install -d $RPM_BUILD_ROOT/%{_lib} |
243 | mv -f $RPM_BUILD_ROOT%{_libdir}/libaudit.so.* $RPM_BUILD_ROOT/%{_lib} | |
fef538cf | 244 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libaudit.so.*.*.*) \ |
1a8b063a | 245 | $RPM_BUILD_ROOT%{_libdir}/libaudit.so |
8ba70267 | 246 | mv -f $RPM_BUILD_ROOT%{_libdir}/libauparse.so.* $RPM_BUILD_ROOT/%{_lib} |
fef538cf | 247 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libauparse.so.*.*.*) \ |
8ba70267 | 248 | $RPM_BUILD_ROOT%{_libdir}/libauparse.so |
54697230 | 249 | |
738da8d6 JR |
250 | # RH initscripts-specific |
251 | %{__rm} -r $RPM_BUILD_ROOT%{_libexecdir}/initscripts | |
6c98eb8c | 252 | |
57f09668 | 253 | %if %{with python} |
68d62ac9 JB |
254 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
255 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
738da8d6 | 256 | %py_postclean |
68d62ac9 | 257 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} |
57f09668 | 258 | %endif |
9ee6c1ce | 259 | |
659527ec | 260 | %if %{with python3} |
2d0ad02a JR |
261 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.{la,a} |
262 | %endif | |
263 | ||
54697230 JB |
264 | %clean |
265 | rm -rf $RPM_BUILD_ROOT | |
266 | ||
267 | %post libs -p /sbin/ldconfig | |
268 | %postun libs -p /sbin/ldconfig | |
269 | ||
270 | %post | |
738da8d6 JR |
271 | # Copy default rules into place on new installation |
272 | if [ ! -e %{_sysconfdir}/audit/audit.rules ] ; then | |
0167336b | 273 | cp -a %{_sysconfdir}/audit/rules.d/10-no-audit.rules %{_sysconfdir}/audit/audit.rules |
738da8d6 | 274 | fi |
54697230 | 275 | /sbin/chkconfig --add auditd |
2a6b8c9c | 276 | %service auditd restart "audit daemon" |
7ede5762 | 277 | %systemd_post auditd.service |
54697230 JB |
278 | |
279 | %preun | |
280 | if [ "$1" = "0" ]; then | |
2a6b8c9c | 281 | %service auditd stop |
54697230 JB |
282 | /sbin/chkconfig --del auditd |
283 | fi | |
9a3b9076 BZ |
284 | %systemd_preun auditd.service |
285 | ||
7ede5762 JR |
286 | %postun |
287 | %systemd_reload | |
288 | ||
289 | %triggerpostun -- %{name} < 2.2-2 | |
290 | %systemd_trigger auditd.service | |
9a3b9076 | 291 | |
738da8d6 JR |
292 | %triggerpostun -- %{name} < 2.3-1 |
293 | if [ -e %{_sysconfdir}/audit/audit.rules.rpmsave ] ; then | |
294 | %{__mv} %{_sysconfdir}/audit/audit.rules{.rpmsave,} | |
295 | fi | |
f5eaf0b6 JR |
296 | %service auditd restart "audit daemon" |
297 | %systemd_post auditd.service | |
738da8d6 | 298 | |
0167336b JB |
299 | %triggerpostun -- %{name} < 2.5-1 |
300 | if [ -f %{_sysconfdir}/audit/rules.d/audit.rules.rpmsave ]; then | |
301 | %banner %{name} -e <<EOF | |
302 | Since audit 2.5 %{_sysconfdir}/audit/rules.d/audit.rules file (now saved | |
303 | as audit.rules.rpmnew) is replaced by a set of numbered rule files - remember | |
304 | to update your configuration! | |
305 | EOF | |
306 | fi | |
307 | ||
54697230 JB |
308 | %files |
309 | %defattr(644,root,root,755) | |
a32d4fda | 310 | %doc AUTHORS ChangeLog README THANKS rules/{README-rules,*.rules} init.d/auditd.cron |
2bfdaebd | 311 | %attr(750,root,root) %{_bindir}/aulast |
08b12da9 JB |
312 | %attr(750,root,root) %{_bindir}/aulastlog |
313 | %attr(750,root,root) %{_bindir}/ausyscall | |
d80f3483 | 314 | %attr(750,root,root) %{_bindir}/auvirt |
80475ae6 | 315 | %attr(750,root,root) %{_sbindir}/audispd |
54697230 JB |
316 | %attr(750,root,root) %{_sbindir}/auditctl |
317 | %attr(750,root,root) %{_sbindir}/auditd | |
896d27e1 | 318 | %attr(750,root,root) %{_sbindir}/augenrules |
e5a8c0d8 | 319 | %attr(750,root,root) %{_sbindir}/aureport |
54697230 JB |
320 | %attr(750,root,root) %{_sbindir}/ausearch |
321 | %attr(750,root,root) %{_sbindir}/autrace | |
08b12da9 | 322 | %attr(755,root,root) %{_sbindir}/audisp-remote |
ffa39469 | 323 | %{?with_zos_remote:%attr(755,root,root) %{_sbindir}/audispd-zos-remote} |
0a348a92 JB |
324 | %dir %{_sysconfdir}/audisp |
325 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audispd.conf | |
08b12da9 | 326 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audisp-remote.conf |
ffa39469 | 327 | %{?with_zos_remote:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/zos-remote.conf} |
0a348a92 JB |
328 | %dir %{_sysconfdir}/audisp/plugins.d |
329 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/af_unix.conf | |
08b12da9 | 330 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/au-remote.conf |
ffa39469 | 331 | %{?with_zos_remote:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/audispd-zos-remote.conf} |
0a348a92 | 332 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/syslog.conf |
7630c8d3 | 333 | %dir %{_sysconfdir}/audit |
9a4de669 | 334 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/audit-stop.rules |
7630c8d3 | 335 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audit/auditd.conf |
896d27e1 | 336 | %dir %{_sysconfdir}/audit/rules.d |
0167336b | 337 | %attr(640,root,root) %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/audit/rules.d/10-no-audit.rules |
80475ae6 | 338 | %attr(754,root,root) /etc/rc.d/init.d/auditd |
f6ae0a53 | 339 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/auditd |
7ede5762 | 340 | %{systemdunitdir}/auditd.service |
54697230 | 341 | %attr(750,root,root) %dir %{_var}/log/audit |
0a348a92 | 342 | %{_mandir}/man5/audispd.conf.5* |
08b12da9 | 343 | %{_mandir}/man5/audisp-remote.conf.5* |
80475ae6 | 344 | %{_mandir}/man5/auditd.conf.5* |
526a1f46 | 345 | %{_mandir}/man5/ausearch-expression.5* |
ffa39469 | 346 | %{?with_zos_remote:%{_mandir}/man5/zos-remote.conf.5*} |
693afa1c | 347 | %{_mandir}/man7/audit.rules.7* |
08b12da9 | 348 | %{_mandir}/man8/audisp-remote.8* |
ffa39469 | 349 | %{?with_zos_remote:%{_mandir}/man8/audispd-zos-remote.8*} |
526a1f46 JB |
350 | %{_mandir}/man8/audispd.8* |
351 | %{_mandir}/man8/auditctl.8* | |
352 | %{_mandir}/man8/auditd.8* | |
896d27e1 | 353 | %{_mandir}/man8/augenrules.8* |
2bfdaebd | 354 | %{_mandir}/man8/aulast.8* |
526a1f46 JB |
355 | %{_mandir}/man8/aulastlog.8* |
356 | %{_mandir}/man8/aureport.8* | |
357 | %{_mandir}/man8/ausearch.8* | |
08b12da9 | 358 | %{_mandir}/man8/ausyscall.8* |
526a1f46 | 359 | %{_mandir}/man8/autrace.8* |
d80f3483 | 360 | %{_mandir}/man8/auvirt.8* |
54697230 JB |
361 | |
362 | %files libs | |
363 | %defattr(644,root,root,755) | |
364 | %attr(755,root,root) /%{_lib}/libaudit.so.*.*.* | |
82313177 | 365 | %attr(755,root,root) %ghost /%{_lib}/libaudit.so.1 |
8ba70267 | 366 | %attr(755,root,root) /%{_lib}/libauparse.so.*.*.* |
fef538cf | 367 | %attr(755,root,root) %ghost /%{_lib}/libauparse.so.0 |
7630c8d3 | 368 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libaudit.conf |
693afa1c | 369 | %{_mandir}/man5/libaudit.conf.5* |
54697230 JB |
370 | |
371 | %files libs-devel | |
372 | %defattr(644,root,root,755) | |
373 | %attr(755,root,root) %{_libdir}/libaudit.so | |
8ba70267 | 374 | %attr(755,root,root) %{_libdir}/libauparse.so |
54697230 | 375 | %{_libdir}/libaudit.la |
8ba70267 | 376 | %{_libdir}/libauparse.la |
6d3a6f20 | 377 | %{_includedir}/auparse*.h |
54697230 | 378 | %{_includedir}/libaudit.h |
49caa03e | 379 | %{_pkgconfigdir}/audit.pc |
2d0ad02a | 380 | %{_pkgconfigdir}/auparse.pc |
0167336b | 381 | %{_aclocaldir}/audit.m4 |
526a1f46 JB |
382 | %{_mandir}/man3/audit_*.3* |
383 | %{_mandir}/man3/auparse_*.3* | |
384 | %{_mandir}/man3/ausearch_*.3* | |
385 | %{_mandir}/man3/get_auditfail_action.3* | |
386 | %{_mandir}/man3/set_aumessage_mode.3* | |
54697230 JB |
387 | |
388 | %files libs-static | |
389 | %defattr(644,root,root,755) | |
390 | %{_libdir}/libaudit.a | |
8ba70267 | 391 | %{_libdir}/libauparse.a |
9ee6c1ce | 392 | |
526a1f46 JB |
393 | %if %{with prelude} |
394 | %files plugin-prelude | |
395 | %defattr(644,root,root,755) | |
396 | %attr(755,root,root) %{_sbindir}/audisp-prelude | |
397 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/audisp-prelude.conf | |
398 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/audisp/plugins.d/au-prelude.conf | |
399 | %{_mandir}/man5/audisp-prelude.conf.5* | |
400 | %{_mandir}/man8/audisp-prelude.8* | |
401 | %endif | |
402 | ||
49caa03e JB |
403 | %if %{with golang} |
404 | %files -n golang-audit | |
405 | %defattr(644,root,root,755) | |
2d0ad02a JR |
406 | %dir %{_libdir}/golang/src/redhat.com |
407 | %{_libdir}/golang/src/redhat.com/audit | |
49caa03e JB |
408 | %endif |
409 | ||
57f09668 | 410 | %if %{with python} |
9ee6c1ce JB |
411 | %files -n python-audit |
412 | %defattr(644,root,root,755) | |
413 | %attr(755,root,root) %{py_sitedir}/_audit.so | |
84214962 | 414 | %attr(755,root,root) %{py_sitedir}/auparse.so |
4c11c375 | 415 | %{py_sitedir}/audit.py[co] |
57f09668 | 416 | %endif |
2d0ad02a JR |
417 | |
418 | %if %{with python3} | |
419 | %files -n python3-audit | |
420 | %defattr(644,root,root,755) | |
421 | %attr(755,root,root) %{py3_sitedir}/_audit.so | |
422 | %attr(755,root,root) %{py3_sitedir}/auparse.so | |
423 | %{py3_sitedir}/audit.py | |
4faf4930 | 424 | %{py3_sitedir}/__pycache__/audit.cpython-*.py[co] |
2d0ad02a | 425 | %endif |