Name: dante Version: 1.4.3 Release: %autorelease Summary: A free SOCKS v4/v5 client implementation License: BSD-4-Clause URL: https://www.inet.no/%{name} Source0: https://www.inet.no/%{name}/files/%{name}-%{version}.tar.gz Source1: sockd.service Patch: dante-1.4.3-HAVE_SENDBUF_IOCTL.patch BuildRequires: autoconf BuildRequires: bison BuildRequires: cyrus-sasl-devel BuildRequires: flex BuildRequires: gcc BuildRequires: krb5-devel BuildRequires: libtool BuildRequires: miniupnpc-devel BuildRequires: pam-devel BuildRequires: systemd BuildRequires: systemd-rpm-macros %description Dante is a free implementation of the SOCKS proxy protocol, version 4, and version 5 (rfc1928). It can be used as a firewall between networks. It is being developed by Inferno Nettverk A/S, a Norwegian consulting company. Commercial support is available. This package contains the dynamic libraries required to "socksify" existing applications, allowing them to automatically use the SOCKS protocol. %package server Summary: A free SOCKS v4/v5 server implementation Requires: %{name} %description server This package contains "sockd", the SOCKS proxy daemon and its documentation. This is the server part of the Dante SOCKS proxy package and allows SOCKS clients to connect through it to the external network. %package devel Summary: Development libraries for SOCKS Requires: %{name} = %{version}-%{release} %description devel Additional libraries required to compile programs that use SOCKS. %prep %autosetup %build echo >> acinclude.m4 sed -i -e 's!AM_CONFIG_HEADER!AC_CONFIG_HEADERS!' configure.ac autoreconf --force --install --verbose %configure \ --disable-static sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool %make_build %install %make_install rm Makefile* SPECS/Makefile* rm INSTALL mkdir -p %{buildroot}/%{_sysconfdir} %{buildroot}/%{_unitdir} install -m 644 example/socks.conf %{buildroot}/%{_sysconfdir} install -m 644 example/sockd.conf %{buildroot}/%{_sysconfdir} install -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/sockd.service %post server %systemd_post sockd.service %preun server %systemd_preun sockd.service %postun server %systemd_postun sockd.service %files %license LICENSE %doc BUGS CREDITS NEWS README SUPPORT doc/README* example/socks.conf example/sockd.conf %config(noreplace) %{_sysconfdir}/socks.conf %{_libdir}/libsocks.so.0.1.1 %{_libdir}/libsocks.so.0 %{_libdir}/libdsocks.so %{_bindir}/socksify %{_mandir}/man1/socksify.1* %{_mandir}/man5/socks.conf.5* %files server %config(noreplace) %{_sysconfdir}/sockd.conf %{_sbindir}/sockd %{_mandir}/man5/sockd.conf.5* %{_mandir}/man8/sockd.8* %{_unitdir}/sockd.service %files devel %doc doc/rfc* doc/SOCKS4.protocol %{_libdir}/libsocks.so %{_includedir}/socks.h %changelog %autochangelog