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