]> git.pld-linux.org Git - packages/dante.git/blob - dante.spec
3cf7ec0c8a3f4f10cfccc7b6fd4d91eacebf8df0
[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.16
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:  a7493ac842bb83c5a307ec4ef33b938b
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         --disable-preload
86 %{__make}
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94
95 install example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
96
97 install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %post server
106 /sbin/chkconfig --add sockd
107 if [ -f /var/lock/subsys/sockd ]; then
108         /etc/rc.d/init.d/sockd restart 1>&2
109 else
110         echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
111 fi
112
113 %postun server
114 if [ "$1" = "0" ]; then
115         if [ -f /var/lock/subsys/sockd ]; then
116                 /etc/rc.d/init.d/sockd stop 1>&2
117         fi
118         /sbin/chkconfig --del sockd
119 fi
120
121 %files
122 %defattr(644,root,root,755)
123 %doc BUGS CREDITS LICENSE NEWS README SUPPORT TODO
124 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
125 %attr(755,root,root) %{_libdir}/lib*.so.*.*
126 %attr(755,root,root) %{_bindir}/socksify
127 %{_mandir}/man5/socks.conf.5*
128
129 %files server
130 %defattr(644,root,root,755)
131 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sockd.conf
132 %attr(754,root,root) /etc/rc.d/init.d/sockd
133 %attr(755,root,root) %{_sbindir}/sockd
134 %{_mandir}/man8/sockd.8*
135 %{_mandir}/man5/sockd.conf.5*
136
137 %files devel
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_libdir}/lib*.so
140 %{_libdir}/lib*.la
141 %{_includedir}/*
142
143 %files static
144 %defattr(644,root,root,755)
145 %{_libdir}/lib*.a
This page took 0.06652 seconds and 3 git commands to generate.