]> git.pld-linux.org Git - packages/dante.git/blob - dante.spec
- config.sub added, should works with amd64
[packages/dante.git] / dante.spec
1 Summary:        A free Socks v4/v5 client implementation
2 Summary(pl):    Darmowa implementacja klienta Socks v4/5
3 Name:           dante
4 Version:        1.1.14
5 Release:        1
6 License:        BSD-like
7 Group:          Networking/Daemons
8 Source0:        ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
9 # Source0-md5:  465c2c615c1aa64afd328feee97ba007
10 Source1:        sockd.init
11 URL:            http://www.inet.no/dante/
12 BuildRequires:  autoconf
13 BuildRequires:  libwrap-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Dante is a free implementation of the proxy protocols socks version 4,
18 socks version 5 (rfc1928) and msproxy. It can be used as a firewall
19 between networks. It is being developed by Inferno Nettverk A/S, a
20 Norwegian consulting company. Commercial support is available.
21
22 This package contains the dynamic libraries required to "socksify"
23 existing applications to become socks clients.
24
25 %description -l pl
26 Dante jest darmow± implementacj± protoko³ów proxy: socks w wersji 4,
27 socks w wersji 5 (rfc1928) oraz msproxy. Mo¿e byæ u¿ywany jako zapora
28 pomiêdzy sieciami. Implementacja jest rozwijana przez Inferno Nettverk
29 A/S - Norwesk± firmê konsultingow±. Komercyjne wsparcie jest dostêpne.
30
31 Ten pakiet zawiera dynamiczne biblioteki wymagane do "usocksowiania"
32 istniej±cych aplikacji tak by dzia³a³y one jako klienci socks.
33
34 %package server
35 Summary:        A free Socks v4/v5 server implementation
36 Summary(pl):    Darmowa implementacja serwera Socks v4/5
37 Group:          Networking/Daemons
38 Requires:       %{name} = %{version}
39 PreReq:         rc-scripts
40 Requires(post,preun):   /sbin/chkconfig
41
42 %description server
43 This package contains the socks proxy daemon and its documentation.
44 The sockd is the server part of the Dante socks proxy package and
45 allows socks clients to connect through it to the network.
46
47 %description server -l pl
48 Ten pakiet zawiera serwer proxy socks oraz jego dokumentacjê. Serwer
49 sockd jest czê¶ci± pakietu proxy Dante. Za po¶rednictwem serwera
50 klienci mog± ³±czyæ siê z serwerami w sieci.
51
52 %package devel
53 Summary:        Development libraries for socks
54 Summary(pl):    Biblioteki developerskie dla socks
55 Group:          Networking/Daemons
56 Requires:       %{name} = %{version}
57
58 %description devel
59 Additional libraries required to compile programs that use socks.
60
61 %description devel -l pl
62 Dodatkowe biblioteki wymagane do rozwoju programów korzystaj±cych z
63 socks.
64
65 %package static
66 Summary:        Static libraries for socks
67 Summary(pl):    Statyczne biblioteki socks
68 Group:          Networking/Daemons
69 Requires:       %{name}-devel = %{version}
70
71 %description static
72 Static libraries for socks.
73
74 %description static -l pl
75 Statyczne biblioteki socks.
76
77 %prep
78 %setup -q
79
80 %build
81 cp -f /usr/share/automake/config.sub .
82 %{__autoconf}
83 %configure
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 install example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
94
95 install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %post server
104 /sbin/chkconfig --add sockd
105 if [ -f /var/lock/subsys/sockd ]; then
106         /etc/rc.d/init.d/sockd restart 1>&2
107 else
108         echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
109 fi
110
111 %postun server
112 if [ "$1" = "0" ]; then
113         if [ -f /var/lock/subsys/sockd ]; then
114                 /etc/rc.d/init.d/sockd stop 1>&2
115         fi
116         /sbin/chkconfig --del sockd
117 fi
118
119 %files
120 %defattr(644,root,root,755)
121 %doc BUGS CREDITS LICENSE NEWS README SUPPORT TODO
122 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
123 %attr(755,root,root) %{_libdir}/lib*.so.*.*
124 %attr(755,root,root) %{_bindir}/socksify
125 %{_mandir}/man5/socks.conf.5*
126
127 %files server
128 %defattr(644,root,root,755)
129 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sockd.conf
130 %attr(754,root,root) /etc/rc.d/init.d/sockd
131 %attr(755,root,root) %{_sbindir}/sockd
132 %{_mandir}/man8/sockd.8*
133 %{_mandir}/man5/sockd.conf.5*
134
135 %files devel
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/lib*.so
138 %{_libdir}/lib*.la
139 %{_includedir}/*
140
141 %files static
142 %defattr(644,root,root,755)
143 %{_libdir}/lib*.a
This page took 0.09038 seconds and 3 git commands to generate.