1 # TODO: fix build with current llh
2 Summary: User space tools for 2.6 kernel auditing
3 Summary(pl): Narzêdzia przestrzeni u¿ytkownika do audytu j±der 2.6
9 Source0: http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
10 # Source0-md5: e31f3c554e9848a50afa6a119dc84d5c
11 URL: http://people.redhat.com/sgrubb/audit/
12 BuildRequires: autoconf >= 2.59
13 BuildRequires: automake >= 1.9
14 BuildRequires: libtool
15 BuildRequires: linux-libc-headers >= 2.6.11
17 Requires(post,preun): /sbin/chkconfig
18 Requires: %{name}-libs = %{version}-%{release}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sbindir /sbin
24 The audit package contains the user space utilities for storing and
25 processing the audit records generate by the audit subsystem in the
29 Ten pakiet zawiera narzêdzia przestrzeni u¿ytkownika do przechowywania
30 i przetwarzania rekordów audytu generowanych przez podsystem audytu w
34 Summary: Dynamic libaudit library
35 Summary(pl): Biblioteka dynamiczna libaudit
40 The audit-libs package contains the dynamic library needed for
41 applications to use the audit framework.
43 %description libs -l pl
44 Ten pakiet zawiera bibliotekê dynamiczn± potrzebn± dla aplikacji
45 u¿ywaj±cych ¶rodowiska audytu.
48 Summary: Header files for libaudit library
49 Summary(pl): Pliki nag³ówkowe biblioteki libaudio
51 Group: Development/Libraries
52 Requires: %{name}-libs = %{version}-%{release}
54 %description libs-devel
55 The audit-libs-devel package contains the header files needed for
56 developing applications that need to use the audit framework library.
58 %description libs-devel -l pl
59 Ten pakiet zawiera pliki nag³ówkowe potrzebne do tworzenia aplikacji
60 u¿ywaj±cych biblioteki ¶rodowiska audytu.
63 Summary: Static libaudit library
64 Summary(pl): Statyczna biblioteka libaudit
66 Group: Development/Libraries
67 Requires: %{name}-libs-devel = %{version}-%{release}
69 %description libs-static
70 The audit-libs-static package contains the static library for
71 developing applications that need to use the audit framework library.
73 %description libs-static -l pl
74 Ten pakiet zawiera statyczn± bibliotekê do tworzenia aplikacji
75 u¿ywaj±cych ¶rodowiska audytu.
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_var}/log/audit
94 DESTDIR=$RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT/%{_lib}
97 mv -f $RPM_BUILD_ROOT%{_libdir}/libaudit.so.* $RPM_BUILD_ROOT/%{_lib}
98 ln -sf $(cd $RPM_BUILD_ROOT/%{_lib} ; echo libaudit.so.*.*.*) \
99 PM_BUILD_ROOT%{_libdir}/libaudit.so
101 # We manually install this since Makefile doesn't
102 install -d $RPM_BUILD_ROOT%{_includedir}
103 install lib/libaudit.h $RPM_BUILD_ROOT%{_includedir}
106 rm -rf $RPM_BUILD_ROOT
108 %post libs -p /sbin/ldconfig
109 %postun libs -p /sbin/ldconfig
112 /sbin/chkconfig --add auditd
113 if [ -f /var/lock/subsys/auditd ]; then
114 /etc/rc.d/init.d/auditd restart >&2
116 echo "Run \"/etc/rc.d/init.d/auditd start\" to start audit daemon." >&2
120 if [ "$1" = "0" ]; then
121 if [ -f /var/lock/subsys/auditd ]; then
122 /etc/rc.d/init.d/auditd stop >&2
124 /sbin/chkconfig --del auditd
128 %defattr(644,root,root,755)
129 %doc AUTHORS ChangeLog README THANKS TODO sample.rules
130 %attr(750,root,root) %{_sbindir}/auditctl
131 %attr(750,root,root) %{_sbindir}/auditd
132 %attr(750,root,root) %{_sbindir}/ausearch
133 %attr(750,root,root) %{_sbindir}/autrace
134 %attr(754,root,root) /etc/rc.d/init.d/auditd
135 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/auditd.conf
136 %config(noreplace) %attr(640,root,root) %{_sysconfdir}/audit.rules
137 %config(noreplace) %attr(640,root,root) %verify(not md5 mtime size) /etc/sysconfig/auditd
138 %attr(750,root,root) %dir %{_var}/log/audit
142 %defattr(644,root,root,755)
143 %attr(755,root,root) /%{_lib}/libaudit.so.*.*.*
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/libaudit.so
148 %{_libdir}/libaudit.la
149 %{_includedir}/libaudit.h
153 %defattr(644,root,root,755)
154 %{_libdir}/libaudit.a