1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Initial import of freenet6-0.9.5.

Freenet is the Freenet6 Tunnel Setup Protocol Client

PR: 31791
Submitted by: Edwin Groothuis <edwin@mavetju.org>
This commit is contained in:
Kevin Lo 2001-11-08 15:24:26 +00:00
parent 90363bb392
commit 9cadab2a15
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49844
15 changed files with 236 additions and 0 deletions

View File

@ -103,6 +103,7 @@
SUBDIR += forg
SUBDIR += fping
SUBDIR += freebsd-uucp
SUBDIR += freenet6
SUBDIR += freeradius-devel
SUBDIR += freewais-sf
SUBDIR += fspclient

74
net/freenet6/Makefile Normal file
View File

@ -0,0 +1,74 @@
# New ports collection makefile for: freenet6
# Date created: 11 Oct 2001
# Whom: Edwin Groothuis (edwin@mavetju.org)
#
# $FreeBSD$
#
PORTNAME= freenet6
PORTVERSION= 0.9.5
CATEGORIES= net ipv6
MASTER_SITES= # fetch manually
EXTRACT_SUFX= .tgz
MAINTAINER= edwin@mavetju.org
MAN8= tspc.8
MAN5= tspc.conf.5
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 400000
IGNORE= This program might not be working on FreeBSD version below 4.0
.endif
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= May not be automatically fetched due to licensing\
restrictions. You MUST manually fetch the version\
after reading and agreeing to the license at:\
http://www.freenet6.net/cgi-bin/download.cgi?fn=${DISTFILES} \
Once it has been downloaded, move it to\
${DISTDIR} and then restart this build.\
You also can register to use this service at\
http://www.freenet6.net/cgi-bin/new_account.pl
.endif
NO_CDROM= "Redistribution not allowed"
NO_PACKAGE= "Redistribution not allowed"
.if ${OSVERSION} >= 440000
MAKE_ARGS= target=freebsd44 installdir=${PREFIX}
.else
MAKE_ARGS= target=freebsd4 installdir=${PREFIX}
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/bin/tspc
@${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf ${PREFIX}/etc/tspc.conf.sample
@${INSTALL_SCRIPT} ${WRKSRC}/template/checktunnel.sh ${PREFIX}/bin/checktunnel.sh
@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd44.sh ${PREFIX}/bin/tspc-freebsd44.sh
@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd4.sh ${PREFIX}/bin/tspc-freebsd4.sh
@${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/man/man8
@${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/man/man5
@${INSTALL_SCRIPT} ${FILESDIR}/freenet6.sh ${PREFIX}/etc/rc.d/
post-install:
@${CAT} pkg-message
post-patch:
@${MV} ${WRKSRC}/src/tspc.c ${WRKSRC}/src/tspc.c.orig
@${SED} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" < ${WRKSRC}/src/tspc.c.orig > ${WRKSRC}/src/tspc.c
@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/freenet6.sh.in > ${FILESDIR}/freenet6.sh
@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${FILESDIR}/pkg-message.in > pkg-message
@${MV} ${WRKSRC}/man/man8/tspc.8 ${WRKSRC}/man/man8/tspc.8.orig
@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man8/tspc.8.orig > ${WRKSRC}/man/man8/tspc.8
@${MV} ${WRKSRC}/man/man5/tspc.conf.5 ${WRKSRC}/man/man5/tspc.conf.5.orig
@${SED} -e "s|@@PREFIX@@|${PREFIX}|g" < ${WRKSRC}/man/man5/tspc.conf.5.orig > ${WRKSRC}/man/man5/tspc.conf.5
post-clean:
@${RM} -f ${FILESDIR}/freenet6.sh
.include <bsd.port.post.mk>

1
net/freenet6/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (freenet6-0.9.5.tgz) = 31f4a7babeb7523bf182c87f498aa06c

View File

@ -0,0 +1,30 @@
#!/bin/sh
#
# $FreeBSD$
#
# Start or stop the IPv6 tunnel to Freenet6.net
#
case "$1" in
start)
echo -n " freenet6"
if [ -f @@PREFIX@@/etc/tspc.conf ]; then
@@PREFIX@@/bin/tspc
fi
;;
stop)
if [ ! -f /var/run/tspc.if ]; then
echo "TSPC not running"
exit 64
fi
/sbin/ifconfig `cat /var/run/tspc.if` destroy
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

View File

@ -0,0 +1,11 @@
--- man/man5/tspc.conf.5.orig Thu Oct 11 16:10:36 2001
+++ man/man5/tspc.conf.5 Thu Oct 11 16:09:07 2001
@@ -96,7 +96,7 @@
The current directory where tspc programs and templates are located. This
variable might look something like this:
.Pp
-tsp_dir=/usr/local/tsp
+tsp_dir=@@PREFIX@@
.Pp
This variable is MANDATORY.
.It Sy client_v4

View File

@ -0,0 +1,11 @@
--- man/man8/tspc.8.orig Thu Oct 11 16:07:07 2001
+++ man/man8/tspc.8 Thu Oct 11 16:07:22 2001
@@ -85,7 +85,7 @@
.Pp
.It Fl f Ar configuration_file
Specifies a different configuration file to be used in placed of
-the default file /usr/local/tsp/etc/tspc.conf. The file format is
+the default file @@PREFIX@@/etc/tspc.conf. The file format is
detailed in
.Xr tspc.conf 5
and lists the options available to customize the client.

View File

@ -0,0 +1,11 @@
--- src/Makefile.orig Sat Sep 8 01:52:26 2001
+++ src/Makefile Thu Oct 11 13:01:53 2001
@@ -22,7 +22,7 @@
@echo Installing tspc
mkdir -p $(install_bin)
$(COPY) $(BIN)/$(TSPC) $(install_bin)/$(TSPC)
- $(COPY) $(BIN)/tspc.conf $(install_bin)/tspc.conf
+ $(COPY) $(BIN)/tspc.conf $(install_etc)/tspc.conf
@echo End of tspc installation
$(BIN)/tspc.conf:

View File

@ -0,0 +1,21 @@
--- src/tspc.c.orig Tue Sep 11 23:41:05 2001
+++ src/tspc.c Thu Oct 11 13:27:31 2001
@@ -178,7 +178,7 @@
int Initialise(int argc, char *argv[], tConf *Conf)
{
tConf CmdLine;
- char *Templ = "template";
+ char *Templ = "bin";
extern int ReadConfigFile(char *File, tConf *Conf);
Conf->tsp_dir = NULL;
@@ -554,7 +554,7 @@
SetEnv("TSP_VERBOSE", buf, 1);
SetEnv("TSP_HOME_DIR", TspHomeDir, 1);
- snprintf(buf, sizeof buf, "%s%s%c%s.%s", ScriptInterpretor, ScriptDir, DirSeparator, Conf.template, ScriptExtension);
+ snprintf(buf, sizeof buf, "%s%s%ctspc-%s.%s", ScriptInterpretor, ScriptDir, DirSeparator, Conf.template, ScriptExtension);
Display(2, ELInfo, "SetUpInterface", "Executing configuration script.\n");
Display(2, ELInfo, "SetUpInterface", buf);

View File

@ -0,0 +1,12 @@
--- template/freebsd4.sh.orig Thu Oct 11 16:40:29 2001
+++ template/freebsd4.sh Thu Oct 11 16:40:48 2001
@@ -110,6 +110,9 @@
# Delete any default IPv6 route first
Exec $route delete -inet6 default
Exec $route add -inet6 default -interface $TSP_TUNNEL_INTERFACE
+
+ # Save interface for later
+ echo $TSP_TUNNEL_INTERFACE > /var/run/tspc.if
fi
# Router configuration if required

View File

@ -0,0 +1,12 @@
--- template/freebsd44.sh.orig Tue Aug 28 04:15:58 2001
+++ template/freebsd44.sh Thu Oct 11 15:22:00 2001
@@ -106,6 +106,9 @@
# Delete any default IPv6 route first
Exec $route delete -inet6 default
Exec $route add -inet6 default -interface $TSP_TUNNEL_INTERFACE
+
+ # Save interface for later
+ echo $TSP_TUNNEL_INTERFACE > /var/run/tspc.if
fi
# Router configuration if required

View File

@ -0,0 +1,7 @@
Now that the package is installed, please finish it with the following steps:
- Copy @@PREFIX@@/etc/tspc.conf.sample to @@PREFIX@@/etc/tspc.conf
- Check the values of @@PREFIX@@/etc/tspc.conf. If you have registered at
the website, fill in your userid and password there.
- Run @@PREFIX@@/etc/rc.d/freenet6.sh to start the tunnel.
- Try to ping a IPv6 host, for example: ping6 mud6.fataldimensions.org

1
net/freenet6/pkg-comment Normal file
View File

@ -0,0 +1 @@
Freenet6 Tunnel Setup Protocol Client - Free IPv6 tunnel

31
net/freenet6/pkg-descr Normal file
View File

@ -0,0 +1,31 @@
Freenet6's TSP is a new initiative launched by Viagenie, a private
company in Canada involved in IPv6 since 1996, to facilitate a
faster deployment of an Internet IPv6. Internet is world-wide
deployed over IPv4, therefore this project has the main goal of
deploying IPv6 at a larger scale by using configured tunnels.
Configured tunnel is a transitional method standardized by the IETF
to use IPv6 in coexistence with IPv4 by encapsulating IPv6 packets
over IPv4. Any host already connected to Internet with IPv4 and
having an IPv6 stack could establish link to Internet IPv6.
Freenet6, developed by Viagenie in 1999-2000, was the first public
tunnel server service and one of the most used in the world to
delegate automatically one single IPv6 address to any host already
connected to an IPv4 network over configured tunnel simply by
filling a Web form and running a script. Freenet6's TSP is representing
another very important step to accelerate the deployment at large
scale of IPv6 to everyone on the net.
Instead of a Web interface to request configured tunnels and IPv6
addresses, Freenet6's TSP is a new model based on a client/server
approach. A protocol is used to request one single IPv6 address to
a full IPv6 prefix from a client to a tunnel server according to
the IPv6 broker model. The protocol could be integrated directly
into the operating system to give a service like DHCP but for
requesting IPv6 addresses or prefixes over an IPv4 network (Internet).
WWW: http://www.freenet6.net
- Edwin Groothuis
edwin@mavetju.org

7
net/freenet6/pkg-message Normal file
View File

@ -0,0 +1,7 @@
Now that the package is installed, please finish it with the following steps:
- Copy /usr/local/etc/tspc.conf.sample to /usr/local/etc/tspc.conf
- Check the values of /usr/local/etc/tspc.conf. If you have registered at
the website, fill in your userid and password there.
- Run /usr/local/etc/rc.d/freenet6.sh to start the tunnel.
- Try to ping a IPv6 host, for example: ping6 mud6.fataldimensions.org

6
net/freenet6/pkg-plist Normal file
View File

@ -0,0 +1,6 @@
bin/tspc
etc/tspc.conf.sample
bin/tspc-freebsd4.sh
bin/tspc-freebsd44.sh
bin/checktunnel.sh
etc/rc.d/freenet6.sh