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)
%setup -q
%build
-%configure2_13
+%{__autoconf}
+%configure
%{__make}
%install
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
%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