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 <koblas@netcom.com> 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.
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
Make net/socks5 compile again after the removal of sgtty.
The net/socks5 port includes <ttychars.h>, even though it is not needed.
This header file got removed with the sgtty interface. Also make the
port prefer <termios.h> over <sys/termios.h>
PR: 124480
Approved by: philip (mentor)
A long-standing issue in the vendor's reimplementation of vsnprintf()
was not only inefficient (writing out to a file and then reading back!),
but also had a bug in its handling of va_args.
The most obvious ill-effect was the daemon crashing shortly after
start-up on amd64. The inefficientcy was less obvious, but still there
on all platforms.
Although log.c contained HAVE_VSNPRINTF ifdef-s, the configure script
does not check for the function's presence and never sets the define.
Add the -DHAVE_VSNPRINTF as a simple work-around... Bump PORTREVISION.
Approved by: maintainer
While here, ditch the ancient socks5.sh.sample in favor of the proper
USE_RC_SUBR script based on the maintainer-supplied code.
. Unbreak by finding a MASTER_SITE that still carries the distfile. It
also doesn't require manual downloading, so remove the code to prompt
for that.
Note that although the checksum has changed, there are no differences
in the distfile save for the compression. I compared the uncompressed
tarball against one from http://www.etn.yz.yamagata-u.ac.jp/ipv6arc/socks/
which corresponded to the old checksum and they were identical (md5).
I chose to use the SGI MASTER_SITE instead since it would presumably
have more bandwidth.
Approved by: Josh Paetzel <josh@tcbug.org> (MAINTAINER)
Include bsd.port.pre.mk before the `.if', and bsd.port.post.mk after it, just
as in other ports which require "manual" downloading of distfiles. (also
correcting the extranous '.')
Use IGNORE macros to bug user that he/she has to manually download distfile
instead of failing rule. This will prevent bento from trying to build the
port.
NEC changed the distribution without updating the filename. Bad NEC. A diff
of the original .tgz file and the new one shows that they reformatted their
copyright notice, added the year 2000 to it, removed one file that had an
identical copy of the copyright notice and license and took the opportunity to
slightly reformat the copyright notice and license. No code changes were in
evidence by this change.
Kludge rearming the signal for SIGCHLD so that we can harvest the zombies on
the system. Without this change, the socks5 daemon would work great for a
short period of time, then hang because no more children could be created. It
appears from debugging that this is because gravedigger was only called once.
I reestablish the signal handler in gravedigger to force SIGCHLD to be
unmasked.
Update to socks 1.0r11. patch-aa had been partially integrated into r11 as
well as parts of patch-ak. 1.0r10 is no longer available at the NEC web site.
Verified the URL was still the right place to go to get socks5 1.0r11.
Fix MASSIVE typo INSTALL_SHLIBS --> INSTALLS_SHLIBS, which occured because I
just cun'n'pasted the name from Satoshi's commit message without checking it.