1 Summary: ULOGD - the Userspace Logging Daemon for iptables
2 Summary(pl): Demon loguj±cy w trybie u¿ytkownika dla iptables
7 Group: Networking/Daemons
8 Source0: ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.gz
10 Source2: %{name}.sysconfig
11 Source3: %{name}.logrotate
13 URL: http://www.gnumonks.org/projects/ulogd
14 BuildRequires: autoconf
15 BuildRequires: mysql-devel
16 #Requires: kernel >= 2.4.0test9
18 Prereq: /sbin/chkconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sysconfdir /etc
24 This packages is intended for passing packets from the kernel to
25 userspace to do some logging there. It should work like that:
26 - register a target called ULOG with netfilter
27 - if the target is hit:
28 - send the packet out using netlink multicast facility
29 - return NF_ACCEPT immediately.
32 Ten pakiet ma s³u¿yæ do wysy³ania pakietów z j±dra do przestrzeni
33 u¿ytkownika w celu logowania. Powinien dzia³aæ tak:
34 - zarejestrowaæ w netfilterze cel o nazwie ULOG
35 - je¿eli cel zosta³ osi±gniêty:
36 - wys³aæ pakiet poprzez netlink
37 - zwróciæ natychmiast NF_ACCEPT.
40 Summary: MySQL plugin for ulogd
41 Summary(pl): Wtyczka MySQL dla ulogd
42 Group: Networking/Daemons
44 Obsoletes: iptables-ulogd-mysql
47 MySQL plugin for ulogd.
49 %description mysql -l pl
50 Wtyczka MySQL dla ulogd.
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,logrotate.d,rc.d/init.d}} \
64 $RPM_BUILD_ROOT/var/log
66 %{__make} install DESTDIR=$RPM_BUILD_ROOT
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ulogd
69 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ulogd
70 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/ulogd
71 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
74 touch $RPM_BUILD_ROOT/var/log/ulogd{,.pktlog}
77 rm -rf $RPM_BUILD_ROOT
80 if [ ! -f /var/log/ulogd ]; then
81 touch /var/log/ulogd{,.pktlog}
82 chmod 640 /var/log/ulogd{,.pktlog}
85 /sbin/chkconfig --add ulogd
86 if [ -f /var/lock/subsys/ulogd ]; then
87 /etc/rc.d/init.d/ulogd restart 1>&2
89 echo "Run \"/etc/rc.d/init.d/ulogd start\" to start ulogd daemon." 1>&2
93 if [ "$1" = "0" ]; then
94 if [ -f /var/lock/subsys/ulogd ]; then
95 /etc/rc.d/init.d/ulogd stop 1>&2
97 /sbin/chkconfig --del ulogd
101 %defattr(644,root,root,755)
102 %doc Changes doc/*.{ps,txt,html}
103 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/ulogd
104 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/ulogd.conf
105 %attr(640,root,root) /etc/logrotate.d/ulogd
106 %attr(754,root,root) /etc/rc.d/init.d/ulogd
108 %attr(755,root,root) %{_sbindir}/*
109 %attr(755,root,root) %{_libdir}/ulogd/ulogd_[BLOP]*.so
111 %attr(640,root,root) %ghost /var/log/*
114 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/ulogd/ulogd_MYSQL.so