aboutsummaryrefslogtreecommitdiff
path: root/security/vpnc
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-12-17 15:19:51 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-12-17 15:19:51 +0000
commite4789de0d903aa2669ad4435a6924e66b9b8d6fe (patch)
treebb34c7463e510c78ce7c92e960b0209d890dd9c7 /security/vpnc
parentf126b58ee9d89523d553ebed608065afeabe52cf (diff)
downloadports-e4789de0d903aa2669ad4435a6924e66b9b8d6fe.tar.gz
ports-e4789de0d903aa2669ad4435a6924e66b9b8d6fe.zip
Notes
Diffstat (limited to 'security/vpnc')
-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
7 files changed, 93 insertions, 0 deletions
diff --git a/security/vpnc/Makefile b/security/vpnc/Makefile
new file mode 100644
index 000000000000..ee6befb4465c
--- /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 000000000000..ed4f648bffb9
--- /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 000000000000..7a9c20e88686
--- /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 000000000000..c2e6ff968479
--- /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 000000000000..54ff1ee41560
--- /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 000000000000..150e15c85dfe
--- /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 000000000000..36c695b88192
--- /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%%