Date: Mon, 11 Jul 2005 18:57:54 +0300 From: Linas Valiukas <shirshegsm@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/83260: New port: net/tspc2 Tunnel Setup Protocol client from Freenet6 Message-ID: <200507111857.55456.shirshegsm@gmail.com> Resent-Message-ID: <200507111600.j6BG0MMu047203@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83260 >Category: ports >Synopsis: New port: net/tspc2 Tunnel Setup Protocol client from Freenet6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 11 16:00:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Linas Valiukas >Release: FreeBSD 5.4-RELEASE-p1 i386 >Organization: >Environment: System: FreeBSD shirshegsm.lan13.satnet.lt 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #0: Wed Jun 1 00:11:23 EEST 2005 root@shirshegsm.lan13.satnet.lt:/usr/obj/usr/src/sys/HUBBLE i386 >Description: 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. >How-To-Repeat: >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: # # tspc2/ # tspc2/Makefile # tspc2/pkg-descr # tspc2/pkg-plist # tspc2/files # tspc2/files/patch-Makefile # tspc2/files/patch-Mk-mk-freebsd.mk # tspc2/files/tspc2.sh.in # tspc2/files/patch-platform-freebsd-tsp_local.c # tspc2/files/patch-conf-tspc.conf.in # tspc2/distinfo # echo c - tspc2/ mkdir -p tspc2/ > /dev/null 2>&1 echo x - tspc2/Makefile sed 's/^X//' >tspc2/Makefile << 'END-of-tspc2/Makefile' X# New ports collection makefile for: tspc2 X# Date created: 11 July 2005 X# Whom: pypt X# X# $FreeBSD$ X# X XPORTNAME= tspc2 XPORTVERSION= 2.1.1 XCATEGORIES= net ipv6 XMASTER_SITES= http://www.hexago.com/files/ XDISTNAME= tspc-${PORTVERSION}-src XEXTRACT_SUFX= .tgz X XMAINTAINER= shirshegsm@gmail.com XCOMMENT= TSP (Tunnel Setup Protocol) client from Freenet6 X XWRKSRC= ${WRKDIR}/tspc2 XMAN5= tspc.conf.5 XMAN8= tspc.8 XUSE_RC_SUBR= tspc2.sh X XMAKE_ARGS= target=freebsd installdir=${PREFIX} X X.include <bsd.port.mk> END-of-tspc2/Makefile echo x - tspc2/pkg-descr sed 's/^X//' >tspc2/pkg-descr << 'END-of-tspc2/pkg-descr' XInstead of a Web interface, which is usually offered by traditional tunnel Xbrokers, Freenet6 uses an innovative model based on the TSP Client. The TSP XClient is software that usually runs on a PC and that implements the Tunnel XSetup Protocol (TSP). The TSP Client is used to automatically negotiate a Xconfigured tunnel between a PC or router and the Freenet6 tunnel broker, Xmaking IPv6 easy to install and maintain. The TSP Client source code is Xlicensed under the GPL. A commercial license is also available. X XWWW: http://www.hexago.com/ X X- Linas Xshirshegsm@gmail.com END-of-tspc2/pkg-descr echo x - tspc2/pkg-plist sed 's/^X//' >tspc2/pkg-plist << 'END-of-tspc2/pkg-plist' Xbin/tspc Xetc/tspc.conf Xetc/tspc.conf.sample X%%DATADIR%%/template/README X%%DATADIR%%/template/checktunnel.sh X%%DATADIR%%/template/freebsd.sh X@dirrm %%DATADIR%%/template END-of-tspc2/pkg-plist echo c - tspc2/files mkdir -p tspc2/files > /dev/null 2>&1 echo x - tspc2/files/patch-Makefile sed 's/^X//' >tspc2/files/patch-Makefile << 'END-of-tspc2/files/patch-Makefile' X--- Makefile.old Wed Jul 14 21:08:03 2004 X+++ Makefile Mon Jul 11 16:41:46 2005 X@@ -71,13 +71,14 @@ X X @mkdir -p $(install_bin) X @$(COPY) bin/$(TSPC) $(install_bin) X- @$(COPY) bin/tspc.conf.sample $(install_bin) X X- @if [ ! -f $(install_bin)/tspc.conf ]; then \ X- $(COPY) $(install_bin)/tspc.conf.sample $(install_bin)/tspc.conf; \ X+ @mkdir -p $(installdir)/etc X+ @$(COPY) bin/tspc.conf.sample $(installdir)/etc X+ X+ @if [ ! -f $(installdir)/etc/tspc.conf ]; then \ X+ $(COPY) $(installdir)/etc/tspc.conf.sample $(installdir)/etc/tspc.conf; \ X fi X X- @$(COPY) GPL_LICENSE.txt $(installdir) X X clean: pre-checks X @for dir in ${subdirs}; do \ END-of-tspc2/files/patch-Makefile echo x - tspc2/files/patch-Mk-mk-freebsd.mk sed 's/^X//' >tspc2/files/patch-Mk-mk-freebsd.mk << 'END-of-tspc2/files/patch-Mk-mk-freebsd.mk' X--- Mk/mk-freebsd.mk.bak Fri Feb 13 01:05:08 2004 X+++ Mk/mk-freebsd.mk Mon Jul 11 16:45:09 2005 X@@ -26,7 +26,7 @@ X install_bin=$(installdir)/bin X install_etc=$(installdir)/etc X install_lib=$(installdir)/lib X-install_template=$(installdir)/template X+install_template=$(installdir)/share/tspc2/template X install_man=$(installdir)/man X subdirs=src/net src/lib src/tsp src/xml platform/freebsd template conf man X ifname=gif0 END-of-tspc2/files/patch-Mk-mk-freebsd.mk echo x - tspc2/files/tspc2.sh.in sed 's/^X//' >tspc2/files/tspc2.sh.in << 'END-of-tspc2/files/tspc2.sh.in' X#!/bin/sh X Xcase "$1" in X Xstart) X /usr/local/bin/tspc -f /usr/local/etc/tspc.conf X echo -n ' tspc2' X ;; X Xstop) X killall -TERM tspc X echo -n ' tspc2' X ;; X Xrestart) X killall -TERM tspc X /usr/local/bin/tspc -f /usr/local/etc/tspc.conf X echo 'tspc2 restarted' X ;; X X*) X echo "Usage: ${0##*/}: { start | stop | restart }" >&2 X exit 64 X ;; X Xesac END-of-tspc2/files/tspc2.sh.in echo x - tspc2/files/patch-platform-freebsd-tsp_local.c sed 's/^X//' >tspc2/files/patch-platform-freebsd-tsp_local.c << 'END-of-tspc2/files/patch-platform-freebsd-tsp_local.c' X--- platform/freebsd/tsp_local.c.bak Wed Mar 31 00:27:35 2004 X+++ platform/freebsd/tsp_local.c Mon Jul 11 18:12:14 2005 X@@ -59,13 +59,13 @@ X #include "tsp_tun.h" /* freebsd's tun */ X X X-char *FileName = "tspc.conf"; X-char *LogFile = "tspc.log"; X+char *FileName = "/usr/local/etc/tspc.conf"; X+char *LogFile = "/var/log/tspc.log"; X char *LogFileName = NULL; X char *ScriptInterpretor = "/bin/sh"; X char *ScriptExtension = "sh"; X char *ScriptDir = NULL; X-char *TspHomeDir = "/usr/local/etc/tsp"; X+char *TspHomeDir = "/usr/local/share/tspc2"; X char DirSeparator = '/'; X X int Verbose = 0; END-of-tspc2/files/patch-platform-freebsd-tsp_local.c echo x - tspc2/files/patch-conf-tspc.conf.in sed 's/^X//' >tspc2/files/patch-conf-tspc.conf.in << 'END-of-tspc2/files/patch-conf-tspc.conf.in' X--- conf/tspc.conf.in.bak Tue Jun 15 18:01:01 2004 X+++ conf/tspc.conf.in Mon Jul 11 18:24:39 2005 X@@ -24,7 +24,7 @@ X # the only use is for the OS scripts which will be taken X # from $tsp_dir/template X # X-tsp_dir=@tsp_dir@ X+tsp_dir=/usr/local/share/tspc2 X X # X # authentication method: END-of-tspc2/files/patch-conf-tspc.conf.in echo x - tspc2/distinfo sed 's/^X//' >tspc2/distinfo << 'END-of-tspc2/distinfo' XMD5 (tspc-2.1.1-src.tgz) = 65183cae002feaacd8bc92d6a5404cc2 XSIZE (tspc-2.1.1-src.tgz) = 1745514 END-of-tspc2/distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507111857.55456.shirshegsm>