Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  6 Nov 2001 15:05:57 +1100 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31791: new port: net/freenet6 - IPv6 tunnel towards the Internet
Message-ID:  <20011106040557.76AF13D3@k7.mavetju.org>

next in thread | raw e-mail | index | archive | help

>Number:         31791
>Category:       ports
>Synopsis:       new port: net/freenet6 - IPv6 tunnel towards the Internet
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 05 20:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju.org 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Thu Oct 4 08:49:05 EST 2001 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386

>Description:
New port, the Freenet6 Tunnel Setup program for having a IPv6 over
IPv6 tunnel towards the internet.

>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:
#
#	net/freenet6
#	net/freenet6/Makefile
#	net/freenet6/distinfo
#	net/freenet6/pkg-plist
#	net/freenet6/pkg-descr
#	net/freenet6/pkg-comment
#	net/freenet6/files
#	net/freenet6/files/patch-template-freebsd44.sh
#	net/freenet6/files/patch-src-Makefile
#	net/freenet6/files/patch-src-tspc.c
#	net/freenet6/files/freenet6.sh.in
#	net/freenet6/files/pkg-message.in
#	net/freenet6/files/patch-man-man8-tspc.8
#	net/freenet6/files/patch-man-man5-tspc.conf.5
#	net/freenet6/files/patch-template-freebsd4.sh
#	net/freenet6/pkg-message
#
echo c - net/freenet6
mkdir -p net/freenet6 > /dev/null 2>&1
echo x - net/freenet6/Makefile
sed 's/^X//' >net/freenet6/Makefile << 'END-of-net/freenet6/Makefile'
X# New ports collection makefile for:   freenet6
X# Date created:        11 Oct 2001
X# Whom:                Edwin Groothuis (edwin@mavetju.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	freenet6
XPORTVERSION=	0.9.4
XCATEGORIES=	net ipv6
XMASTER_SITES=	# fetch manually
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	edwin@mavetju.org
X
XMAN8=		tspc.8
XMAN5=		tspc.conf.5
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 400000
XIGNORE=		This program might not be working on FreeBSD version below 4.0
X.endif
X
X.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
XIGNORE=		May not be automatically fetched due to licensing\
X		restrictions. You MUST manually fetch the version\
X		after reading and agreeing to the license at:\
X		http://www.freenet6.net/cgi-bin/download.cgi?fn=${DISTFILES} \
X		Once it has been downloaded, move it to\
X		${DISTDIR} and then restart this build.\
X		You also can register to use this service at\
X		http://www.freenet6.net/cgi-bin/new_account.pl
X.endif
X
XNO_CDROM=	"Redistribution not allowed"
XNO_PACKAGE=	"Redistribution not allowed"
X
X.if ${OSVERSION} >= 440000
XMAKE_ARGS=	target=freebsd44 installdir=${PREFIX}
X.else
XMAKE_ARGS=	target=freebsd4 installdir=${PREFIX}
X.endif
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/bin/tspc
X	@${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf ${PREFIX}/etc/tspc.conf.sample
X	@${INSTALL_SCRIPT} ${WRKSRC}/template/checktunnel.sh ${PREFIX}/bin/checktunnel.sh
X	@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd44.sh ${PREFIX}/bin/tspc-freebsd44.sh
X	@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd4.sh ${PREFIX}/bin/tspc-freebsd4.sh
X	@${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/man/man8
X	@${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/man/man5
X	@${INSTALL_SCRIPT} ${FILESDIR}/freenet6.sh ${PREFIX}/etc/rc.d/
X
Xpost-install:
X	@${CAT} pkg-message
X
Xpost-patch:
X	@${MV} ${WRKSRC}/src/tspc.c ${WRKSRC}/src/tspc.c.orig
X	@${SED} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" < ${WRKSRC}/src/tspc.c.orig > ${WRKSRC}/src/tspc.c
X
X	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/freenet6.sh.in > ${FILESDIR}/freenet6.sh
X	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/pkg-message.in > pkg-message
X
X	@${MV} ${WRKSRC}/man/man8/tspc.8 ${WRKSRC}/man/man8/tspc.8.orig
X	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man8/tspc.8.orig > ${WRKSRC}/man/man8/tspc.8
X
X	@${MV} ${WRKSRC}/man/man5/tspc.conf.5 ${WRKSRC}/man/man5/tspc.conf.5.orig
X	@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man5/tspc.conf.5.orig > ${WRKSRC}/man/man5/tspc.conf.5
X
Xpost-clean:
X	@${RM} -f ${FILESDIR}/freenet6.sh
X
X.include <bsd.port.post.mk>
END-of-net/freenet6/Makefile
echo x - net/freenet6/distinfo
sed 's/^X//' >net/freenet6/distinfo << 'END-of-net/freenet6/distinfo'
XMD5 (freenet6-0.9.4.tgz) = 1f76f09d700eef002878cd42b3f2a338
END-of-net/freenet6/distinfo
echo x - net/freenet6/pkg-plist
sed 's/^X//' >net/freenet6/pkg-plist << 'END-of-net/freenet6/pkg-plist'
Xbin/tspc
Xetc/tspc.conf.sample
Xbin/tspc-freebsd4.sh
Xbin/tspc-freebsd44.sh
Xbin/checktunnel.sh
Xetc/rc.d/freenet6.sh
END-of-net/freenet6/pkg-plist
echo x - net/freenet6/pkg-descr
sed 's/^X//' >net/freenet6/pkg-descr << 'END-of-net/freenet6/pkg-descr'
XFreenet6's TSP is a new initiative launched by Viagenie, a private
Xcompany in Canada involved in IPv6 since 1996, to facilitate a
Xfaster deployment of an Internet IPv6. Internet is world-wide
Xdeployed over IPv4, therefore this project has the main goal of
Xdeploying IPv6 at a larger scale by using configured tunnels.
X
XConfigured tunnel is a transitional method standardized by the IETF
Xto use IPv6 in coexistence with IPv4 by encapsulating IPv6 packets
Xover IPv4. Any host already connected to Internet with IPv4 and
Xhaving an IPv6 stack could establish link to Internet IPv6.
X
XFreenet6, developed by Viagenie in 1999-2000, was the first public
Xtunnel server service and one of the most used in the world to
Xdelegate automatically one single IPv6 address to any host already
Xconnected to an IPv4 network over configured tunnel simply by
Xfilling a Web form and running a script. Freenet6's TSP is representing
Xanother very important step to accelerate the deployment at large
Xscale of IPv6 to everyone on the net.
X
XInstead of a Web interface to request configured tunnels and IPv6
Xaddresses, Freenet6's TSP is a new model based on a client/server
Xapproach. A protocol is used to request one single IPv6 address to
Xa full IPv6 prefix from a client to a tunnel server according to
Xthe IPv6 broker model. The protocol could be integrated directly
Xinto the operating system to give a service like DHCP but for
Xrequesting IPv6 addresses or prefixes over an IPv4 network (Internet).
X
XWWW: http://www.freenet6.net
X
X- Edwin Groothuis
Xedwin@mavetju.org
END-of-net/freenet6/pkg-descr
echo x - net/freenet6/pkg-comment
sed 's/^X//' >net/freenet6/pkg-comment << 'END-of-net/freenet6/pkg-comment'
XFreenet6 Tunnel Setup Protocol Client - Free IPv6 tunnel
END-of-net/freenet6/pkg-comment
echo c - net/freenet6/files
mkdir -p net/freenet6/files > /dev/null 2>&1
echo x - net/freenet6/files/patch-template-freebsd44.sh
sed 's/^X//' >net/freenet6/files/patch-template-freebsd44.sh << 'END-of-net/freenet6/files/patch-template-freebsd44.sh'
X--- template/freebsd44.sh.orig	Tue Aug 28 04:15:58 2001
X+++ template/freebsd44.sh	Thu Oct 11 15:22:00 2001
X@@ -106,6 +106,9 @@
X    # Delete any default IPv6 route first
X    Exec $route delete -inet6 default
X    Exec $route add -inet6 default  -interface $TSP_TUNNEL_INTERFACE
X+
X+   # Save interface for later
X+   echo $TSP_TUNNEL_INTERFACE > /var/run/tspc.if
X fi
X 
X # Router configuration if required
END-of-net/freenet6/files/patch-template-freebsd44.sh
echo x - net/freenet6/files/patch-src-Makefile
sed 's/^X//' >net/freenet6/files/patch-src-Makefile << 'END-of-net/freenet6/files/patch-src-Makefile'
X--- src/Makefile.orig	Sat Sep  8 01:52:26 2001
X+++ src/Makefile	Thu Oct 11 13:01:53 2001
X@@ -22,7 +22,7 @@
X 	@echo Installing tspc
X 	mkdir -p $(install_bin)
X 	$(COPY) $(BIN)/$(TSPC) $(install_bin)/$(TSPC)
X-	$(COPY) $(BIN)/tspc.conf $(install_bin)/tspc.conf
X+	$(COPY) $(BIN)/tspc.conf $(install_etc)/tspc.conf
X 	@echo End of tspc installation
X 
X $(BIN)/tspc.conf:
END-of-net/freenet6/files/patch-src-Makefile
echo x - net/freenet6/files/patch-src-tspc.c
sed 's/^X//' >net/freenet6/files/patch-src-tspc.c << 'END-of-net/freenet6/files/patch-src-tspc.c'
X--- src/tspc.c.orig	Tue Sep 11 23:41:05 2001
X+++ src/tspc.c	Thu Oct 11 13:27:31 2001
X@@ -178,7 +178,7 @@
X int Initialise(int argc, char *argv[], tConf *Conf)
X {
X   tConf CmdLine;
X-  char *Templ = "template";
X+  char *Templ = "bin";
X   extern int ReadConfigFile(char *File, tConf *Conf);
X 
X   Conf->tsp_dir      = NULL;
X@@ -554,7 +554,7 @@
X   SetEnv("TSP_VERBOSE",           buf, 1);
X   SetEnv("TSP_HOME_DIR",          TspHomeDir, 1);
X 
X-  snprintf(buf, sizeof buf, "%s%s%c%s.%s", ScriptInterpretor, ScriptDir, DirSeparator, Conf.template, ScriptExtension);
X+  snprintf(buf, sizeof buf, "%s%s%ctspc-%s.%s", ScriptInterpretor, ScriptDir, DirSeparator, Conf.template, ScriptExtension);
X 
X   Display(2, ELInfo, "SetUpInterface", "Executing configuration script.\n");
X   Display(2, ELInfo, "SetUpInterface", buf);
X
END-of-net/freenet6/files/patch-src-tspc.c
echo x - net/freenet6/files/freenet6.sh.in
sed 's/^X//' >net/freenet6/files/freenet6.sh.in << 'END-of-net/freenet6/files/freenet6.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# Start or stop the IPv6 tunnel to Freenet6.net
X#
X
Xcase "$1" in
X	start)
X		echo -n " freenet6"
X		if [ -f @@PREFIX@@/etc/tspc.conf ]; then
X			@@PREFIX@@/bin/tspc
X		fi
X		;;
X
X	stop)
X		if [ ! -f /var/run/tspc.if ]; then
X			echo "TSPC not running"
X			exit 64
X		fi
X		/sbin/ifconfig `cat /var/run/tspc.if` destroy
X		;;
X
X	*)
X		echo ""
X		echo "Usage: `basename $0` { start | stop }"
X		echo ""
X		exit 64
X		;;
Xesac
END-of-net/freenet6/files/freenet6.sh.in
echo x - net/freenet6/files/pkg-message.in
sed 's/^X//' >net/freenet6/files/pkg-message.in << 'END-of-net/freenet6/files/pkg-message.in'
XNow that the package is installed, please finish it with the following steps:
X
X- Copy @@PREFIX@@/etc/tspc.conf.sample to @@PREFIX@@/etc/tspc.conf
X- Check the values of @@PREFIX@@/etc/tspc.conf. If you have registered at
X  the website, fill in your userid and password there.
X- Run @@PREFIX@@/etc/rc.d/freenet6.sh to start the tunnel.
X- Try to ping a IPv6 host, for example: ping6 mud6.fataldimensions.org
END-of-net/freenet6/files/pkg-message.in
echo x - net/freenet6/files/patch-man-man8-tspc.8
sed 's/^X//' >net/freenet6/files/patch-man-man8-tspc.8 << 'END-of-net/freenet6/files/patch-man-man8-tspc.8'
X--- man/man8/tspc.8.orig	Thu Oct 11 16:07:07 2001
X+++ man/man8/tspc.8	Thu Oct 11 16:07:22 2001
X@@ -85,7 +85,7 @@
X .Pp
X .It Fl f Ar configuration_file
X Specifies a different configuration file to be used in placed of
X-the default file /usr/local/tsp/etc/tspc.conf. The file format is
X+the default file @@PREFIX@@/etc/tspc.conf. The file format is
X detailed in 
X .Xr tspc.conf 5
X  and lists the options available to customize the client.
END-of-net/freenet6/files/patch-man-man8-tspc.8
echo x - net/freenet6/files/patch-man-man5-tspc.conf.5
sed 's/^X//' >net/freenet6/files/patch-man-man5-tspc.conf.5 << 'END-of-net/freenet6/files/patch-man-man5-tspc.conf.5'
X--- man/man5/tspc.conf.5.orig	Thu Oct 11 16:10:36 2001
X+++ man/man5/tspc.conf.5	Thu Oct 11 16:09:07 2001
X@@ -96,7 +96,7 @@
X The current directory where tspc programs and templates are located. This
X variable might look something like this:
X .Pp
X-tsp_dir=/usr/local/tsp
X+tsp_dir=@@PREFIX@@
X .Pp
X This variable is MANDATORY.
X .It Sy client_v4
END-of-net/freenet6/files/patch-man-man5-tspc.conf.5
echo x - net/freenet6/files/patch-template-freebsd4.sh
sed 's/^X//' >net/freenet6/files/patch-template-freebsd4.sh << 'END-of-net/freenet6/files/patch-template-freebsd4.sh'
X--- template/freebsd4.sh.orig	Thu Oct 11 16:40:29 2001
X+++ template/freebsd4.sh	Thu Oct 11 16:40:48 2001
X@@ -110,6 +110,9 @@
X    # Delete any default IPv6 route first
X    Exec $route delete -inet6 default
X    Exec $route add -inet6 default  -interface $TSP_TUNNEL_INTERFACE
X+
X+   # Save interface for later
X+   echo $TSP_TUNNEL_INTERFACE > /var/run/tspc.if
X fi
X 
X # Router configuration if required
END-of-net/freenet6/files/patch-template-freebsd4.sh
echo x - net/freenet6/pkg-message
sed 's/^X//' >net/freenet6/pkg-message << 'END-of-net/freenet6/pkg-message'
XNow that the package is installed, please finish it with the following steps:
X
X- Copy /usr/local/etc/tspc.conf.sample to /usr/local/etc/tspc.conf
X- Check the values of /usr/local/etc/tspc.conf. If you have registered at
X  the website, fill in your userid and password there.
X- Run /usr/local/etc/rc.d/freenet6.sh to start the tunnel.
X- Try to ping a IPv6 host, for example: ping6 mud6.fataldimensions.org
END-of-net/freenet6/pkg-message
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?20011106040557.76AF13D3>