1 Summary: A free Socks v4/v5 client implementation
6 Group: Networking/Daemons
7 URL: http://www.inet.no/dante/
8 Source0: ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
10 Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12 %define prefix %{_prefix}
15 Dante is a free implementation of the proxy protocols socks version 4,
16 socks version 5 (rfc1928) and msproxy. It can be used as a firewall
17 between networks. It is being developed by Inferno Nettverk A/S, a
18 Norwegian consulting company. Commercial support is available.
20 This package contains the dynamic libraries required to "socksify"
21 existing applications to become socks clients.
24 Summary: A free Socks v4/v5 server implementation
25 Group: Networking/Daemons
26 Requires: dante = %{version}
29 This package contains the socks proxy daemon and its documentation.
30 The sockd is the server part of the Dante socks proxy package and
31 allows socks clients to connect through it to the network.
34 Summary: development libraries for socks
35 Group: Networking/Daemons
36 Requires: dante = %{version}
39 Additional libraries required to compile programs that use socks.
42 rm -rf $RPM_BUILD_ROOT
48 CFLAGS="${RPM_OPT_FLAGS}"
49 %configure --prefix=%{_prefix}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} install DESTDIR=${RPM_BUILD_ROOT}
57 #set library as executable - prevent ldd from complaining
58 chmod +x ${RPM_BUILD_ROOT}%{_libdir}/*.so.*.*
60 install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d ${RPM_BUILD_ROOT}%{_bindir}
62 install example/socks.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
63 install example/sockd.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
65 install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
67 ln -sf %{_libdir}/libdsocks.so $RPM_BUILD_ROOT/%{_libdir}/libdsocks.so.0
70 rm -rf $RPM_BUILD_ROOT
72 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
77 /sbin/chkconfig --add sockd
81 /sbin/chkconfig --del sockd
85 %defattr(644,root,root,755)
86 #files beginning with two capital letters are docs: BUGS, README.foo etc.
88 %{_libdir}/libsocks.so.0.1.0
89 %{_libdir}/libsocks.so.0
90 %{_libdir}/libdsocks.so.0.1.0
91 %{_libdir}/libdsocks.so.0
92 %attr(755,root,root) %{_bindir}/socksify
93 %{_mandir}/man5/socks.conf.5*
94 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_sbindir}/sockd
99 %{_mandir}/man8/sockd.8*
100 %{_mandir}/man5/sockd.conf.5*
103 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sockd.conf
104 %config /etc/rc.d/init.d/sockd
107 %defattr(644,root,root,755)
108 %{_libdir}/libsocks.la
109 %{_libdir}/libsocks.a
110 %{_libdir}/libdsocks.la
111 %{_libdir}/libsocks.so
112 %{_libdir}/libdsocks.so