]> git.pld-linux.org Git - packages/courier-sox.git/commitdiff
- splited server package
authorAndrzej Augustynowicz <andrzej@augustynowicz.eu.org>
Sat, 16 Apr 2005 00:11:30 +0000 (00:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel. 0.5

Changed files:
    courier-sox.spec -> 1.5

courier-sox.spec

index d42da4bb664611127662e3dad6b4087c795eaa7f..c7ca9f56849cacd9670aa419600d433f8b8466da 100644 (file)
@@ -1,12 +1,8 @@
-#
-# TODO:
-#      - split server package
-#
 Summary:       Courier Socks 5 client library
 Summary(pl):   Biblioteki klienckie Socks 5
 Name:          courier-sox
 Version:       0.05
-Release:       0.1
+Release:       0.5
 License:       GPL
 Group:         Networking/Daemons
 #Source0:      http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
@@ -35,13 +31,28 @@ Group:              Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 
 %description devel
-This package contains header files for building applications that
-use Socks 5 proxies.
+This package contains header files for building applications that use
+Socks 5 proxies.
 
 %description devel -l pl
 Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji u¿ywaj±cych
 proxy Socks 5.
 
+%package server
+Summary:       Socks 5 server
+Summary(pl):   Serwer socks 5
+Group:         Networking/Utilities
+Requires:      %{name} = %{version}-%{release}
+Requires(post,preun):  /sbin/chkconfig
+
+%description server
+This package contains the Courier Socks 5 server. Install this package
+if you want to run a Socks 5 server.
+
+%description server -l pl
+Ten pakiet zawiera serwer couriera socks 5. Je¿eli chcesz uruchamiaæ
+serwer socks5, zainstaluj ten pakiet.
+
 %package static
 Summary:       Socks 5 client static libraries
 Summary(pl):   Biblioteki statyczne klienta socks 5
@@ -77,26 +88,55 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install courier-sox.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-sox
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
+%post server
+/sbin/chkconfig --add courier-sox
+
+if [ -f /var/lock/subsys/courier-sox ]; then
+       /etc/rc.d/init.d/courier-sox restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/courier-sox start\" to start courier-sox
+fi
+
+%preun server
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/courier-sox ]; then
+               /etc/rc.d/init.d/courier-sox stop
+       fi
+       /sbin/chkconfig --del courier-sox
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README *.html
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{_mandir}/*/*
-%{_sysconfdir}/*
+%{_libdir}/lib*.la
+%{_mandir}/man1/socksify*
+%{_mandir}/man3/socks*
+%{_mandir}/man5/*
+%{_sysconfdir}/socksrc
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
 %{_includedir}/*
 
+%files server
+%defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/courier-sox
+%{_mandir}/man1/sockd*
+%attr(755,root,root) %{_sbindir}/sockd
+%{_libdir}/sockd
+
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
This page took 0.076428 seconds and 4 git commands to generate.