summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2003-12-17 15:19:51 +0000
committerkrion <krion@FreeBSD.org>2003-12-17 15:19:51 +0000
commit6aeb3243e7a34c4e0955bbdc4ebb6a759ca369a2 (patch)
tree9c230032910d4279856a1dfb47e319a76f5cc30e
parentfa98b7a5f5a7bc58fb232aea3601af2957da8051 (diff)
downloadFreeBSD-ports-6aeb3243e7a34c4e0955bbdc4ebb6a759ca369a2.zip
FreeBSD-ports-6aeb3243e7a34c4e0955bbdc4ebb6a759ca369a2.tar.gz
Add vpnc 0.2,
VPNC - Client for Cisco 3000 VPN Concentrator A VPN client compatible with Cisco's EasyVPN equipment. Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only shared-secret IPSec authentication, 3DES, MD5, and IP tunneling. It runs entirely in userspace PR: 60283 Submitted by: Christian Lackas
-rw-r--r--security/Makefile1
-rw-r--r--security/vpnc/Makefile32
-rw-r--r--security/vpnc/distinfo1
-rw-r--r--security/vpnc/files/patch-Makefile20
-rw-r--r--security/vpnc/files/patch-vpnc.c11
-rw-r--r--security/vpnc/files/vpnc.sh16
-rw-r--r--security/vpnc/pkg-descr8
-rw-r--r--security/vpnc/pkg-plist5
8 files changed, 94 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 289a666..3a48eac 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -400,6 +400,7 @@
SUBDIR += vlock
SUBDIR += vlog
SUBDIR += vncrypt
+ SUBDIR += vpnc
SUBDIR += vpnd
SUBDIR += vscan
SUBDIR += xca
diff --git a/security/vpnc/Makefile b/security/vpnc/Makefile
new file mode 100644
index 0000000..ee6befb
--- /dev/null
+++ b/security/vpnc/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: vpnc
+# Date created: 15 December 2003
+# Whom: Christian Lackas
+#
+# $FreeBSD$
+#
+
+PORTNAME= vpnc
+PORTVERSION= 0.2
+CATEGORIES= security
+MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-rm+zomb-pre6
+
+MAINTAINER= delta@lackas.net
+COMMENT= "Client for Cisco 3000 VPN Concentrator"
+
+LIB_DEPENDS= gcrypt.6:${PORTSDIR}/security/libgcrypt
+
+USE_GMAKE= yes
+ALL_TARGET= vpnc
+INSTALL_TARGET=
+
+post-install:
+ @${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin/vpnc
+ @${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vpnc.sh ${PREFIX}/etc/rc.d/vpnc.sh.sample
+ @${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc/vpnc.conf.sample
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} -m 666 ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/security/vpnc/distinfo b/security/vpnc/distinfo
new file mode 100644
index 0000000..ed4f648
--- /dev/null
+++ b/security/vpnc/distinfo
@@ -0,0 +1 @@
+MD5 (vpnc-0.2-rm+zomb-pre6.tar.gz) = e2061c70455f333b2ee9089c6e25adec
diff --git a/security/vpnc/files/patch-Makefile b/security/vpnc/files/patch-Makefile
new file mode 100644
index 0000000..7a9c20e
--- /dev/null
+++ b/security/vpnc/files/patch-Makefile
@@ -0,0 +1,20 @@
+--- Makefile.orig Sun Nov 2 01:21:39 2003
++++ Makefile Wed Dec 17 13:08:35 2003
+@@ -15,14 +15,14 @@
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+-CC=gcc
+-CFLAGS=-W -Wall -O -g '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags)
++CC?=gcc
++CFLAGS+=-W -Wall -O -g '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags)
+ LDFLAGS=-g $(shell libgcrypt-config --libs)
+
+ ifeq ($(shell uname -s), Linux)
+ SYSDEP=sysdep-linux.o
+ endif
+-ifeq ($(shell uname -s), NetBSD)
++ifeq ($(shell uname -s), FreeBSD)
+ CFLAGS += -DSOCKADDR_IN_SIN_LEN
+ SYSDEP=sysdep-bsd.o
+ endif
diff --git a/security/vpnc/files/patch-vpnc.c b/security/vpnc/files/patch-vpnc.c
new file mode 100644
index 0000000..c2e6ff9
--- /dev/null
+++ b/security/vpnc/files/patch-vpnc.c
@@ -0,0 +1,11 @@
+--- vpnc.c.orig Tue Dec 16 00:25:01 2003
++++ vpnc.c Tue Dec 16 00:25:33 2003
+@@ -2007,7 +2007,7 @@
+ else
+ read_config_file (argv[i], config, 0);
+
+- read_config_file ("/etc/vpnc.conf", config, 1);
++ read_config_file ("/usr/local/etc/vpnc.conf", config, 1);
+
+ if (!config[CONFIG_IKE_DH])
+ config[CONFIG_IKE_DH] = "dh2";
diff --git a/security/vpnc/files/vpnc.sh b/security/vpnc/files/vpnc.sh
new file mode 100644
index 0000000..54ff1ee
--- /dev/null
+++ b/security/vpnc/files/vpnc.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$1" in
+start)
+ [ -x /usr/local/sbin/vnpc ] && /usr/local/sbin/vnpc --pid-file /var/run/vpnc.pid > /dev/null && echo -n ' apache'
+ ;;
+stop)
+ #
+ kill
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/security/vpnc/pkg-descr b/security/vpnc/pkg-descr
new file mode 100644
index 0000000..150e15c
--- /dev/null
+++ b/security/vpnc/pkg-descr
@@ -0,0 +1,8 @@
+VPNC - Client for Cisco 3000 VPN Concentrator
+
+A VPN client compatible with Cisco's EasyVPN equipment.
+Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
+shared-secret IPSec authentication, 3DES, MD5, and IP tunneling.
+It runs entirely in userspace
+
+WWW: http://www.unix-ag.uni-kl.de/~massar/vpnc/
diff --git a/security/vpnc/pkg-plist b/security/vpnc/pkg-plist
new file mode 100644
index 0000000..36c695b
--- /dev/null
+++ b/security/vpnc/pkg-plist
@@ -0,0 +1,5 @@
+sbin/vpnc
+etc/vpnc.conf.sample
+etc/rc.d/vpnc.sh.sample
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud