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: courier-authlib-devel
17 BuildRequires: libtool
18 BuildRequires: libltdl-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _libexecdir %{_libdir}/courier-sox
24 This is a generic Socks 5 client support library. It does not include
25 a Socks 5 server (yet). This is just a client-side library.
28 Ogólna biblioteka kliencka Socks 5. Nie zawiera (jeszcze) serwera
29 Socks 5, jest tylko bibliotek± dla strony klienta.
32 Summary: Socks 5 client header files
33 Summary(pl): Pliki nag³ówkowe klienta socks 5
34 Group: Development/Libraries
35 Requires: %{name} = %{version}-%{release}
38 This package contains header files for building applications that use
41 %description devel -l pl
42 Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji u¿ywaj±cych
46 Summary: Socks 5 server
47 Summary(pl): Serwer socks 5
48 Group: Networking/Utilities
49 Requires: %{name} = %{version}-%{release}
50 Requires(post,preun): /sbin/chkconfig
53 This package contains the Courier Socks 5 server. Install this package
54 if you want to run a Socks 5 server.
56 %description server -l pl
57 Ten pakiet zawiera serwer couriera socks 5. Je¿eli chcesz uruchamiaæ
58 serwer socks5, zainstaluj ten pakiet.
61 Summary: Socks 5 client static libraries
62 Summary(pl): Biblioteki statyczne klienta socks 5
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 This package contains static libraries for building applications that
70 %description static -l pl
71 Ten pakiet zawiera biblioteki statyczne do tworzenia aplikacji
72 u¿ywaj±cych proxy Socks 5.
86 --libexecdir=%{_libexecdir}
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
98 install courier-sox.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-sox
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 /sbin/chkconfig --add courier-sox
109 if [ -f /var/lock/subsys/courier-sox ]; then
110 /etc/rc.d/init.d/courier-sox restart >&2
112 echo "Run \"/etc/rc.d/init.d/courier-sox start\" to start courier-sox"
116 if [ "$1" = "0" ]; then
117 if [ -f /var/lock/subsys/courier-sox ]; then
118 /etc/rc.d/init.d/courier-sox stop
120 /sbin/chkconfig --del courier-sox
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README *.html
126 %attr(755,root,root) %{_bindir}/*
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
129 %{_mandir}/man1/socksify*
130 %{_mandir}/man3/socks*
132 %{_sysconfdir}/socksrc
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/lib*.so
140 %defattr(644,root,root,755)
141 %attr(754,root,root) /etc/rc.d/init.d/courier-sox
142 %{_mandir}/man1/sockd*
143 %attr(755,root,root) %{_sbindir}/sockd
145 %attr(755,root,root) %{_libexecdir}/sockd
148 %defattr(644,root,root,755)