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-type
+License: BSD-like
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
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)
Summary: A free Socks v4/v5 server implementation
Summary(pl): Implementacja serwera Socks v4/5
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
Requires: %{name} = %{version}
+Prereq: /sbin/chkconfig
%description server
This package contains the socks proxy daemon and its documentation.
The sockd is the server part of the Dante socks proxy package and
allows socks clients to connect through it to the network.
+%description server -l pl
Ten pakiet zawiera serwer proxy socks oraz jego dokumentacjê. Serwer
sockd jest czê¶ci± pakietu proxy Dante. Za po¶rednictwem serwera
klienci mog± ³±czyæ siê z serwerami w sieci.
Summary: development libraries for socks
Summary(pl): Biblioteki developerskie dla socks
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
Requires: %{name} = %{version}
%description devel
Additional libraries required to compile programs that use socks.
-%description -l pl devel
+%description devel -l pl
Dodatkowe biblioteki wymagane do rozwoju programów korzystaj±cych z
-cosck.
+socks.
%package static
-Summary: static libraries for socks
+Summary: Static libraries for socks
Summary(pl): Statyczne biblioteki socks
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
Requires: %{name}-devel = %{version}
%description static
Static libraries for socks.
-%description -l pl static
+%description static -l pl
Statyczne biblioteki socks.
%prep
%setup -q
%build
+%{__autoconf}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
-%{__install} example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
+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
+install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
%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