]>
Commit | Line | Data |
---|---|---|
9d07af49 | 1 | Summary: A free Socks v4/v5 client implementation |
2 | Name: dante | |
3 | Version: 1.1.9 | |
4 | Release: 1 | |
5 | License: BSD-type | |
6 | Group: Networking/Daemons | |
57d52427 | 7 | Group(de): Netzwerkwesen/Server |
8 | Group(pl): Sieciowe/Serwery | |
9d07af49 | 9 | Source0: ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz |
10 | Source1: sockd.init | |
57d52427 | 11 | URL: http://www.inet.no/dante/ |
12 | BuildRequires: libwrap-devel | |
9d07af49 | 13 | Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
9d07af49 | 15 | %description |
16 | Dante is a free implementation of the proxy protocols socks version 4, | |
17 | socks version 5 (rfc1928) and msproxy. It can be used as a firewall | |
18 | between networks. It is being developed by Inferno Nettverk A/S, a | |
19 | Norwegian consulting company. Commercial support is available. | |
20 | ||
21 | This package contains the dynamic libraries required to "socksify" | |
22 | existing applications to become socks clients. | |
23 | ||
24 | %package server | |
25 | Summary: A free Socks v4/v5 server implementation | |
26 | Group: Networking/Daemons | |
57d52427 | 27 | Group(de): Netzwerkwesen/Server |
28 | Group(pl): Sieciowe/Serwery | |
29 | Requires: %{name} = %{version} | |
9d07af49 | 30 | |
31 | %description server | |
32 | This package contains the socks proxy daemon and its documentation. | |
33 | The sockd is the server part of the Dante socks proxy package and | |
34 | allows socks clients to connect through it to the network. | |
35 | ||
36 | %package devel | |
37 | Summary: development libraries for socks | |
38 | Group: Networking/Daemons | |
57d52427 | 39 | Group(de): Netzwerkwesen/Server |
40 | Group(pl): Sieciowe/Serwery | |
41 | Requires: %{name} = %{version} | |
9d07af49 | 42 | |
43 | %description devel | |
44 | Additional libraries required to compile programs that use socks. | |
45 | ||
57d52427 | 46 | %package static |
47 | Summary: static libraries for socks | |
48 | Group: Networking/Daemons | |
49 | Group(de): Netzwerkwesen/Server | |
50 | Group(pl): Sieciowe/Serwery | |
51 | Requires: %{name}-devel = %{version} | |
52 | ||
53 | %description static | |
54 | Static libraries for socks. | |
9d07af49 | 55 | |
57d52427 | 56 | %prep |
9d07af49 | 57 | %setup -q |
58 | ||
59 | %build | |
57d52427 | 60 | %configure |
9d07af49 | 61 | %{__make} |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
57d52427 | 65 | %{__install} -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} |
9d07af49 | 66 | |
57d52427 | 67 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
9d07af49 | 68 | |
57d52427 | 69 | %{__install} example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir} |
9d07af49 | 70 | |
57d52427 | 71 | %{__install} %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd |
9d07af49 | 72 | |
57d52427 | 73 | gzip -9nf BUGS CREDITS LICENSE NEWS README SUPPORT TODO |
9d07af49 | 74 | |
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
57d52427 | 78 | %post -p /sbin/ldconfig |
9d07af49 | 79 | %postun -p /sbin/ldconfig |
80 | ||
81 | %post server | |
82 | /sbin/chkconfig --add sockd | |
83 | ||
84 | %postun server | |
85 | if [ $1 = 0 ]; then | |
57d52427 | 86 | /sbin/chkconfig --del sockd |
9d07af49 | 87 | fi |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
57d52427 | 91 | %doc *.gz |
92 | %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf | |
93 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
9d07af49 | 94 | %attr(755,root,root) %{_bindir}/socksify |
95 | %{_mandir}/man5/socks.conf.5* | |
9d07af49 | 96 | |
97 | %files server | |
98 | %defattr(644,root,root,755) | |
57d52427 | 99 | %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sockd.conf |
100 | %attr(754,root,root) /etc/rc.d/init.d/sockd | |
9d07af49 | 101 | %attr(755,root,root) %{_sbindir}/sockd |
102 | %{_mandir}/man8/sockd.8* | |
103 | %{_mandir}/man5/sockd.conf.5* | |
104 | ||
9d07af49 | 105 | %files devel |
106 | %defattr(644,root,root,755) | |
57d52427 | 107 | %attr(755,root,root) %{_libdir}/lib*.so |
108 | %attr(755,root,root) %{_libdir}/lib*.la | |
109 | %{_includedir}/* | |
110 | ||
111 | %files static | |
112 | %defattr(644,root,root,755) | |
113 | %{_libdir}/lib*.a |