4 Summary: ULOGD - the Userspace Logging Daemon for iptables
5 Summary(pl): Demon loguj±cy w trybie u¿ytkownika dla iptables
10 Group: Networking/Daemons
11 Source0: ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.bz2
12 # Source0-md5: fa3dfcaacf31855626d5b731b04a077f
14 Source2: %{name}.sysconfig
15 Source3: %{name}.logrotate
16 Patch0: %{name}-includes.patch
17 URL: http://gnumonks.org/projects/ulogd/
18 BuildRequires: autoconf
19 BuildRequires: mysql-devel
20 BuildRequires: rpmbuild(macros) >= 1.268
21 BuildRequires: sed >= 4.0
22 Requires(post): fileutils
23 Requires(post,preun): /sbin/chkconfig
25 #Requires: kernel >= 2.4.0test9
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This packages is intended for passing packets from the kernel to
31 userspace to do some logging there. It should work like that:
32 - register a target called ULOG with netfilter
33 - if the target is hit:
34 - send the packet out using netlink multicast facility
35 - return NF_ACCEPT immediately.
38 Ten pakiet ma s³u¿yæ do wysy³ania pakietów z j±dra do przestrzeni
39 u¿ytkownika w celu logowania. Powinien dzia³aæ tak:
40 - zarejestrowaæ w netfilterze cel o nazwie ULOG
41 - je¿eli cel zosta³ osi±gniêty:
42 - wys³aæ pakiet poprzez netlink
43 - zwróciæ natychmiast NF_ACCEPT.
46 Summary: MySQL plugin for ulogd
47 Summary(pl): Wtyczka MySQL dla ulogd
48 Group: Networking/Daemons
49 Obsoletes: iptables-ulogd-mysql
52 MySQL plugin for ulogd.
54 %description mysql -l pl
55 Wtyczka MySQL dla ulogd.
62 %if "%{_lib}" != "lib"
63 sed -e 's@lib/@%{_lib}/@g' -i configure.in
64 sed -e 's@${MYSQLLIBS}@%{_libdir}@g' -i configure.in
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,logrotate.d,rc.d/init.d,ulogd}} \
75 $RPM_BUILD_ROOT/var/log
78 DESTDIR=$RPM_BUILD_ROOT
80 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ulogd
81 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ulogd
82 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/ulogd
83 install -D %{name}.8 $RPM_BUILD_ROOT/%{_mandir}/man8/%{name}.8
85 touch $RPM_BUILD_ROOT/var/log/ulogd{,.pktlog}
88 rm -rf $RPM_BUILD_ROOT
91 if [ ! -f /var/log/ulogd ]; then
92 touch /var/log/ulogd{,.pktlog}
93 chmod 640 /var/log/ulogd{,.pktlog}
96 /sbin/chkconfig --add ulogd
97 %service ulogd restart "ulogd daemon"
100 if [ "$1" = "0" ]; then
102 /sbin/chkconfig --del ulogd
106 %defattr(644,root,root,755)
107 %doc Changes doc/*.{ps,txt,html}
108 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ulogd
109 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ulogd.conf
110 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ulogd
111 %attr(750,root,root) %dir %{_sysconfdir}/ulogd
112 %attr(754,root,root) /etc/rc.d/init.d/ulogd
114 %attr(755,root,root) %{_sbindir}/*
115 %dir %{_libdir}/ulogd
116 %attr(755,root,root) %{_libdir}/ulogd/ulogd_[BLOPS]*.so
118 %attr(640,root,root) %ghost /var/log/*
119 %{_mandir}/man?/%{name}.*
122 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/ulogd/ulogd_MYSQL.so