]> git.pld-linux.org Git - packages/dante.git/blob - dante.spec
- second part of small fixes inspired by kloczek (this time better checked,
[packages/dante.git] / dante.spec
1 Summary:        A free Socks v4/v5 client implementation
2 Summary(pl):    Implementacja klienta Socks v4/5
3 Name:           dante
4 Version:        1.1.13
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:  77a8e432e5f7327f36fb732022e82e44
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):    Implementacja serwera Socks v4/5
37 Group:          Networking/Daemons
38 Requires:       %{name} = %{version}
39 Prereq:         /sbin/chkconfig
40
41 %description server
42 This package contains the socks proxy daemon and its documentation.
43 The sockd is the server part of the Dante socks proxy package and
44 allows socks clients to connect through it to the network.
45
46 %description server -l pl
47 Ten pakiet zawiera serwer proxy socks oraz jego dokumentacjê. Serwer
48 sockd jest czê¶ci± pakietu proxy Dante. Za po¶rednictwem serwera
49 klienci mog± ³±czyæ siê z serwerami w sieci.
50
51 %package devel
52 Summary:        development libraries for socks
53 Summary(pl):    Biblioteki developerskie dla socks
54 Group:          Networking/Daemons
55 Requires:       %{name} = %{version}
56
57 %description devel
58 Additional libraries required to compile programs that use socks.
59
60 %description devel -l pl
61 Dodatkowe biblioteki wymagane do rozwoju programów korzystaj±cych z
62 socks.
63
64 %package static
65 Summary:        Static libraries for socks
66 Summary(pl):    Statyczne biblioteki socks
67 Group:          Networking/Daemons
68 Requires:       %{name}-devel = %{version}
69
70 %description static
71 Static libraries for socks.
72
73 %description static -l pl
74 Statyczne biblioteki socks.
75
76 %prep
77 %setup -q
78
79 %build
80 %{__autoconf}
81 %configure
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 install example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
92
93 install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %post server
102 /sbin/chkconfig --add sockd
103 if [ -f /var/lock/subsys/sockd ]; then
104         /etc/rc.d/init.d/sockd restart 1>&2
105 else
106         echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
107 fi
108
109 %postun server
110 if [ "$1" = "0" ]; then
111         if [ -f /var/lock/subsys/sockd ]; then
112                 /etc/rc.d/init.d/sockd stop 1>&2
113         fi
114         /sbin/chkconfig --del sockd
115 fi
116
117 %files
118 %defattr(644,root,root,755)
119 %doc BUGS CREDITS LICENSE NEWS README SUPPORT TODO
120 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
121 %attr(755,root,root) %{_libdir}/lib*.so.*.*
122 %attr(755,root,root) %{_bindir}/socksify
123 %{_mandir}/man5/socks.conf.5*
124
125 %files server
126 %defattr(644,root,root,755)
127 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sockd.conf
128 %attr(754,root,root) /etc/rc.d/init.d/sockd
129 %attr(755,root,root) %{_sbindir}/sockd
130 %{_mandir}/man8/sockd.8*
131 %{_mandir}/man5/sockd.conf.5*
132
133 %files devel
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.so
136 %{_libdir}/lib*.la
137 %{_includedir}/*
138
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/lib*.a
This page took 0.068606 seconds and 4 git commands to generate.