]> git.pld-linux.org Git - packages/dante.git/blobdiff - dante.spec
- standarize %post/%postun in server subpackage.
[packages/dante.git] / dante.spec
index 2a2be51e6edc559464601c41b3d71e513fa8782d..d3f404b79a98eba6679eb7de0abc518374306b62 100644 (file)
@@ -1,13 +1,14 @@
 Summary:       A free Socks v4/v5 client implementation
 Summary(pl):   Implementacja klienta Socks v4/5
 Name:          dante
-Version:       1.1.9
+Version:       1.1.12
 Release:       1
 License:       BSD-like
 Group:         Networking/Daemons
 Source0:       ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
 Source1:       sockd.init
 URL:           http://www.inet.no/dante/
+BuildRequires: autoconf
 BuildRequires: libwrap-devel
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -75,7 +76,8 @@ Statyczne biblioteki socks.
 %setup -q
 
 %build
-%configure2_13
+%{__autoconf}
+%configure
 %{__make}
 
 %install
@@ -88,8 +90,6 @@ install example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
 
 install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
 
-gzip -9nf BUGS CREDITS LICENSE NEWS README SUPPORT TODO
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -98,15 +98,23 @@ rm -rf $RPM_BUILD_ROOT
 
 %post server
 /sbin/chkconfig --add sockd
+if [ -f /var/lock/subsys/sockd ]; then
+       /etc/rc.d/init.d/sockd restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
+fi
 
 %postun server
-if [ $1 = 0 ]; then
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/sockd ]; then
+               /etc/rc.d/init.d/sockd stop 1>&2
+       fi
        /sbin/chkconfig --del sockd
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc BUGS CREDITS LICENSE NEWS README SUPPORT TODO
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 %attr(755,root,root) %{_bindir}/socksify
This page took 0.023065 seconds and 4 git commands to generate.