ports/60283: new port: vpnc - client for cisco 3000 concentrator
Christian Lackas
delta at lackas.net
Tue Dec 16 00:30:17 UTC 2003
>Number: 60283
>Category: ports
>Synopsis: new port: vpnc - client for cisco 3000 concentrator
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 15 16:30:10 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Christian Lackas
>Release: FreeBSD 4.9-STABLE i386
>Organization:
Research Center Jülich
>Environment:
System: FreeBSD zel726.zel.kfa-juelich.de 4.9-STABLE FreeBSD 4.9-STABLE #10: Tue Dec 2 13:30:43 CET 2003 root at zel726.zel.kfa-juelich.de:/usr/obj/usr/src/sys/DELTA i386
>Description:
new port of a vpn client for Cisco 3000 concentrator
>How-To-Repeat:
N/A
>Fix:
shar-file of port:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# vpnc
# vpnc/Makefile
# vpnc/distinfo
# vpnc/pkg-descr
# vpnc/pkg-plist
# vpnc/files
# vpnc/files/patch-Makefile
# vpnc/files/patch-vpnc.c
# vpnc/files/vpnc.sh
#
echo c - vpnc
mkdir -p vpnc > /dev/null 2>&1
echo x - vpnc/Makefile
sed 's/^X//' >vpnc/Makefile << 'END-of-vpnc/Makefile'
X# New ports collection makefile for: vpnc
X# Date created: 15 December 2003
X# Whom: Christian Lackas
X#
X# $FreeBSD: ports/net/mpd/Makefile,v 1.31 2003/11/22 20:51:04 archie Exp $
X#
X
XPORTNAME= vpnc
XPORTVERSION= 0.2
X#PORTREVISION
XCATEGORIES= security
XMASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/
XDISTNAME= ${PORTNAME}-${PORTVERSION}-rm+zomb-pre6
X
XMAINTAINER= delta at lackas.net
XCOMMENT= "Client for Cisco 3000 VPN Concentrator"
X
XLIB_DEPENDS= gcrypt.6:${PORTSDIR}/security/libgcrypt
X
XUSE_GMAKE= yes
XALL_TARGET= vpnc
XINSTALL_TARGET=
X
Xpost-install:
X @${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin/vpnc
X @${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vpnc.sh ${PREFIX}/etc/rc.d/vpnc.sh.sample
X @${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc/vpnc.conf.sample
X.if !defined(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X @${INSTALL_DATA} -m 666 ${WRKSRC}/README ${DOCSDIR}/README
X.endif
X
X.include <bsd.port.mk>
END-of-vpnc/Makefile
echo x - vpnc/distinfo
sed 's/^X//' >vpnc/distinfo << 'END-of-vpnc/distinfo'
XMD5 (vpnc-0.2-rm+zomb-pre6.tar.gz) = e2061c70455f333b2ee9089c6e25adec
END-of-vpnc/distinfo
echo x - vpnc/pkg-descr
sed 's/^X//' >vpnc/pkg-descr << 'END-of-vpnc/pkg-descr'
XVPNC - Client for Cisco 3000 VPN Concentrator
X
XA VPN client compatible with Cisco's EasyVPN equipment.
XSupports IPSec (ESP) with Mode Configuration and Xauth. Supports only
Xshared-secret IPSec authentication, 3DES, MD5, and IP tunneling.
XIt runs entirely in userspace
X
XWWW: http://www.unix-ag.uni-kl.de/~massar/vpnc/
X
END-of-vpnc/pkg-descr
echo x - vpnc/pkg-plist
sed 's/^X//' >vpnc/pkg-plist << 'END-of-vpnc/pkg-plist'
Xsbin/vpnc
Xetc/vpnc.conf.sample
Xetc/rc.d/vpnc.sh.sample
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-vpnc/pkg-plist
echo c - vpnc/files
mkdir -p vpnc/files > /dev/null 2>&1
echo x - vpnc/files/patch-Makefile
sed 's/^X//' >vpnc/files/patch-Makefile << 'END-of-vpnc/files/patch-Makefile'
X--- Makefile.orig Tue Dec 16 00:21:17 2003
X+++ Makefile Tue Dec 16 00:21:33 2003
X@@ -22,7 +22,7 @@
X ifeq ($(shell uname -s), Linux)
X SYSDEP=sysdep-linux.o
X endif
X-ifeq ($(shell uname -s), NetBSD)
X+ifeq ($(shell uname -s), FreeBSD)
X CFLAGS += -DSOCKADDR_IN_SIN_LEN
X SYSDEP=sysdep-bsd.o
X endif
END-of-vpnc/files/patch-Makefile
echo x - vpnc/files/patch-vpnc.c
sed 's/^X//' >vpnc/files/patch-vpnc.c << 'END-of-vpnc/files/patch-vpnc.c'
X--- vpnc.c.orig Tue Dec 16 00:25:01 2003
X+++ vpnc.c Tue Dec 16 00:25:33 2003
X@@ -2007,7 +2007,7 @@
X else
X read_config_file (argv[i], config, 0);
X
X- read_config_file ("/etc/vpnc.conf", config, 1);
X+ read_config_file ("/usr/local/etc/vpnc.conf", config, 1);
X
X if (!config[CONFIG_IKE_DH])
X config[CONFIG_IKE_DH] = "dh2";
END-of-vpnc/files/patch-vpnc.c
echo x - vpnc/files/vpnc.sh
sed 's/^X//' >vpnc/files/vpnc.sh << 'END-of-vpnc/files/vpnc.sh'
X#!/bin/sh
X
Xcase "$1" in
Xstart)
X [ -x /usr/local/sbin/vnpc ] && /usr/local/sbin/vnpc --pid-file /var/run/vpnc.pid > /dev/null && echo -n ' apache'
X ;;
Xstop)
X #
X kill
X ;;
X*)
X echo "Usage: `basename $0` {start|stop}" >&2
X ;;
Xesac
X
Xexit 0
END-of-vpnc/files/vpnc.sh
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list