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