]> git.pld-linux.org Git - packages/dante.git/blob - dante.spec
- rel 2; fix files
[packages/dante.git] / dante.spec
1 Summary:        A free Socks v4/v5 client implementation
2 Summary(pl.UTF-8):      Darmowa implementacja klienta Socks v4/5
3 Name:           dante
4 Version:        1.3.2
5 Release:        2
6 License:        BSD-like
7 Group:          Networking/Daemons
8 Source0:        ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
9 # Source0-md5:  250c6456cd3fefa17f07fa80c9ccf6bd
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.UTF-8
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.UTF-8):      Darmowa implementacja serwera Socks v4/5
38 Group:          Networking/Daemons
39 Requires(post,preun):   /sbin/chkconfig
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       rc-scripts
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.UTF-8
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.UTF-8):      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.UTF-8
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.UTF-8):      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.UTF-8
76 Statyczne biblioteki socks.
77
78 %prep
79 %setup -q
80
81 %build
82 %{__libtoolize}
83 %{__aclocal}
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         --without-glibc-secure
89
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 install example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
100
101 install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %post server
110 /sbin/chkconfig --add sockd
111 if [ -f /var/lock/subsys/sockd ]; then
112         /etc/rc.d/init.d/sockd restart 1>&2
113 else
114         echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
115 fi
116
117 %postun server
118 if [ "$1" = "0" ]; then
119         if [ -f /var/lock/subsys/sockd ]; then
120                 /etc/rc.d/init.d/sockd stop 1>&2
121         fi
122         /sbin/chkconfig --del sockd
123 fi
124
125 %files
126 %defattr(644,root,root,755)
127 %doc BUGS CREDITS LICENSE NEWS README SUPPORT
128 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/socks.conf
129 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/lib*.so.0
131 %attr(755,root,root) %{_libdir}/libdsocks.so
132 %attr(755,root,root) %{_bindir}/socksify
133 %{_mandir}/man5/socks.conf.5*
134 %{_mandir}/man1/socksify.1*
135
136 %files server
137 %defattr(644,root,root,755)
138 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sockd.conf
139 %attr(754,root,root) /etc/rc.d/init.d/sockd
140 %attr(755,root,root) %{_sbindir}/sockd
141 %{_mandir}/man8/sockd.8*
142 %{_mandir}/man5/sockd.conf.5*
143
144 %files devel
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_libdir}/lib*.so
147 %exclude %{_libdir}/libdsocks.so
148 %{_libdir}/lib*.la
149 %{_includedir}/*
150
151 %files static
152 %defattr(644,root,root,755)
153 %{_libdir}/lib*.a
This page took 0.103936 seconds and 3 git commands to generate.