]> git.pld-linux.org Git - packages/ulogd.git/blobdiff - ulogd.spec
- multiple instances support
[packages/ulogd.git] / ulogd.spec
index fc13a27c63263a6efe1239ddd86bca5adc619257..dc1dde7809612d7897277fb73a6f2b7616cee310 100644 (file)
@@ -1,27 +1,29 @@
+# TODO: (maybe ;)
+# - pgsql support
+# - sqlite support
 Summary:       ULOGD - the Userspace Logging Daemon for iptables
 Summary(pl):   Demon loguj±cy w trybie u¿ytkownika dla iptables
 Name:          ulogd
-Version:       1.00
-Release:       1
+Version:       1.22
+Release:       1.1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.bz2
-# Source0-md5: debd61d22f28ca9f4505bb488a1a1e1c
+# Source0-md5: 2593dfc51c0bc1d8f86519fb13dd5f34
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.logrotate
-Source4:       %{name}.conf
+Patch0:                %{name}-includes.patch
 URL:           http://gnumonks.org/projects/ulogd/
 BuildRequires: autoconf
 BuildRequires: mysql-devel
+PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
 Requires(post):        fileutils
 #Requires:     kernel >= 2.4.0test9
 Requires:      iptables
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc
-
 %description
 This packages is intended for passing packets from the kernel to
 userspace to do some logging there. It should work like that:
@@ -42,7 +44,6 @@ u
 Summary:       MySQL plugin for ulogd
 Summary(pl):   Wtyczka MySQL dla ulogd
 Group:         Networking/Daemons
-Requires:      mysql
 Obsoletes:     iptables-ulogd-mysql
 
 %description mysql
@@ -53,8 +54,14 @@ Wtyczka MySQL dla ulogd.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%if "%{_lib}" != "lib"
+sed -e 's@lib/@%{_lib}/@g' -i configure.in
+sed -e 's@${MYSQLLIBS}@%{_libdir}@g' -i configure.in
+%endif
+
 %{__autoconf}
 %configure \
        --with-mysql
@@ -62,16 +69,16 @@ Wtyczka MySQL dla ulogd.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,logrotate.d,rc.d/init.d}} \
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{sysconfig,logrotate.d,rc.d/init.d,ulogd}} \
        $RPM_BUILD_ROOT/var/log
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ulogd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/ulogd
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/ulogd
-install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}
-
+install -D %{name}.8 $RPM_BUILD_ROOT/%{_mandir}/man8/%{name}.8
 
 touch $RPM_BUILD_ROOT/var/log/ulogd{,.pktlog}
 
@@ -102,15 +109,18 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc Changes doc/*.{ps,txt,html}
-%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/ulogd
-%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/ulogd.conf
-%attr(640,root,root) /etc/logrotate.d/ulogd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ulogd
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ulogd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/ulogd
+%dir(750,root,root) %{_sysconfdir}/ulogd
 %attr(754,root,root) /etc/rc.d/init.d/ulogd
 
 %attr(755,root,root) %{_sbindir}/*
-%attr(755,root,root) %{_libdir}/ulogd/ulogd_[BLOP]*.so
+%dir %{_libdir}/ulogd
+%attr(755,root,root) %{_libdir}/ulogd/ulogd_[BLOPS]*.so
 
 %attr(640,root,root) %ghost /var/log/*
+%{_mandir}/man?/%{name}.*
 
 %files mysql
 %defattr(644,root,root,755)
This page took 0.052789 seconds and 4 git commands to generate.