1 Summary: Courier Socks 5 client library
2 Summary(pl): Biblioteki klienckie Socks 5
7 Group: Networking/Daemons
8 #Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
9 Source0: http://www.courier-mta.org/beta/sox/%{name}-%{version}.tar.bz2
10 # Source0-md5: 41a87d18a56dcabd3fc513ceba7b679b
11 Patch0: %{name}-build.patch
12 Patch1: %{name}-init.patch
13 URL: http://www.courier-mta.org
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libtool
17 BuildRequires: libltdl-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _libexecdir %{_libdir}/courier-sox
23 This is a generic Socks 5 client support library. It does not include
24 a Socks 5 server (yet). This is just a client-side library.
27 Ogólna biblioteka kliencka Socks 5. Nie zawiera (jeszcze) serwera
28 Socks 5, jest tylko bibliotek± dla strony klienta.
31 Summary: Socks 5 client header files
32 Summary(pl): Pliki nag³ówkowe klienta socks 5
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 This package contains header files for building applications that use
40 %description devel -l pl
41 Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji u¿ywaj±cych
45 Summary: Socks 5 server
46 Summary(pl): Serwer socks 5
47 Group: Networking/Utilities
48 Requires: %{name} = %{version}-%{release}
49 Requires(post,preun): /sbin/chkconfig
52 This package contains the Courier Socks 5 server. Install this package
53 if you want to run a Socks 5 server.
55 %description server -l pl
56 Ten pakiet zawiera serwer couriera socks 5. Je¿eli chcesz uruchamiaæ
57 serwer socks5, zainstaluj ten pakiet.
60 Summary: Socks 5 client static libraries
61 Summary(pl): Biblioteki statyczne klienta socks 5
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 This package contains static libraries for building applications that
69 %description static -l pl
70 Ten pakiet zawiera biblioteki statyczne do tworzenia aplikacji
71 u¿ywaj±cych proxy Socks 5.
85 --libexecdir=%{_libexecdir}
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
97 install courier-sox.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-sox
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 /sbin/chkconfig --add courier-sox
108 if [ -f /var/lock/subsys/courier-sox ]; then
109 /etc/rc.d/init.d/courier-sox restart >&2
111 echo "Run \"/etc/rc.d/init.d/courier-sox start\" to start courier-sox"
115 if [ "$1" = "0" ]; then
116 if [ -f /var/lock/subsys/courier-sox ]; then
117 /etc/rc.d/init.d/courier-sox stop
119 /sbin/chkconfig --del courier-sox
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README *.html
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_libdir}/lib*.so.*.*
128 %{_mandir}/man1/socksify*
129 %{_mandir}/man3/socks*
131 %{_sysconfdir}/socksrc
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.so
139 %defattr(644,root,root,755)
140 %attr(754,root,root) /etc/rc.d/init.d/courier-sox
141 %{_mandir}/man1/sockd*
142 %attr(755,root,root) %{_sbindir}/sockd
144 %attr(755,root,root) %{_libexecdir}/sockd
147 %defattr(644,root,root,755)