aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-03-31 02:17:37 +0000
committerWill Andrews <will@FreeBSD.org>2001-03-31 02:17:37 +0000
commit8fb67c9a73b2ce4cad85e34d9b40efb8c09f91a6 (patch)
tree2f404f4e977fdbbf5d5803cb2bc1b5ecc7dd0abf
parent7a8d05f3a0d066f801ade1ade1919a021286e996 (diff)
downloadports-8fb67c9a73b2ce4cad85e34d9b40efb8c09f91a6.tar.gz
ports-8fb67c9a73b2ce4cad85e34d9b40efb8c09f91a6.zip
Notes
-rw-r--r--security/Makefile1
-rw-r--r--security/vpnd/Makefile46
-rw-r--r--security/vpnd/distinfo1
-rw-r--r--security/vpnd/files/patch-Makefile.FreeBSD.in13
-rw-r--r--security/vpnd/files/patch-README12
-rw-r--r--security/vpnd/files/patch-globals.c14
-rw-r--r--security/vpnd/files/patch-vpnd.c21
-rw-r--r--security/vpnd/files/patch-vpnd.conf56
-rw-r--r--security/vpnd/pkg-comment1
-rw-r--r--security/vpnd/pkg-descr11
-rw-r--r--security/vpnd/pkg-plist8
11 files changed, 184 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 734ad0d0be23..f362076db33c 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -156,6 +156,7 @@
SUBDIR += tripwire-131
SUBDIR += uvscan-dat
SUBDIR += vlock
+ SUBDIR += vpnd
SUBDIR += vscan
SUBDIR += whisker
SUBDIR += xinetd
diff --git a/security/vpnd/Makefile b/security/vpnd/Makefile
new file mode 100644
index 000000000000..4c79961205ae
--- /dev/null
+++ b/security/vpnd/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: vpnd
+# Date created: 25 March 2001
+# Whom: Anders Nordby <anders@fix.no>
+#
+# $FreeBSD$
+#
+
+PORTNAME= vpnd
+PORTVERSION= 1.1.0
+CATEGORIES= security
+MASTER_SITES= http://sunsite.dk/vpnd/archive/ \
+ http://www.freenix.no/~anders/
+
+MAINTAINER= anders@fix.no
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+HAS_CONFIGURE= yes
+
+DOCFILES= README FAQ.TXT SPEED.TXT VERSIONS
+
+post-patch:
+ @${MV} ${WRKSRC}/Makefile.FreeBSD.in ${WRKSRC}/Makefile.FreeBSD.in_tmp
+ @${SED} -e "s:^ETC_DIR=:ETC_DIR= ${PREFIX}/etc:" \
+ < ${WRKSRC}/Makefile.FreeBSD.in_tmp > ${WRKSRC}/Makefile.FreeBSD.in
+
+pre-configure:
+ ${PERL} -pi.orig -e "s@-O3@${CFLAGS}@g; s@gcc@${CC}@g" ${WRKSRC}/configure
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/vpnd ${PREFIX}/sbin/vpnd
+ @${INSTALL_DATA} ${WRKSRC}/vpnd.conf ${PREFIX}/etc/vpnd.conf.sample
+ @${INSTALL_DATA} ${WRKSRC}/vpnd.chat ${PREFIX}/etc/vpnd.chat.sample
+.if !defined(NOPORTDOCS)
+ ${INSTALL} -d -m 555 ${PREFIX}/share/doc/vpnd
+.for i in ${DOCFILES}
+ @${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/vpnd
+.endfor
+.endif
+
+post-install:
+ @${ECHO} "================================================================================"
+ @${ECHO} "Make sure you set up a few IRQ's for random generation with rndcontrol before"
+ @${ECHO} "trying to generate a master key file."
+ @${ECHO} "================================================================================"
+
+.include <bsd.port.mk>
diff --git a/security/vpnd/distinfo b/security/vpnd/distinfo
new file mode 100644
index 000000000000..743581049bb9
--- /dev/null
+++ b/security/vpnd/distinfo
@@ -0,0 +1 @@
+MD5 (vpnd-1.1.0.tar.gz) = 6ca958fb5471faf3ebebe4caa75154e7
diff --git a/security/vpnd/files/patch-Makefile.FreeBSD.in b/security/vpnd/files/patch-Makefile.FreeBSD.in
new file mode 100644
index 000000000000..b7df2e7e068f
--- /dev/null
+++ b/security/vpnd/files/patch-Makefile.FreeBSD.in
@@ -0,0 +1,13 @@
+--- Makefile.FreeBSD.in.orig Fri Nov 19 17:50:24 1999
++++ Makefile.FreeBSD.in Sun Mar 25 01:39:56 2001
+@@ -5,7 +5,9 @@
+ CRYPTOFLG=
+ .endif
+
+-CFLAGS=-c $(CBASE) $(DEBUG) $(CRYPTOFLG) -DMD5_HMAC_FAST -DSHA1_HMAC_FAST -DRMD160_HMAC_FAST
++ETC_DIR=
++
++CFLAGS=-c $(CBASE) $(DEBUG) $(CRYPTOFLG) -DMD5_HMAC_FAST -DSHA1_HMAC_FAST -DRMD160_HMAC_FAST -DETC_DIR=\"$(ETC_DIR)\"
+
+ OBJS1=vpnd.o globals.o parse.o slip.o route.o chatter.o serial.o die.o \
+ signal.o tcp.o external.o syslog.o sequencer.o icmp.o rxtx.o crypto.o \
diff --git a/security/vpnd/files/patch-README b/security/vpnd/files/patch-README
new file mode 100644
index 000000000000..e9b453910312
--- /dev/null
+++ b/security/vpnd/files/patch-README
@@ -0,0 +1,12 @@
+--- README.old Sun Mar 25 03:05:42 2001
++++ README Sun Mar 25 03:06:04 2001
+@@ -370,8 +370,8 @@
+ ========
+
+ Copy vpnd (and randomd if it is required) to any directory you like.
+-Copy vpnd.conf and vpnd.chat to /etc or copy those files to any other
+-directory when you use the -f option of vpnd (see later). Note that
++Copy vpnd.conf and vpnd.chat to /usr/local/etc or copy those files to any
++other directory when you use the -f option of vpnd (see later). Note that
+ vpnd.conf and vpnd.chat must be at least mode 644 and be owned by
+ root:root.
diff --git a/security/vpnd/files/patch-globals.c b/security/vpnd/files/patch-globals.c
new file mode 100644
index 000000000000..f387dd26e08d
--- /dev/null
+++ b/security/vpnd/files/patch-globals.c
@@ -0,0 +1,14 @@
+--- globals.c.old Sun Mar 25 01:19:51 2001
++++ globals.c Sun Mar 25 01:20:58 2001
+@@ -69,9 +69,9 @@
+ anchor->pty=anchor->tty=anchor->peer=anchor->server=anchor->ping=
+ anchor->serial=anchor->lock=-1;
+ anchor->speed=B115200;
+- anchor->conffile="/etc/vpnd.conf";
++ anchor->conffile=ETC_DIR "/vpnd.conf";
+ anchor->randomdev="/dev/random";
+- anchor->keyfile="/etc/vpnd.key";
++ anchor->keyfile=ETC_DIR "/vpnd.key";
+ anchor->lkeyfile="vpnd.lcl.key";
+ anchor->rkeyfile="vpnd.rmt.key";
+ anchor->cipher=BLOWFISH;
diff --git a/security/vpnd/files/patch-vpnd.c b/security/vpnd/files/patch-vpnd.c
new file mode 100644
index 000000000000..4cdd12573cdc
--- /dev/null
+++ b/security/vpnd/files/patch-vpnd.c
@@ -0,0 +1,21 @@
+--- vpnd.c.old Sun Mar 25 01:58:06 2001
++++ vpnd.c Sun Mar 25 03:02:26 2001
+@@ -41,7 +41,8 @@
+ " vpnd -c <extended-master-key-file>\n" \
+ USAGE1 \
+ " -h prints this info\n" \
+- " -m creates master key file (default is /etc/vpnd.key),\n" \
++ " -m creates master key file (default is " ETC_DIR \
++ "/vpnd.key),\n" \
+ " note that the file must not yet exist\n" \
+ " -x creates extended master key files named vpnd.lcl.key\n" \
+ " and vpnd.rmt.key in the given directory,\n" \
+@@ -65,7 +66,7 @@
+ " -l allow dns lookups so host names can be used\n" \
+ " -n do not become daemon\n" \
+ " -t do modem init chat test\n" \
+- " -f use configfile instead of /etc/vpnd.conf\n" \
++ " -f use configfile instead of " ETC_DIR "/vpnd.conf\n" \
+ COMPRESSINFO
+
+ /*
diff --git a/security/vpnd/files/patch-vpnd.conf b/security/vpnd/files/patch-vpnd.conf
new file mode 100644
index 000000000000..f5b8c542c1d2
--- /dev/null
+++ b/security/vpnd/files/patch-vpnd.conf
@@ -0,0 +1,56 @@
+--- vpnd.conf.old Sun Mar 25 03:04:06 2001
++++ vpnd.conf Sun Mar 25 03:04:43 2001
+@@ -121,7 +121,7 @@
+ # which is called asynchonously when the vpn
+ # link is established
+ #
+-# example: linkup /etc/vpnd.linkup
++# example: linkup /usr/local/etc/vpnd.linkup
+ #
+ # linkdown <process-pathname>
+ #
+@@ -129,7 +129,7 @@
+ # which is called asynchonously when the vpn
+ # link is terminated
+ #
+-# example: linkdown /etc/vpnd.linkdown
++# example: linkdown /usr/local/etc/vpnd.linkdown
+ #
+ # ---------------------------------------------------
+ # basic operation mode
+@@ -170,7 +170,7 @@
+ #
+ # optional, defines the pathname of the shared secret file which
+ # must be created with the -m option of vpnd, if not given default
+-# of /etc/vpnd.key is used
++# of /usr/local/etc/vpnd.key is used
+ #
+ # example: keyfile /var/adm/mysecret.key
+ #
+@@ -285,7 +285,7 @@
+ # interface is established, the SLIP interface
+ # name is the parameter for the process
+ #
+-# example: slipup /etc/vpnd.slipup
++# example: slipup /usr/local/etc/vpnd.slipup
+ #
+ # slipdown <process-pathname>
+ #
+@@ -294,7 +294,7 @@
+ # link is terminated, the SLIP interface
+ # name is the parameter for the process
+ #
+-# example: slipdown /etc/vpnd.slipdown
++# example: slipdown /usr/local/etc/vpnd.slipdown
+ #
+ #
+ # ---------------------------------------------------
+@@ -334,7 +334,7 @@
+ # optional, pathname of file containing modem initialization
+ # chat sequence, default is not to perform init chat
+ #
+-# example: modemchat /etc/vpnd.chat
++# example: modemchat /usr/local/etc/vpnd.chat
+ #
+ # ---------------------------------------------------
+ # TCP/IP parameters (available with version 1.0.2)
diff --git a/security/vpnd/pkg-comment b/security/vpnd/pkg-comment
new file mode 100644
index 000000000000..37c507cc2921
--- /dev/null
+++ b/security/vpnd/pkg-comment
@@ -0,0 +1 @@
+VPN daemon offering transparent blowfish encryption between networks
diff --git a/security/vpnd/pkg-descr b/security/vpnd/pkg-descr
new file mode 100644
index 000000000000..f9ff6c790b55
--- /dev/null
+++ b/security/vpnd/pkg-descr
@@ -0,0 +1,11 @@
+The virtual private network daemon vpnd is a daemon which connects two networks
+on network level either via TCP/IP or a (virtual) leased line attached to a
+serial interface. All data transfered between the two networks are encrypted
+using the unpatented free Blowfish encryption algorithm.
+
+vpnd is not intended as a replacement of existing secured communications
+software like ssh or tunneling facilities of the operating system. It is,
+however, intended as a means of securing transparent network interconnection
+across potentially insecure channels.
+
+WWW: http://sunsite.dk/vpnd/
diff --git a/security/vpnd/pkg-plist b/security/vpnd/pkg-plist
new file mode 100644
index 000000000000..e688d3c32941
--- /dev/null
+++ b/security/vpnd/pkg-plist
@@ -0,0 +1,8 @@
+sbin/vpnd
+etc/vpnd.conf.sample
+etc/vpnd.chat.sample
+share/doc/vpnd/README
+share/doc/vpnd/FAQ.TXT
+share/doc/vpnd/SPEED.TXT
+share/doc/vpnd/VERSIONS
+@dirrm share/doc/vpnd