aboutsummaryrefslogtreecommitdiff
path: root/net/pipsecd
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1999-08-16 22:14:42 +0000
committerMatthew Hunt <mph@FreeBSD.org>1999-08-16 22:14:42 +0000
commitfa0c40ffbba2a5002676e5d389a77b7f092c2b3e (patch)
tree305534894b7bf697a0a73d65489d23768e261489 /net/pipsecd
parent790af7141e5e48c3e55aac801a13a27097ca9010 (diff)
downloadports-fa0c40ffbba2a5002676e5d389a77b7f092c2b3e.tar.gz
ports-fa0c40ffbba2a5002676e5d389a77b7f092c2b3e.zip
Notes
Diffstat (limited to 'net/pipsecd')
-rw-r--r--net/pipsecd/Makefile38
-rw-r--r--net/pipsecd/distinfo1
-rw-r--r--net/pipsecd/files/patch-aa26
-rw-r--r--net/pipsecd/files/patch-ab13
-rw-r--r--net/pipsecd/files/patch-ac22
-rw-r--r--net/pipsecd/pkg-comment1
-rw-r--r--net/pipsecd/pkg-descr7
-rw-r--r--net/pipsecd/pkg-message19
-rw-r--r--net/pipsecd/pkg-plist7
9 files changed, 134 insertions, 0 deletions
diff --git a/net/pipsecd/Makefile b/net/pipsecd/Makefile
new file mode 100644
index 000000000000..11e6e5d09ca4
--- /dev/null
+++ b/net/pipsecd/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: pipsecd
+# Version required: 19990519
+# Date created: 16 Aug 1999
+# Whom: Patrick Bihan-Faou <patrick@mindstep.com>
+#
+# $Id$
+#
+
+DISTNAME= tunip
+PKGNAME= pipsecd-19990519
+CATEGORIES= net security
+MASTER_SITES= http://www.enst.fr/~beyssac/
+
+MAINTAINER= patrick@mindstep.com
+
+BUILD_DEPENDS= ${PREFIX}/lib/libcrypto.a:${PORTSDIR}/security/openssl:install
+
+ALL_TARGET= pipsecd
+
+WRKSRC= ${WRKDIR}/pipsec-19990519
+
+.include <bsd.port.pre.mk>
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/pipsecd ${PREFIX}/sbin
+ ${MKDIR} ${PREFIX}/etc/ipsec
+ ${INSTALL_DATA} ${WRKSRC}/pipsecd.conf.sample ${PREFIX}/etc/ipsec
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/pipsecd
+ ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/pipsecd
+ ${INSTALL_MAN} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/pipsecd
+ ${INSTALL_MAN} ${WRKSRC}/README.port ${PREFIX}/share/doc/pipsecd
+.endif
+
+post-install:
+ strip ${PREFIX}/sbin/pipsecd
+
+.include <bsd.port.post.mk>
diff --git a/net/pipsecd/distinfo b/net/pipsecd/distinfo
new file mode 100644
index 000000000000..f220456ec763
--- /dev/null
+++ b/net/pipsecd/distinfo
@@ -0,0 +1 @@
+MD5 (tunip.tar.gz) = 7dff992e614bd61a007e362d47c9a66a
diff --git a/net/pipsecd/files/patch-aa b/net/pipsecd/files/patch-aa
new file mode 100644
index 000000000000..b84f63e1a459
--- /dev/null
+++ b/net/pipsecd/files/patch-aa
@@ -0,0 +1,26 @@
+--- Makefile.orig Mon Aug 16 11:51:13 1999
++++ Makefile Mon Aug 16 12:28:08 1999
+@@ -6,17 +6,20 @@
+ CLEANFILES= *.core *.o pipsecd
+
+ # Where your OpenSSL includes are located
+-INCDIR=/usr/local/ssl/include
++INCDIR=-I$(PREFIX)/include -I$(PREFIX)/include/openssl
+
+ # Where your libcrypto is located
+-LIBDIR=/usr/local/ssl/lib
++LIBDIR=-L$(PREFIX)/lib
++
++# Misc Defines
++DEFINES=-DFILE_PREFIX=\"$(PREFIX)\"
+
+ # Optional (to use FreeBSD's libmd)
+ #OPTLIB= -lmd
+ #OPTDEF= -DUSE_SYSTEM_HASH
+
+ pipsecd: tunip.c defs.h
+- gcc -Wall -I$(INCDIR) -g -o $(OPTDEF) pipsecd tunip.c -L$(LIBDIR) $(OPTLIB) -lcrypto
++ gcc -Wall $(INCDIR) -g -o $(OPTDEF) pipsecd tunip.c $(LIBDIR) $(OPTLIB) -lcrypto $(DEFINES)
+
+ install: pipsecd
+ install pipsecd /usr/local/sbin/
diff --git a/net/pipsecd/files/patch-ab b/net/pipsecd/files/patch-ab
new file mode 100644
index 000000000000..8aaa16439810
--- /dev/null
+++ b/net/pipsecd/files/patch-ab
@@ -0,0 +1,13 @@
+--- tunip.c.orig Mon Aug 16 11:54:50 1999
++++ tunip.c Mon Aug 16 12:27:07 1999
+@@ -57,8 +57,8 @@
+
+ #include "defs.h"
+
+-#define _PATH_CONF "/etc/ipsec/pipsecd.conf"
+-#define _PATH_STARTUP "/etc/ipsec/startup"
++#define _PATH_CONF FILE_PREFIX "/etc/ipsec/pipsecd.conf"
++#define _PATH_STARTUP FILE_PREFIX "/etc/ipsec/startup"
+ #define _PATH_DEV_RANDOM "/dev/random"
+
+ #define MAX_HEADER 64
diff --git a/net/pipsecd/files/patch-ac b/net/pipsecd/files/patch-ac
new file mode 100644
index 000000000000..03cf242aed31
--- /dev/null
+++ b/net/pipsecd/files/patch-ac
@@ -0,0 +1,22 @@
+--- README.port.orig Mon Aug 16 12:58:09 1999
++++ README.port Mon Aug 16 13:03:28 1999
+@@ -0,0 +1,19 @@
++This is the ported version of the pipsecd program
++from Pierre Beyssac at the ENST.
++
++The main difference with the original code are:
++- it compiles with OpenSSL-0.94
++- config files are in /usr/local/etc/ipsec
++
++
++Apart from that it works exactly as the original work from
++Pierre Beyssac.
++
++You can obtain the source distribution of pipsecd at:
++http://www.enst.fr/~beyssac/tunip.tar.gz
++
++Enjoy!
++
++Patrick Bihan-Faou - MindStep Corporation
++patrick@mindstep.com - http://www.mindstep.com/
++
diff --git a/net/pipsecd/pkg-comment b/net/pipsecd/pkg-comment
new file mode 100644
index 000000000000..6e54dba314f5
--- /dev/null
+++ b/net/pipsecd/pkg-comment
@@ -0,0 +1 @@
+Simple IPSEC tunnel tool from Pierre Beyssac
diff --git a/net/pipsecd/pkg-descr b/net/pipsecd/pkg-descr
new file mode 100644
index 000000000000..17ac2df3cbb7
--- /dev/null
+++ b/net/pipsecd/pkg-descr
@@ -0,0 +1,7 @@
+This simple program lets you build a IPSec tunnel using
+the tun device.
+
+You need to have the openSSL library for it.
+
+- Patrick Bihan-Faou
+patrick@mindstep.com
diff --git a/net/pipsecd/pkg-message b/net/pipsecd/pkg-message
new file mode 100644
index 000000000000..6344432cbe82
--- /dev/null
+++ b/net/pipsecd/pkg-message
@@ -0,0 +1,19 @@
+This is the ported version of the pipsecd program
+from Pierre Beyssac at the ENST.
+
+The main difference with the original code are:
+- it compiles with OpenSSL-0.94
+- config files are in /usr/local/etc/ipsec
+
+
+Apart from that it works exactly as the original work from
+Pierre Beyssac.
+
+You can obtain the source distribution of pipsecd at:
+http://www.enst.fr/~beyssac/tunip.tar.gz
+
+Enjoy!
+
+Patrick Bihan-Faou - MindStep Corporation
+patrick@mindstep.com - http://www.mindstep.com/
+
diff --git a/net/pipsecd/pkg-plist b/net/pipsecd/pkg-plist
new file mode 100644
index 000000000000..9eab26bf97e3
--- /dev/null
+++ b/net/pipsecd/pkg-plist
@@ -0,0 +1,7 @@
+sbin/pipsecd
+etc/ipsec/pipsecd.conf.sample
+share/doc/pipsecd/README
+share/doc/pipsecd/COPYRIGHT
+share/doc/pipsecd/README.port
+@dirrm share/doc/pipsecd
+@dirrm etc/ipsec