]> git.pld-linux.org Git - packages/dante.git/blame - dante.spec
- added miniupnp patch (fixes build with miniupnpc 1.6+) and upnp bcond
[packages/dante.git] / dante.spec
CommitLineData
58414cf8 1# TODO:
58414cf8 2# - examine ldap and sasl support (deps are pulled into *.la, no direct linking anywhere?)
f529e0ab
JB
3#
4# Conditional build:
5%bcond_without upnp # UPnP support (via miniupnp)
6#
9d07af49 7Summary: A free Socks v4/v5 client implementation
7132b5dc 8Summary(pl.UTF-8): Darmowa implementacja klienta Socks v4/5
9d07af49 9Name: dante
6a108fd6 10Version: 1.3.2
750f2592 11Release: 2
72015a4e 12License: BSD-like
9d07af49 13Group: Networking/Daemons
6a108fd6
AO
14Source0: ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
15# Source0-md5: 250c6456cd3fefa17f07fa80c9ccf6bd
9d07af49 16Source1: sockd.init
a9a325a3 17Patch0: %{name}-am.patch
58414cf8 18Patch1: %{name}-link.patch
f529e0ab 19Patch2: %{name}-miniupnp.patch
57d52427 20URL: http://www.inet.no/dante/
58414cf8 21BuildRequires: autoconf >= 2.61
58619027 22BuildRequires: automake
58414cf8
JB
23BuildRequires: cyrus-sasl-devel
24BuildRequires: heimdal-devel
25BuildRequires: libtool
6e464565 26BuildRequires: libwrap-devel
f529e0ab 27%{?with_upnp:BuildRequires: miniupnpc-devel >= 1.6}
58414cf8
JB
28BuildRequires: openldap-devel
29BuildRequires: pam-devel
f529e0ab 30%{?with_upnp:Requires: miniupnpc >= 1.6}
cc2ed1fb 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9d07af49 32
9d07af49 33%description
34Dante is a free implementation of the proxy protocols socks version 4,
35socks version 5 (rfc1928) and msproxy. It can be used as a firewall
36between networks. It is being developed by Inferno Nettverk A/S, a
37Norwegian consulting company. Commercial support is available.
38
39This package contains the dynamic libraries required to "socksify"
40existing applications to become socks clients.
41
f9a5fb07
JR
42%description -l pl.UTF-8
43Dante jest darmową implementacją protokołów proxy: socks w wersji 4,
44socks w wersji 5 (rfc1928) oraz msproxy. Może być używany jako zapora
45pomiędzy sieciami. Implementacja jest rozwijana przez Inferno Nettverk
46A/S - Norweską firmę konsultingową. Komercyjne wsparcie jest dostępne.
7f45f858
AM
47
48Ten pakiet zawiera dynamiczne biblioteki wymagane do "usocksowiania"
f9a5fb07 49istniejących aplikacji tak by działały one jako klienci socks.
7f45f858 50
9d07af49 51%package server
52Summary: A free Socks v4/v5 server implementation
7132b5dc 53Summary(pl.UTF-8): Darmowa implementacja serwera Socks v4/5
9d07af49 54Group: Networking/Daemons
c723d15f 55Requires(post,preun): /sbin/chkconfig
aed92515
ER
56Requires: %{name} = %{version}-%{release}
57Requires: rc-scripts
9d07af49 58
59%description server
60This package contains the socks proxy daemon and its documentation.
61The sockd is the server part of the Dante socks proxy package and
62allows socks clients to connect through it to the network.
63
f9a5fb07
JR
64%description server -l pl.UTF-8
65Ten pakiet zawiera serwer proxy socks oraz jego dokumentację. Serwer
66sockd jest częścią pakietu proxy Dante. Za pośrednictwem serwera
67klienci mogą łączyć się z serwerami w sieci.
7f45f858 68
9d07af49 69%package devel
58414cf8
JB
70Summary: Development files for socks library
71Summary(pl.UTF-8): Pliki programistyczne biblioteki socks
9d07af49 72Group: Networking/Daemons
58619027 73Requires: %{name} = %{version}-%{release}
58414cf8
JB
74Requires: cyrus-sasl-devel
75Requires: heimdal-devel
f529e0ab 76%{?with_upnp:Requires: miniupnpc-devel >= 1.6}
58414cf8
JB
77Requires: openldap-devel
78Requires: pam-devel
9d07af49 79
80%description devel
58414cf8 81Development files required to compile programs that use socks.
9d07af49 82
f9a5fb07 83%description devel -l pl.UTF-8
58414cf8 84Pliki programistyczne wymagane do rozwoju programów korzystających z
90dd98e4 85socks.
7f45f858 86
57d52427 87%package static
58414cf8
JB
88Summary: Static socks library
89Summary(pl.UTF-8): Statyczna biblioteka socks
57d52427 90Group: Networking/Daemons
58619027 91Requires: %{name}-devel = %{version}-%{release}
57d52427 92
93%description static
58414cf8 94Static socks library.
9d07af49 95
f9a5fb07 96%description static -l pl.UTF-8
58414cf8 97Statyczna biblioteka socks.
7f45f858 98
57d52427 99%prep
6a108fd6 100%setup -q
a9a325a3 101%patch0 -p1
58414cf8 102%patch1 -p1
f529e0ab 103%patch2 -p1
9d07af49 104
105%build
6a108fd6
AO
106%{__libtoolize}
107%{__aclocal}
9d15dfac 108%{__autoconf}
6a108fd6
AO
109%{__autoheader}
110%{__automake}
bc715941 111%configure \
a9a325a3 112 --disable-silent-rules \
f529e0ab
JB
113 --without-glibc-secure \
114 %{!?with_upnp:--without-upnp}
6a108fd6 115
9d07af49 116%{__make}
117
118%install
119rm -rf $RPM_BUILD_ROOT
a97e3ab5 120install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
9d07af49 121
755d6271
PG
122%{__make} install \
123 DESTDIR=$RPM_BUILD_ROOT
9d07af49 124
58414cf8 125install example/sock{s,d}.conf $RPM_BUILD_ROOT%{_sysconfdir}
9d07af49 126
58414cf8 127install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sockd
9d07af49 128
9d07af49 129%clean
130rm -rf $RPM_BUILD_ROOT
131
ff053020 132%post -p /sbin/ldconfig
133%postun -p /sbin/ldconfig
9d07af49 134
135%post server
e4e0694a 136/sbin/chkconfig --add sockd
013639e3 137if [ -f /var/lock/subsys/sockd ]; then
138 /etc/rc.d/init.d/sockd restart 1>&2
139else
140 echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
141fi
9d07af49 142
e4e0694a 143%postun server
013639e3 144if [ "$1" = "0" ]; then
145 if [ -f /var/lock/subsys/sockd ]; then
146 /etc/rc.d/init.d/sockd stop 1>&2
147 fi
e4e0694a 148 /sbin/chkconfig --del sockd
149fi
9d07af49 150
151%files
152%defattr(644,root,root,755)
58414cf8 153%doc BUGS CREDITS LICENSE NEWS README SUPPORT UPGRADE
aed92515 154%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/socks.conf
58414cf8
JB
155%attr(755,root,root) %{_libdir}/libsocks.so.*.*.*
156%attr(755,root,root) %ghost %{_libdir}/libsocks.so.0
6a108fd6 157%attr(755,root,root) %{_libdir}/libdsocks.so
9d07af49 158%attr(755,root,root) %{_bindir}/socksify
159%{_mandir}/man5/socks.conf.5*
6a108fd6 160%{_mandir}/man1/socksify.1*
9d07af49 161
162%files server
163%defattr(644,root,root,755)
aed92515 164%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sockd.conf
57d52427 165%attr(754,root,root) /etc/rc.d/init.d/sockd
9d07af49 166%attr(755,root,root) %{_sbindir}/sockd
167%{_mandir}/man8/sockd.8*
168%{_mandir}/man5/sockd.conf.5*
169
9d07af49 170%files devel
171%defattr(644,root,root,755)
58414cf8
JB
172%attr(755,root,root) %{_libdir}/libsocks.so
173%{_libdir}/libsocks.la
174%{_libdir}/libdsocks.la
175%{_includedir}/socks.h
57d52427 176
177%files static
178%defattr(644,root,root,755)
58414cf8 179%{_libdir}/libsocks.a
This page took 0.742413 seconds and 4 git commands to generate.