summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoragc <agc>1998-06-11 16:03:55 +0000
committeragc <agc>1998-06-11 16:03:55 +0000
commit6fa82b8e7a9fa901622edb0359608d8f25f58c88 (patch)
tree3cc3b7549c54d6c9b585356d5728567ce1e32c33 /net
parentecea308d367ae48f117a2e8a4a288c7d7f9308be (diff)
downloadpkgsrc-6fa82b8e7a9fa901622edb0359608d8f25f58c88.tar.gz
Add socks4 package, the *OLD* version of the firewall software. Some of
us unfortunately find this necessary. This is version 4.2.2
Diffstat (limited to 'net')
-rw-r--r--net/socks4/Makefile30
-rw-r--r--net/socks4/files/md51
-rw-r--r--net/socks4/patches/patch-aa82
-rw-r--r--net/socks4/patches/patch-ab43
-rw-r--r--net/socks4/patches/patch-ac18
-rw-r--r--net/socks4/patches/patch-ad17
-rw-r--r--net/socks4/patches/patch-ae10
-rw-r--r--net/socks4/pkg/COMMENT1
-rw-r--r--net/socks4/pkg/DESCR16
-rw-r--r--net/socks4/pkg/PLIST17
10 files changed, 235 insertions, 0 deletions
diff --git a/net/socks4/Makefile b/net/socks4/Makefile
new file mode 100644
index 00000000000..cc15042db41
--- /dev/null
+++ b/net/socks4/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 1998/06/11 16:03:55 agc Exp $
+#
+
+DISTNAME= export.socks.cstc.4.2.2
+PKGNAME= socks4-2.2
+CATEGORIES= net security
+MASTER_SITES= http://www.ibs.net.pl/archive/Firewalls/socks/socks4/
+
+MAINTAINER= packages@netbsd.org
+
+CONFLICTS= socks5-1.0.2
+
+NO_CDROM= "NEC has a funky license for this software"
+RESTRICTED= "no commercial use"
+
+WRKSRC= ${WRKDIR}/socks.cstc.4.2
+
+NO_CONFIGURE= yes
+
+MAN1= rfinger.1 rftp.1 rtelnet.1 rwhois.1 socks_clients.1
+MAN5= sockd.conf.5 sockd.route.5 socks.conf.5
+MAN8= sockd.8
+
+post-patch:
+ @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${WRKSRC}/include/socks.h \
+ > ${WRKSRC}/include/socks.h.new && \
+ ${MV} ${WRKSRC}/include/socks.h.new ${WRKSRC}/include/socks.h
+ @${ECHO} "sockd 0.0.0.0 0.0.0.0" >> ${WRKSRC}/socks.conf
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/socks4/files/md5 b/net/socks4/files/md5
new file mode 100644
index 00000000000..0328ad51f15
--- /dev/null
+++ b/net/socks4/files/md5
@@ -0,0 +1 @@
+MD5 (export.socks.cstc.4.2.2.tar.gz) = f5e60083ea10e63383589dd3d34a94b2
diff --git a/net/socks4/patches/patch-aa b/net/socks4/patches/patch-aa
new file mode 100644
index 00000000000..d650ca9ea00
--- /dev/null
+++ b/net/socks4/patches/patch-aa
@@ -0,0 +1,82 @@
+--- Makefile.orig Thu Sep 7 03:24:02 1995
++++ Makefile Thu Jun 11 14:50:45 1998
+@@ -19,7 +19,7 @@
+ # It should be this current directory.
+
+ # If your system has getcwd() but no getwd(), uncomment the next line:
+-#GETCWD=-DGETCWD
++GETCWD=-DGETCWD
+
+ #If your system doesn't have waitpid(), uncomment the nextline:
+ #NO_WAITPID=-DNO_WAITPID
+@@ -43,16 +43,16 @@
+
+ # Define RCMD and SUPPORT_RCMD if you want to support Rrcmd, which is required
+ # for SOCKSified rlogin, rsh, and rcp.
+-#RCMD=Rrcmd.o
+-#SUPPORT_RCMD=-DSUPPORT_RCMD
++RCMD=Rrcmd.o
++SUPPORT_RCMD=-DSUPPORT_RCMD
+
+ # Define FOR_PS if your system is not SYSV and you want to have the
+ # command 'ps' show some details of sockd's activity.
+ #FOR_PS=-DFOR_PS
+
+ # optimization flag for cc
+-OPTIMIZE=-g
+-#OPTIMIZE=-O
++#OPTIMIZE=-g
++OPTIMIZE=-O
+ # Be careful with the OPTIMIZE flag. SunPro's SC2.0.1, for example, is
+ # knwon to produce incorrect code when -O is used.
+
+@@ -73,13 +73,13 @@
+ #BIND_RESOLVER=-DBIND_RESOLVER
+
+ # Directory into which to install the man pages
+-MAN_DEST_DIR = /usr/local/man
++MAN_DEST_DIR = ${PREFIX}/man
+
+ # Directory into which the SOCKS server should be installed
+-SERVER_BIN_DIR = /usr/etc
++SERVER_BIN_DIR = ${PREFIX}/libexec
+
+ # Directory into the client programs should be installed
+-CLIENTS_BIN_DIR = /usr/local/bin
++CLIENTS_BIN_DIR = ${PREFIX}/bin
+
+ # SunOS 4.1.x should use
+ #CC=cc
+@@ -174,13 +174,13 @@
+ #RESOLV_LIB=-linet -lc_s
+
+ # netBSD should use
+-#OTHER_CFLAGS = $(GETCWD) $(SHORTENED_RBIND) $(FASCIST) $(TRY_PASV)
+-#CC=cc
+-#RANLIB=ranlib
+-#OS=netbsd0.9
+-#INSTALL=install
+-#GETPASS=
+-#RESOLV_LIB=
++OTHER_CFLAGS = $(GETCWD) $(SHORTENED_RBIND) $(FASCIST) $(TRY_PASV)
++CC=cc
++RANLIB=ranlib
++OS=netbsd0.9
++INSTALL=install -c
++GETPASS=
++RESOLV_LIB=
+
+ # FreeBSD should use:
+ #CC=cc
+@@ -413,3 +413,11 @@
+ ( cd $$i ; $(MAKE) clean) done
+
+
++install.conf:
++ ${INSTALL} -m 0644 socks.conf ${PREFIX}/etc
++
++install.lib:
++ ${INSTALL} -m 0644 lib/libsocks.a ${PREFIX}/lib/libsocks4.a
++ ${RANLIB} ${PREFIX}/lib/libsocks4.a
++
++install: install.server install.clients install.man install.conf install.lib
diff --git a/net/socks4/patches/patch-ab b/net/socks4/patches/patch-ab
new file mode 100644
index 00000000000..f8773a4036d
--- /dev/null
+++ b/net/socks4/patches/patch-ab
@@ -0,0 +1,43 @@
+--- include/socks.h 1998/06/11 13:02:06 1.1
++++ include/socks.h 1998/06/11 13:04:33
+@@ -6,7 +6,7 @@
+ * This is overridden at run time by the contents of environment
+ * variable SOCKS_SERVER if it exists.
+ */
+-#define SOCKS_DEFAULT_SERVER "SOCKS.server.for.your.site"
++#define SOCKS_DEFAULT_SERVER "gateway.amdahl.com"
+
+ /*
+ * Default Domain Nameserver for the SOCKS clients.
+@@ -54,11 +54,11 @@
+ * to /usr/ucb/finger.orig and the pathname you should use here is the
+ * new (altered) pathname, i.e., /usr/ucb/finger.orig.
+ */
+-#define ORIG_FINGER "/usr/ucb/finger.orig"
++#define ORIG_FINGER "/usr/bin/finger.orig"
+ /* Overridden at runtime by environment variable ORIG_FINGER if it exists. */
+
+ /* Control file for versatile clients */
+-#define SOCKS_CONF "/etc/socks.conf"
++#define SOCKS_CONF "@PREFIX@/etc/socks.conf"
+
+ /*
+ * Default port number for SOCKS services.
+@@ -85,7 +85,7 @@
+ * This is the file that controls access to the SOCKS server
+ * and its services.
+ */
+-#define SOCKD_CONF "/etc/sockd.conf"
++#define SOCKD_CONF "@PREFIX@/etc/sockd.conf"
+
+ /*
+ * Define this if your SOCKS server is multi-homed (i.e.,
+@@ -101,7 +101,7 @@
+ * which destination networks/hosts. See sockd man pages for details.
+ * This has no effects if MULTIHOMED_SERVER is undefined.
+ */
+-#define SOCKD_ROUTE_FILE "/etc/sockd.route"
++#define SOCKD_ROUTE_FILE "@PREFIX@/etc/sockd.route"
+
+ /* Current SOCKS protocol version */
+ #define SOCKS_VERSION 4
diff --git a/net/socks4/patches/patch-ac b/net/socks4/patches/patch-ac
new file mode 100644
index 00000000000..4df0f1be39a
--- /dev/null
+++ b/net/socks4/patches/patch-ac
@@ -0,0 +1,18 @@
+--- libident/ident.h 1998/06/11 13:09:45 1.1
++++ libident/ident.h 1998/06/11 13:11:24
+@@ -22,13 +22,13 @@
+ * Sigh, GCC v2 complains when using undefined struct tags
+ * in function prototypes...
+ */
+-#if defined(__GNUC__) && !defined(IPPROTO_IP)
++#if defined(__GNUC__) && !defined(IPPROTO_IP) && !defined(__NetBSD__)
+ # define __STRUCT_IN_ADDR_P void *
+ #else
+ # define __STRUCT_IN_ADDR_P struct in_addr *
+ #endif
+
+-#if defined(__GNUC__) && !defined(DST_NONE)
++#if defined(__GNUC__) && !defined(DST_NONE) && !defined(__NetBSD__)
+ # define __STRUCT_TIMEVAL_P void *
+ #else
+ # define __STRUCT_TIMEVAL_P struct timeval *
diff --git a/net/socks4/patches/patch-ad b/net/socks4/patches/patch-ad
new file mode 100644
index 00000000000..314e2fa0d8a
--- /dev/null
+++ b/net/socks4/patches/patch-ad
@@ -0,0 +1,17 @@
+--- rtelnet/Config.local 1998/06/11 13:32:18 1.1
++++ rtelnet/Config.local 1998/06/11 13:33:11
+@@ -683,11 +683,10 @@
+ DEFINES="-DLINEMODE -DTERMCAP -DKLUDGELINEMODE \
+ -DUSE_TERMIO -DDIAGNOSTICS $(SOCKS) " \
+ INCLUDES="-I.. -I../../include" \
+- LIB_OBJ="gettytab.o" \
+- LIB_SRC="gettytab.c" \
++ LIB_OBJ="getent.o" \
++ LIB_SRC="getent.c" \
+ AR=ar ARFLAGS=cq RANLIB=ranlib \
+- VPATH=/usr/src/libexec/getty \
+- LIBEXEC=${DESTDIR}/usr/libexec \
++ LIBEXEC=${PREFIX}/libexec \
+ CC="${CC}" LCCFLAGS="$(OPTIMIZE)"
+
+ freebsd1.1:
diff --git a/net/socks4/patches/patch-ae b/net/socks4/patches/patch-ae
new file mode 100644
index 00000000000..25d504f5872
--- /dev/null
+++ b/net/socks4/patches/patch-ae
@@ -0,0 +1,10 @@
+--- doc/Makefile 1998/06/11 14:00:10 1.1
++++ doc/Makefile 1998/06/11 14:00:25
+@@ -19,7 +19,4 @@
+ for i in *.5; do \
+ $(INSTALL) -m 444 $$i $(MAN_DEST_DIR)/man5 ;\
+ done
+- for i in *.8; do \
+- $(INSTALL) -m 444 $$i $(MAN_DEST_DIR)/man8 ;\
+- done
+
diff --git a/net/socks4/pkg/COMMENT b/net/socks4/pkg/COMMENT
new file mode 100644
index 00000000000..b6567fa8665
--- /dev/null
+++ b/net/socks4/pkg/COMMENT
@@ -0,0 +1 @@
+Old library, server and client for using proxy firewall software
diff --git a/net/socks4/pkg/DESCR b/net/socks4/pkg/DESCR
new file mode 100644
index 00000000000..26b9eb7dfd3
--- /dev/null
+++ b/net/socks4/pkg/DESCR
@@ -0,0 +1,16 @@
+This is CSTC version 4.2 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 hosts 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>.
+
+The package includes full source for the SOCKS server and SOCKSified
+client programs of finger, ftp, telnet, and whois. A few other SOCKSified
+clients may be found on ftp.nec.com, in directory /pub/security/socks.cstc.
+Increasingly, software developers are beginning to include SOCKS support
+directly into their products, for example, Mosaic, Netscape, Trumpet
+Winsock, TCP/Connect II (from InterCon for Macintosh; they also intend
+to do so for their Windows version), OutsideVew for Windows (from Crystal
+Point, currently in beta).
+
diff --git a/net/socks4/pkg/PLIST b/net/socks4/pkg/PLIST
new file mode 100644
index 00000000000..9ce2a2b510f
--- /dev/null
+++ b/net/socks4/pkg/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 1998/06/11 16:03:56 agc Exp $
+bin/rfinger
+bin/rwhois
+bin/rftp
+bin/rtelnet
+etc/socks.conf
+lib/libsocks4.a
+libexec/sockd
+man/man1/rfinger.1
+man/man1/rftp.1
+man/man1/rtelnet.1
+man/man1/rwhois.1
+man/man1/socks_clients.1
+man/man5/sockd.conf.5
+man/man5/sockd.route.5
+man/man5/socks.conf.5
+man/man8/sockd.8