Date: 16 Aug 1999 18:53:10 -0000 From: patrick@mindstep.com To: freefall-gnats@server.mindstep.com Subject: ports/13178: NEW PORT: pipsecd Message-ID: <19990816185310.47708.qmail@server.mindstep.com>
next in thread | raw e-mail | index | archive | help
>Number: 13178 >Category: ports >Synopsis: NEW PORT: pipsecd >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 16 12:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Patrick Bihan-Faou >Release: FreeBSD-3.2-STABLE >Organization: MindStep Corporation >Environment: System: FreeBSD penpro.local.mindstep.com 3.2-STABLE FreeBSD 3.2-STABLE #14: Wed Jul 28 12:13:59 EDT 1999 serge@penpro.local.mindstep.com:/usr/src/sys/compile/PENPRO i386 >Description: pipsecd is a small implementation of IPSec tunnels that uses the /dev/tun interface and the OpenSSL library for encryption. This port is based on the *current* version of pipsecd. It modifies it in two ways: - update the location of the openssl library - put configuration stuff in $(PREFIX)/etc/ipsec instead of /etc/ipsec It should be categorized in the security and net sections of the ports. >How-To-Repeat: n/a >Fix: # 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: # # pipsecd # pipsecd/pkg # pipsecd/pkg/COMMENT # pipsecd/pkg/DESCR # pipsecd/pkg/MESSAGE # pipsecd/pkg/PLIST # pipsecd/Makefile # pipsecd/files # pipsecd/files/md5 # pipsecd/patches # pipsecd/patches/patch-aa # pipsecd/patches/patch-ab # pipsecd/patches/patch-ac # echo c - pipsecd mkdir -p pipsecd > /dev/null 2>&1 echo c - pipsecd/pkg mkdir -p pipsecd/pkg > /dev/null 2>&1 echo x - pipsecd/pkg/COMMENT sed 's/^X//' >pipsecd/pkg/COMMENT << 'END-of-pipsecd/pkg/COMMENT' XSimple IPSEC tunnel tool from Pierre Beyssac END-of-pipsecd/pkg/COMMENT echo x - pipsecd/pkg/DESCR sed 's/^X//' >pipsecd/pkg/DESCR << 'END-of-pipsecd/pkg/DESCR' XThis simple program lets you build a IPSec tunnel using Xthe tun device. X XYou need to have the openSSL library for it. X X- Patrick Bihan-Faou Xpatrick@mindstep.com END-of-pipsecd/pkg/DESCR echo x - pipsecd/pkg/MESSAGE sed 's/^X//' >pipsecd/pkg/MESSAGE << 'END-of-pipsecd/pkg/MESSAGE' XThis is the ported version of the pipsecd program Xfrom Pierre Beyssac at the ENST. X XThe main difference with the original code are: X- it compiles with OpenSSL-0.94 X- config files are in /usr/local/etc/ipsec X X XApart from that it works exactly as the original work from XPierre Beyssac. X XYou can obtain the source distribution of pipsecd at: Xhttp://www.enst.fr/~beyssac/tunip.tar.gz X XEnjoy! X XPatrick Bihan-Faou - MindStep Corporation Xpatrick@mindstep.com - http://www.mindstep.com/ X END-of-pipsecd/pkg/MESSAGE echo x - pipsecd/pkg/PLIST sed 's/^X//' >pipsecd/pkg/PLIST << 'END-of-pipsecd/pkg/PLIST' Xsbin/pipsecd Xetc/ipsec/pipsecd.conf.sample Xshare/doc/pipsecd/README Xshare/doc/pipsecd/COPYRIGHT Xshare/doc/pipsecd/README.port X@dirrm share/doc/pipsecd X@dirrm etc/ipsec END-of-pipsecd/pkg/PLIST echo x - pipsecd/Makefile sed 's/^X//' >pipsecd/Makefile << 'END-of-pipsecd/Makefile' X# New ports collection makefile for: imap-uw X# Version required: 4.5 X# Date created: 9 Jan 1997 X# Whom: pst X# X# $Id: Makefile,v 1.2 1999/08/16 18:32:50 patrick Exp $ X# X XDISTNAME= tunip XPKGNAME= pipsecd-19990519 XCATEGORIES= net security XMASTER_SITES= http://www.enst.fr/~beyssac/ X XMAINTAINER= patrick@mindstep.com X XBUILD_DEPENDS= ${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl:install X XALL_TARGET= pipsecd X XWRKSRC= ${WRKDIR}/pipsec-19990519 X X.include <bsd.port.pre.mk> X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/pipsecd ${PREFIX}/sbin X ${MKDIR} ${PREFIX}/etc/ipsec X ${INSTALL_DATA} ${WRKSRC}/pipsecd.conf.sample ${PREFIX}/etc/ipsec X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/pipsecd X ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/pipsecd X ${INSTALL_MAN} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/pipsecd X ${INSTALL_MAN} ${WRKSRC}/README.port ${PREFIX}/share/doc/pipsecd X.endif X Xpost-install: X strip ${PREFIX}/sbin/pipsecd X X.include <bsd.port.post.mk> END-of-pipsecd/Makefile echo c - pipsecd/files mkdir -p pipsecd/files > /dev/null 2>&1 echo x - pipsecd/files/md5 sed 's/^X//' >pipsecd/files/md5 << 'END-of-pipsecd/files/md5' XMD5 (tunip.tar.gz) = 7dff992e614bd61a007e362d47c9a66a END-of-pipsecd/files/md5 echo c - pipsecd/patches mkdir -p pipsecd/patches > /dev/null 2>&1 echo x - pipsecd/patches/patch-aa sed 's/^X//' >pipsecd/patches/patch-aa << 'END-of-pipsecd/patches/patch-aa' X--- Makefile.orig Mon Aug 16 11:51:13 1999 X+++ Makefile Mon Aug 16 12:28:08 1999 X@@ -6,17 +6,20 @@ X CLEANFILES= *.core *.o pipsecd X X # Where your OpenSSL includes are located X-INCDIR=/usr/local/ssl/include X+INCDIR=-I$(PREFIX)/include -I$(PREFIX)/include/openssl X X # Where your libcrypto is located X-LIBDIR=/usr/local/ssl/lib X+LIBDIR=-L$(PREFIX)/lib X+ X+# Misc Defines X+DEFINES=-DFILE_PREFIX=\"$(PREFIX)\" X X # Optional (to use FreeBSD's libmd) X #OPTLIB= -lmd X #OPTDEF= -DUSE_SYSTEM_HASH X X pipsecd: tunip.c defs.h X- gcc -Wall -I$(INCDIR) -g -o $(OPTDEF) pipsecd tunip.c -L$(LIBDIR) $(OPTLIB) -lcrypto X+ gcc -Wall $(INCDIR) -g -o $(OPTDEF) pipsecd tunip.c $(LIBDIR) $(OPTLIB) -lcrypto $(DEFINES) X X install: pipsecd X install pipsecd /usr/local/sbin/ END-of-pipsecd/patches/patch-aa echo x - pipsecd/patches/patch-ab sed 's/^X//' >pipsecd/patches/patch-ab << 'END-of-pipsecd/patches/patch-ab' X--- tunip.c.orig Mon Aug 16 11:54:50 1999 X+++ tunip.c Mon Aug 16 12:27:07 1999 X@@ -57,8 +57,8 @@ X X #include "defs.h" X X-#define _PATH_CONF "/etc/ipsec/pipsecd.conf" X-#define _PATH_STARTUP "/etc/ipsec/startup" X+#define _PATH_CONF FILE_PREFIX "/etc/ipsec/pipsecd.conf" X+#define _PATH_STARTUP FILE_PREFIX "/etc/ipsec/startup" X #define _PATH_DEV_RANDOM "/dev/random" X X #define MAX_HEADER 64 END-of-pipsecd/patches/patch-ab echo x - pipsecd/patches/patch-ac sed 's/^X//' >pipsecd/patches/patch-ac << 'END-of-pipsecd/patches/patch-ac' X--- README.port.orig Mon Aug 16 12:58:09 1999 X+++ README.port Mon Aug 16 13:03:28 1999 X@@ -0,0 +1,19 @@ X+This is the ported version of the pipsecd program X+from Pierre Beyssac at the ENST. X+ X+The main difference with the original code are: X+- it compiles with OpenSSL-0.94 X+- config files are in /usr/local/etc/ipsec X+ X+ X+Apart from that it works exactly as the original work from X+Pierre Beyssac. X+ X+You can obtain the source distribution of pipsecd at: X+http://www.enst.fr/~beyssac/tunip.tar.gz X+ X+Enjoy! X+ X+Patrick Bihan-Faou - MindStep Corporation X+patrick@mindstep.com - http://www.mindstep.com/ X+ END-of-pipsecd/patches/patch-ac exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990816185310.47708.qmail>