diff --git a/security/socks5/Makefile b/security/socks5/Makefile new file mode 100644 index 00000000000..5f1ab21ad0a --- /dev/null +++ b/security/socks5/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: socks5 +# Version required: v1.0r3 +# Date created: 21 Apr 1998 +# Whom: form@vs.itam.nsc.ru +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/04/27 19:53:22 marc Exp $ +# + +DISTNAME= socks5-v1.0r3 +PKGNAME= socks5-1.0.3 +CATEGORIES= net security +MASTER_SITES= ftp://ftp.ualg.pt/Linux/network/proxies/socks5/ +EXTRACT_SUFX= .tar.gz + +MAINTAINER= form@vs.itam.nsc.ru + +NO_CDROM= "NEC has a funky license for this software" +RESTRICTED= "no commercial use" + +# here are some extra configure args you may wish to use +# see the readme file before screwing with them +# +#EXTRA_CONFIGURE_ARGS= \ +# --with-default-server=socks.mydomain.com \ +# --with-syslog-facility=LOG_AUTH \ +# --with-passwd + +WRKSRC= ${WRKDIR}/socks5-v1.0r3 +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-srvpidfile=/var/run/socks5.pid \ + --with-srvidtfile=/var/run/socks5.ident \ + ${EXTRA_CONFIGURE_ARGS} +MAN1= runsocks.1 socks5.1 stopsocks.1 socks5_clients.1 +MAN5= libsocks5.conf.5 socks5.conf.5 + +SAMPLE_FILES= README multiple_server.example \ + server_2_multiple_server.example single_homed_host.example \ + socks5.conf.dualhomed socks5.conf.gssapi \ + socks5.conf.multipleservers socks5.conf.server2server \ + socks5.conf.singlehomed + +DOC_FILES= rfc1928.txt rfc1929.txt rfc1961.txt socks.faq + +post-install: + ${MKDIR} ${PREFIX}/lib/socks +.for f in ${SAMPLE_FILES} + ${INSTALL_DATA} ${WRKSRC}/examples/$f ${PREFIX}/lib/socks +.endfor + ${MKDIR} ${PREFIX}/share/doc/socks +.for f in ${DOC_FILES} + ${INSTALL_DATA} ${WRKSRC}/doc/$f ${PREFIX}/share/doc/socks +.endfor + ${LDCONFIG} -m ${PREFIX}/lib + +.include diff --git a/security/socks5/files/md5 b/security/socks5/files/md5 new file mode 100644 index 00000000000..9e8336dc955 --- /dev/null +++ b/security/socks5/files/md5 @@ -0,0 +1 @@ +MD5 (socks5-v1.0r3.tar.gz) = b7c4f26ee7f63c61db51a492bce037e3 diff --git a/security/socks5/patches/patch-aa b/security/socks5/patches/patch-aa new file mode 100644 index 00000000000..0a148149478 --- /dev/null +++ b/security/socks5/patches/patch-aa @@ -0,0 +1,36 @@ +*** configure.orig Tue Apr 21 16:46:44 1998 +--- configure Tue Apr 21 16:47:20 1998 +*************** +*** 4609,4615 **** + UNIX_SV*|UNIX_System_V*) + SHLIB_LFLAGS="-G" + ;; +! FreeBSD*|NetBSD*) + SHLIB_LFLAGS="-Bshareable" + SHLIB_CFLAGS="-fpic" + PRELOADS="LD_PRELOAD" +--- 4609,4615 ---- + UNIX_SV*|UNIX_System_V*) + SHLIB_LFLAGS="-G" + ;; +! FreeBSD*|NetBSD*|OpenBSD*) + SHLIB_LFLAGS="-Bshareable" + SHLIB_CFLAGS="-fpic" + PRELOADS="LD_PRELOAD" +*************** +*** 4660,4666 **** + UNIX_SV*|UNIX_System_V*) + SHLIB_CFLAGS= + ;; +! FreeBSD*|NetBSD*) + ;; + *) + SHLIB_LD="gcc" +--- 4660,4666 ---- + UNIX_SV*|UNIX_System_V*) + SHLIB_CFLAGS= + ;; +! FreeBSD*|NetBSD*|OpenBSD*) + ;; + *) + SHLIB_LD="gcc" diff --git a/security/socks5/patches/patch-ab b/security/socks5/patches/patch-ab new file mode 100644 index 00000000000..253d3487a26 --- /dev/null +++ b/security/socks5/patches/patch-ab @@ -0,0 +1,36 @@ +*** aclocal.m4.orig Tue Apr 21 16:51:46 1998 +--- aclocal.m4 Tue Apr 21 16:52:01 1998 +*************** +*** 91,97 **** + UNIX_SV*|UNIX_System_V*) + SHLIB_LFLAGS="-G" + ;; +! FreeBSD*|NetBSD*) + SHLIB_LFLAGS="-Bshareable" + SHLIB_CFLAGS="-fpic" + PRELOADS="LD_PRELOAD" +--- 91,97 ---- + UNIX_SV*|UNIX_System_V*) + SHLIB_LFLAGS="-G" + ;; +! FreeBSD*|NetBSD*|OpenBSD*) + SHLIB_LFLAGS="-Bshareable" + SHLIB_CFLAGS="-fpic" + PRELOADS="LD_PRELOAD" +*************** +*** 142,148 **** + UNIX_SV*|UNIX_System_V*) + SHLIB_CFLAGS= + ;; +! FreeBSD*|NetBSD*) + ;; + *) + SHLIB_LD="gcc" +--- 142,148 ---- + UNIX_SV*|UNIX_System_V*) + SHLIB_CFLAGS= + ;; +! FreeBSD*|NetBSD*|OpenBSD*) + ;; + *) + SHLIB_LD="gcc" diff --git a/security/socks5/pkg/COMMENT b/security/socks5/pkg/COMMENT new file mode 100644 index 00000000000..76277664f75 --- /dev/null +++ b/security/socks5/pkg/COMMENT @@ -0,0 +1 @@ +SOCKS v5 application layer gateway and clients diff --git a/security/socks5/pkg/DESCR b/security/socks5/pkg/DESCR new file mode 100644 index 00000000000..95ae5da6e71 --- /dev/null +++ b/security/socks5/pkg/DESCR @@ -0,0 +1,20 @@ +This is NWSL (previously CSTC) version 5.0 of SOCKS, a package that allows Unix +hosts behind a firewall to gain full access to the internet without requiring +direct IP reachability. It does require a SOCKS server program being run on a +host that can communicate directly to hosts behind the firewall as well as hosts +on the Internet at large. It is based on the original SOCKS written by David +Koblas and the work of the AFT working group of the IETF. + +NOTE: The shared library features in socks5 require a dynamic linker that + understands the LD_PRELOAD environment variable. FreeBSD + 2.1.5-RELEASE supports this; so do versions of -current and + -stable later than May 2, 1996. All other features will work + with FreeBSD 2.0 and later. + +WARNING: Export of SOCKS from the US without a proper license is a violation + of ITAR rules. + +WARNING: Commercial use and distribution of this software requires a license + from NEC corporation. + +See the README files for more information. diff --git a/security/socks5/pkg/PLIST b/security/socks5/pkg/PLIST new file mode 100644 index 00000000000..e5e4cd101c4 --- /dev/null +++ b/security/socks5/pkg/PLIST @@ -0,0 +1,37 @@ +bin/socks5 +bin/runsocks +bin/stopsocks +bin/rarchie +bin/rfinger +bin/rftp +bin/rping +bin/rtelnet +bin/rtraceroute +bin/rwhois +include/socks.h +man/man1/socks5.1 +man/man1/runsocks.1 +man/man1/stopsocks.1 +man/man1/socks5_clients.1 +man/man5/libsocks5.conf.5 +man/man5/socks5.conf.5 +man/man5/socks5.passwd.5 +lib/libsocks5.a +@exec ranlib -m %D/lib/libsocks5.a +lib/libsocks5_sh.so +@exec /sbin/ldconfig -m %D/lib +lib/socks/README +lib/socks/multiple_server.example +lib/socks/server_2_multiple_server.example +lib/socks/single_homed_host.example +lib/socks/socks5.conf.dualhomed +lib/socks/socks5.conf.gssapi +lib/socks/socks5.conf.multipleservers +lib/socks/socks5.conf.server2server +lib/socks/socks5.conf.singlehomed +@dirrm lib/socks +share/doc/socks/rfc1928.txt +share/doc/socks/rfc1929.txt +share/doc/socks/rfc1961.txt +share/doc/socks/socks.faq +@dirrm share/doc/socks