]> git.pld-linux.org Git - packages/ulogd.git/blobdiff - ulogd.spec
- rel 3 (libmysqlclient_15)
[packages/ulogd.git] / ulogd.spec
index 2b6e51981b170540ed96d59ef11f200210a13d0a..335cd7fd89676a9778d3af969295d21a4768763b 100644 (file)
@@ -5,7 +5,7 @@ Summary:        ULOGD - the Userspace Logging Daemon for iptables
 Summary(pl):   Demon loguj±cy w trybie u¿ytkownika dla iptables
 Name:          ulogd
 Version:       1.23
-Release:       1
+Release:       3
 License:       GPL
 Group:         Networking/Daemons
 Source0:       ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.bz2
@@ -17,12 +17,13 @@ Patch0:             %{name}-includes.patch
 URL:           http://gnumonks.org/projects/ulogd/
 BuildRequires: autoconf
 BuildRequires: mysql-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
-PreReq:                rc-scripts
-Requires(post,preun):  /sbin/chkconfig
 Requires(post):        fileutils
-#Requires:     kernel >= 2.4.0test9
+Requires(post,preun):  /sbin/chkconfig
 Requires:      iptables
+#Requires:     kernel >= 2.4.0test9
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -93,17 +94,11 @@ if [ ! -f /var/log/ulogd ]; then
 fi
 
 /sbin/chkconfig --add ulogd
-if [ -f /var/lock/subsys/ulogd ]; then
-       /etc/rc.d/init.d/ulogd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/ulogd start\" to start ulogd daemon." 1>&2
-fi
+%service ulogd restart "ulogd daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/ulogd ]; then
-               /etc/rc.d/init.d/ulogd stop 1>&2
-       fi
+       %service ulogd stop
        /sbin/chkconfig --del ulogd
 fi
 
This page took 0.147606 seconds and 4 git commands to generate.