]> git.pld-linux.org Git - packages/dante.git/blobdiff - dante.spec
- standarize %post/%postun in server subpackage.
[packages/dante.git] / dante.spec
index d50f382a7201eb2a1cef3e20f21fde153c178414..d3f404b79a98eba6679eb7de0abc518374306b62 100644 (file)
@@ -1,15 +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-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)
 
@@ -35,15 +34,15 @@ istniej
 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.
@@ -52,49 +51,44 @@ klienci mog
 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
@@ -104,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.043683 seconds and 4 git commands to generate.