summaryrefslogtreecommitdiff
path: root/net/tspc2
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-12 15:41:48 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-12 15:41:48 +0000
commita4f2f7f34c0d59fca9b994831c7cd0d4ea4f1ee5 (patch)
tree8d5085606383a0b18e7c8f1ecf631b1921c9e4cd /net/tspc2
parent- Update to 4.57 (diff)
Instead of a Web interface, which is usually offered by traditional tunnel
brokers, Freenet6 uses an innovative model based on the TSP Client. The TSP Client is software that usually runs on a PC and that implements the Tunnel Setup Protocol (TSP). The TSP Client is used to automatically negotiate a configured tunnel between a PC or router and the Freenet6 tunnel broker, making IPv6 easy to install and maintain. The TSP Client source code is licensed under the GPL. A commercial license is also available. PR: ports/83260 Submitted by: Linas Valiukas <shirshegsm@gmail.com>
Notes
Notes: svn path=/head/; revision=138998
Diffstat (limited to 'net/tspc2')
-rw-r--r--net/tspc2/Makefile25
-rw-r--r--net/tspc2/distinfo2
-rw-r--r--net/tspc2/files/patch-Makefile21
-rw-r--r--net/tspc2/files/patch-Mk-mk-freebsd.mk11
-rw-r--r--net/tspc2/files/patch-conf-tspc.conf.in11
-rw-r--r--net/tspc2/files/patch-platform-freebsd-tsp_local.c19
-rw-r--r--net/tspc2/files/tspc2.sh.in26
-rw-r--r--net/tspc2/pkg-descr12
-rw-r--r--net/tspc2/pkg-plist8
9 files changed, 135 insertions, 0 deletions
diff --git a/net/tspc2/Makefile b/net/tspc2/Makefile
new file mode 100644
index 000000000000..9b3a1fb5c154
--- /dev/null
+++ b/net/tspc2/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: tspc2
+# Date created: 11 July 2005
+# Whom: pypt
+#
+# $FreeBSD$
+#
+
+PORTNAME= tspc2
+PORTVERSION= 2.1.1
+CATEGORIES= net ipv6
+MASTER_SITES= http://www.hexago.com/files/
+DISTNAME= tspc-${PORTVERSION}-src
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= shirshegsm@gmail.com
+COMMENT= TSP (Tunnel Setup Protocol) client from Freenet6
+
+WRKSRC= ${WRKDIR}/tspc2
+MAN5= tspc.conf.5
+MAN8= tspc.8
+USE_RC_SUBR= tspc2.sh
+
+MAKE_ARGS= target=freebsd installdir=${PREFIX}
+
+.include <bsd.port.mk>
diff --git a/net/tspc2/distinfo b/net/tspc2/distinfo
new file mode 100644
index 000000000000..474a7b71a2a1
--- /dev/null
+++ b/net/tspc2/distinfo
@@ -0,0 +1,2 @@
+MD5 (tspc-2.1.1-src.tgz) = 65183cae002feaacd8bc92d6a5404cc2
+SIZE (tspc-2.1.1-src.tgz) = 1745514
diff --git a/net/tspc2/files/patch-Makefile b/net/tspc2/files/patch-Makefile
new file mode 100644
index 000000000000..b28d79120589
--- /dev/null
+++ b/net/tspc2/files/patch-Makefile
@@ -0,0 +1,21 @@
+--- Makefile.old Wed Jul 14 21:08:03 2004
++++ Makefile Mon Jul 11 16:41:46 2005
+@@ -71,13 +71,14 @@
+
+ @mkdir -p $(install_bin)
+ @$(COPY) bin/$(TSPC) $(install_bin)
+- @$(COPY) bin/tspc.conf.sample $(install_bin)
+
+- @if [ ! -f $(install_bin)/tspc.conf ]; then \
+- $(COPY) $(install_bin)/tspc.conf.sample $(install_bin)/tspc.conf; \
++ @mkdir -p $(installdir)/etc
++ @$(COPY) bin/tspc.conf.sample $(installdir)/etc
++
++ @if [ ! -f $(installdir)/etc/tspc.conf ]; then \
++ $(COPY) $(installdir)/etc/tspc.conf.sample $(installdir)/etc/tspc.conf; \
+ fi
+
+- @$(COPY) GPL_LICENSE.txt $(installdir)
+
+ clean: pre-checks
+ @for dir in ${subdirs}; do \
diff --git a/net/tspc2/files/patch-Mk-mk-freebsd.mk b/net/tspc2/files/patch-Mk-mk-freebsd.mk
new file mode 100644
index 000000000000..db60e5b694fc
--- /dev/null
+++ b/net/tspc2/files/patch-Mk-mk-freebsd.mk
@@ -0,0 +1,11 @@
+--- Mk/mk-freebsd.mk.bak Fri Feb 13 01:05:08 2004
++++ Mk/mk-freebsd.mk Mon Jul 11 16:45:09 2005
+@@ -26,7 +26,7 @@
+ install_bin=$(installdir)/bin
+ install_etc=$(installdir)/etc
+ install_lib=$(installdir)/lib
+-install_template=$(installdir)/template
++install_template=$(installdir)/share/tspc2/template
+ install_man=$(installdir)/man
+ subdirs=src/net src/lib src/tsp src/xml platform/freebsd template conf man
+ ifname=gif0
diff --git a/net/tspc2/files/patch-conf-tspc.conf.in b/net/tspc2/files/patch-conf-tspc.conf.in
new file mode 100644
index 000000000000..583d21ddd074
--- /dev/null
+++ b/net/tspc2/files/patch-conf-tspc.conf.in
@@ -0,0 +1,11 @@
+--- conf/tspc.conf.in.bak Tue Jun 15 18:01:01 2004
++++ conf/tspc.conf.in Mon Jul 11 18:24:39 2005
+@@ -24,7 +24,7 @@
+ # the only use is for the OS scripts which will be taken
+ # from $tsp_dir/template
+ #
+-tsp_dir=@tsp_dir@
++tsp_dir=/usr/local/share/tspc2
+
+ #
+ # authentication method:
diff --git a/net/tspc2/files/patch-platform-freebsd-tsp_local.c b/net/tspc2/files/patch-platform-freebsd-tsp_local.c
new file mode 100644
index 000000000000..a2b9a3230ace
--- /dev/null
+++ b/net/tspc2/files/patch-platform-freebsd-tsp_local.c
@@ -0,0 +1,19 @@
+--- platform/freebsd/tsp_local.c.bak Wed Mar 31 00:27:35 2004
++++ platform/freebsd/tsp_local.c Mon Jul 11 18:12:14 2005
+@@ -59,13 +59,13 @@
+ #include "tsp_tun.h" /* freebsd's tun */
+
+
+-char *FileName = "tspc.conf";
+-char *LogFile = "tspc.log";
++char *FileName = "/usr/local/etc/tspc.conf";
++char *LogFile = "/var/log/tspc.log";
+ char *LogFileName = NULL;
+ char *ScriptInterpretor = "/bin/sh";
+ char *ScriptExtension = "sh";
+ char *ScriptDir = NULL;
+-char *TspHomeDir = "/usr/local/etc/tsp";
++char *TspHomeDir = "/usr/local/share/tspc2";
+ char DirSeparator = '/';
+
+ int Verbose = 0;
diff --git a/net/tspc2/files/tspc2.sh.in b/net/tspc2/files/tspc2.sh.in
new file mode 100644
index 000000000000..8c2b03c47973
--- /dev/null
+++ b/net/tspc2/files/tspc2.sh.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+case "$1" in
+
+start)
+ %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
+ echo -n ' tspc2'
+ ;;
+
+stop)
+ killall -TERM tspc
+ echo -n ' tspc2'
+ ;;
+
+restart)
+ killall -TERM tspc
+ %%PREFIX%%/bin/tspc -f %%PREFIX%%/etc/tspc.conf
+ echo 'tspc2 restarted'
+ ;;
+
+*)
+ echo "Usage: ${0##*/}: { start | stop | restart }" >&2
+ exit 64
+ ;;
+
+esac
diff --git a/net/tspc2/pkg-descr b/net/tspc2/pkg-descr
new file mode 100644
index 000000000000..6e90cb66924a
--- /dev/null
+++ b/net/tspc2/pkg-descr
@@ -0,0 +1,12 @@
+Instead of a Web interface, which is usually offered by traditional tunnel
+brokers, Freenet6 uses an innovative model based on the TSP Client. The TSP
+Client is software that usually runs on a PC and that implements the Tunnel
+Setup Protocol (TSP). The TSP Client is used to automatically negotiate a
+configured tunnel between a PC or router and the Freenet6 tunnel broker,
+making IPv6 easy to install and maintain. The TSP Client source code is
+licensed under the GPL. A commercial license is also available.
+
+WWW: http://www.hexago.com/
+
+- Linas
+shirshegsm@gmail.com
diff --git a/net/tspc2/pkg-plist b/net/tspc2/pkg-plist
new file mode 100644
index 000000000000..893641654eea
--- /dev/null
+++ b/net/tspc2/pkg-plist
@@ -0,0 +1,8 @@
+bin/tspc
+etc/tspc.conf
+etc/tspc.conf.sample
+%%DATADIR%%/template/README
+%%DATADIR%%/template/checktunnel.sh
+%%DATADIR%%/template/freebsd.sh
+@dirrm %%DATADIR%%/template
+@dirrm %%DATADIR%%