%define _localstatedir /var Summary: A free Socks v4/v5 client implementation Summary(ja): Socks v4/v5 クライアントのフリーな実装 Name: dante Version: 1.4.0 # define for pre-releases, undefine for normal releases. %undefine pre Release: 1%{?_dist_release} License: BSD-type Group: Applications/Internet URL: http://www.inet.no/dante/ %define distname %{name}-%{version}%{?pre:-%{pre}} Source: ftp://ftp.inet.no/pub/socks/%{distname}.tar.gz Source1: sockd.conf Source2: sockd.init Vendor: Project Vine Distribution: Vine Linux Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pam-devel tcp_wrappers Requires: pam %description Dante is a free implementation of the proxy protocols socks version 4, socks version 5 (rfc1928) and msproxy. 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 to become socks clients. %description -l ja dante は proxy プロトコルである socks バージョン4,socks バージョン5 (rfc1928), mxproxy のフリー実装です.ネットワーク間のファイアーウォールと して使うことが出来ます.開発はノルウェーのコンサルタント会社である Inferno Netverk A/S で行われています.コマーシャルサポートもあります. このパッケージには,既存のアプリケーションを socks クライアントに するのに必要なダイナミックライブラリが収められています. %package server Summary: A free Socks v4/v5 server implementation Summary(ja): Socks v4/v5 サーバのフリーな実装 Group: System Environment/Daemons Requires: dante = %{version} Requires(pre): /sbin/chkconfig %description server This package contains the socks proxy daemon and its documentation. The sockd is the server part of the Dante socks proxy package and allows socks clients to connect through it to the network. %description server -l ja このパッケージには socks プロキシデーモンとそのドキュメントが 収められています.sockd は Dante socks プロキシパッケージの サーバ部分で,socks クライアントは sockd サーバを介することにより ネットワークに接続出来ます. %package devel Summary: development libraries for socks Summary(ja): socks 用開発ライブラリ Group: Development/Libraries Requires: dante = %{version} %description devel Additional libraries required to compile programs that use socks. %description devel -l ja socks を使うプログラムをコンパイルするのに必要な追加ライブラリです. %prep %setup -q -n %{distname} # no need to preload libdl.so explicitly. %{__sed} -e 's/@SOCKSIFY_PRELOAD_LIBS@//' bin/socksify.in >bin/socksify.in.new %{__mv} bin/socksify.in.new bin/socksify.in # This file is embedded here instead of being another source in order # to the prefix directory cat >sockd.init </dev/null 2>&1 /sbin/chkconfig --del sockd fi %postun server if [ "$1" -ge "1" ]; then service sockd condrestart > /dev/null 2>&1 fi %files %defattr(-,root,root) %doc BUGS CREDITS INSTALL LICENSE NEWS README README.ldap SUPPORT UPGRADE VERSION %doc doc/README* doc/rfc* doc/SOCKS4*protocol %doc example/sock* %{_libdir}/libsocks.so.* %{_libdir}/libdsocks.so* %{_bindir}/socksify %{_mandir}/man5/socks.conf.5* %{_mandir}/man1/socksify.1* %config(noreplace) %{_sysconfdir}/socks.conf %files server %defattr(-,root,root) %{_mandir}/man8/sockd.8* %{_sbindir}/sockd %{_mandir}/man5/sockd.conf.5* %config(noreplace) %{_sysconfdir}/sockd.conf %config %{_sysconfdir}/rc.d/init.d/sockd %files devel %defattr(-,root,root) %{_libdir}/libsocks.so %{_libdir}/libsocks.a %{_includedir}/socks.h %changelog * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO 1.4.0-1 - new upstream release. * Tue May 01 2012 Tomohiro "Tomo-p" KATO 1.3.2-1 - new upstream release. * Sat Sep 20 2008 Shu KONNO 1.1.14-1vl5 - applied new versioning policy, spec in utf-8 - removed *.la * Mon May 10 2004 NISHIMURA Daisuke - 1.1.14-0vl1: built for VineSeed - use/change macros for dirs (/etc, /var) - re-enable chkconfig and add stop/restart on uninstall/upgrade - include our sockd.conf (Source1) based on example/sockd-basic.conf * Mon Nov 24 2003 NISHIMURA Daisuke - 1.1.14-0vl0.26.0: new upstream release - remove preloading libdl.so (in glibc-devel) from socksify * Mon Dec 02 2002 NISHIMURA Daisuke - 1.1.13-0vl0.26.0: built for Vine Linux 2.5/2.6 * Mon Dec 02 2002 NISHIMURA Daisuke - 1.1.13-0vl0.21.0: built for Vine Linux 2.1.x - new upstream release: dante-config_parse.patch and dante-recvmsg.patch are incorporated. - set noreplace flag to sock{s,d}.conf - remove BuildPreReq: flex * Mon May 13 2002 NISHIMURA Daisuke - 1.1.12-0vl7: built for Vine Linux 2.5 * Mon May 13 2002 NISHIMURA Daisuke - 1.1.12-0vl6: built for Vine Linux 2.1.x - change dante-recvmsg.patch to fix core dump with libdsocks * Wed Apr 24 2002 NISHIMURA Daisuke - 1.1.12-0vl5: built for Vine Linux 2.5 * Sat Apr 20 2002 NISHIMURA Daisuke - 1.1.12-0vl4: built for Vine Linux 2.1.x - replaced source with full-release of 1.1.12. - replaced dante-recvmsg.patch with one from original author - added dependencies (pam, tcp_wrappers) * Sun Mar 31 2002 Jun Nishii - 1.1.12-0vl3: rebuild for Vine Linux 2.5 * Mon Mar 18 2002 NISHIMURA Daisuke - 1.1.12-0vl2: patch to include/{common,sockd}.h * Thu Feb 14 2002 NISHIMURA Daisuke - 1.1.12-0vl1: updated to 1.1.12-pre1 and modified spec for pre-releases * Mon Feb 11 2002 NISHIMURA Daisuke - 1.1.11-0vl2: patch to lib/config_parse.y * Fri Dec 14 2001 NISHIMURA Daisuke - 1.1.11-0vl1 * Sat Nov 10 2001 akira yamada 1.1.10-0vl2 - moved libsocs.so to dante-devel from dante. - added defattr for dante-devel. - added BuildPreReq: flex * Thu Sep 06 2001 Toru Sagami - 1.1.10-0vl1: updated to 1.1.10 with a bit better macros and minor spec fixes - fixed Group * Fri May 18 2001 MATSUBAYASHI 'Shaolin' Kohji - 1.1.9-1vl1 - based on 1.1.9-1 generated from original tarball (by rpm -ts) - rebuilt for Vine Linux - modified spec file * Thu Oct 12 2000 Karl-Andre' Skevik -use of macros for directory locations/paths -explicitly name documentation files -run chkconfig --del before files are deleted on uninstall * Wed Mar 10 1999 Karl-Andre' Skevik - Integrated into CVS - socksify patch no longer needed * Thu Mar 04 1999 Oren Tirosh - configurable %{prefix}, fixed daemon init script - added /lib/libdl.so to socksify * Wed Mar 03 1999 Oren Tirosh - First spec file for Dante