diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-11-20 10:15:14 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-11-20 10:15:14 +0000 |
commit | a50f8305fb4750d34805746925149e0b00b211f0 (patch) | |
tree | 20d47cac5d9a3a0d699cce276e1769853ec255b9 /net/freenet6/files | |
parent | e22ed3d655da09658c170f2800426a37952bf204 (diff) | |
download | ports-a50f8305fb4750d34805746925149e0b00b211f0.tar.gz ports-a50f8305fb4750d34805746925149e0b00b211f0.zip |
Notes
Diffstat (limited to 'net/freenet6/files')
-rw-r--r-- | net/freenet6/files/freenet6.sh.in | 30 | ||||
-rw-r--r-- | net/freenet6/files/patch-conf::tspc.conf.in | 11 | ||||
-rw-r--r-- | net/freenet6/files/patch-log.c | 12 | ||||
-rw-r--r-- | net/freenet6/files/patch-man-man5-tspc.conf.5 | 11 | ||||
-rw-r--r-- | net/freenet6/files/patch-man-man8-tspc.8 | 11 | ||||
-rw-r--r-- | net/freenet6/files/patch-src-Makefile | 24 | ||||
-rw-r--r-- | net/freenet6/files/patch-src-tspc.c | 11 | ||||
-rw-r--r-- | net/freenet6/files/patch-src::lib::config.c | 11 | ||||
-rw-r--r-- | net/freenet6/files/patch-src::tsp::tsp_setup.c | 0 | ||||
-rw-r--r-- | net/freenet6/files/patch-template-freebsd4.sh | 21 | ||||
-rw-r--r-- | net/freenet6/files/patch-template-freebsd44.sh | 38 | ||||
-rw-r--r-- | net/freenet6/files/patch-template::freebsd.sh | 11 | ||||
-rw-r--r-- | net/freenet6/files/patch-tspc.conf.in | 13 | ||||
-rw-r--r-- | net/freenet6/files/patch-xmltsp.c | 12 | ||||
-rw-r--r-- | net/freenet6/files/pkg-message.in | 16 |
15 files changed, 33 insertions, 199 deletions
diff --git a/net/freenet6/files/freenet6.sh.in b/net/freenet6/files/freenet6.sh.in deleted file mode 100644 index cc23ffa382a4..000000000000 --- a/net/freenet6/files/freenet6.sh.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/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 diff --git a/net/freenet6/files/patch-conf::tspc.conf.in b/net/freenet6/files/patch-conf::tspc.conf.in new file mode 100644 index 000000000000..9d6954203dc2 --- /dev/null +++ b/net/freenet6/files/patch-conf::tspc.conf.in @@ -0,0 +1,11 @@ +--- conf/tspc.conf.in.orig Sat Nov 20 14:57:43 2004 ++++ conf/tspc.conf.in Sat Nov 20 14:57:53 2004 +@@ -87,7 +87,7 @@ + # on unix, '.sh' is added to the name of the script. + # on windows, '.bat' is added to the name of the script. + # +-template=@target@ ++template=tspc-@target@ + + # + # 'server' is the tunnel broker identifier diff --git a/net/freenet6/files/patch-log.c b/net/freenet6/files/patch-log.c deleted file mode 100644 index 52c5c085c1ad..000000000000 --- a/net/freenet6/files/patch-log.c +++ /dev/null @@ -1,12 +0,0 @@ -*** src/log.c.org Sun Mar 23 16:41:11 2003 ---- src/log.c Sun Mar 23 16:42:54 2003 -*************** -*** 32,37 **** ---- 32,38 ---- - #include <stdio.h> - #include <time.h> - #include <syslog.h> -+ #include <string.h> - - #define LOG_IT - diff --git a/net/freenet6/files/patch-man-man5-tspc.conf.5 b/net/freenet6/files/patch-man-man5-tspc.conf.5 deleted file mode 100644 index 25bee6d8575b..000000000000 --- a/net/freenet6/files/patch-man-man5-tspc.conf.5 +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 diff --git a/net/freenet6/files/patch-man-man8-tspc.8 b/net/freenet6/files/patch-man-man8-tspc.8 deleted file mode 100644 index 781fc9263994..000000000000 --- a/net/freenet6/files/patch-man-man8-tspc.8 +++ /dev/null @@ -1,11 +0,0 @@ ---- 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. diff --git a/net/freenet6/files/patch-src-Makefile b/net/freenet6/files/patch-src-Makefile deleted file mode 100644 index c799f69f57b4..000000000000 --- a/net/freenet6/files/patch-src-Makefile +++ /dev/null @@ -1,24 +0,0 @@ ---- src/Makefile.orig Mon Aug 11 17:18:21 2003 -+++ src/Makefile Thu Oct 23 11:12:02 2003 -@@ -11,7 +11,7 @@ - INC=. - BIN=../bin - --CC=gcc -g -I$(INC) -Wall -+CC+=$(CFLAGS) -g -I$(INC) -Wall - - all: tspc tspc.conf.sample - -@@ -19,9 +19,9 @@ - @echo Installing tspc - mkdir -p $(install_bin) - $(COPY) $(BIN)/$(TSPC) $(install_bin)/$(TSPC) -- $(COPY) $(BIN)/tspc.conf.sample $(install_bin)/tspc.conf.sample -- @if [ ! -e "$(install_bin)/tspc.conf" ]; then \ -- $(COPY) $(BIN)/tspc.conf.sample $(install_bin)/tspc.conf; \ -+ $(COPY) $(BIN)/tspc.conf.sample $(install_etc)/tspc.conf.sample -+ @if [ ! -e "$(install_etc)/tspc.conf" ]; then \ -+ $(COPY) $(BIN)/tspc.conf.sample $(install_etc)/tspc.conf; \ - fi - @echo End of tspc installation - diff --git a/net/freenet6/files/patch-src-tspc.c b/net/freenet6/files/patch-src-tspc.c deleted file mode 100644 index 267384a20844..000000000000 --- a/net/freenet6/files/patch-src-tspc.c +++ /dev/null @@ -1,11 +0,0 @@ ---- src/tspc.c.orig Wed Sep 10 07:44:23 2003 -+++ src/tspc.c Thu Oct 23 11:13:55 2003 -@@ -205,7 +205,7 @@ - int Initialise(int argc, char *argv[], tConf *Conf) - { - tConf CmdLine; -- char *Templ = "template"; -+ char *Templ = "bin"; - - Conf->tsp_dir = NULL; - Conf->server = ""; diff --git a/net/freenet6/files/patch-src::lib::config.c b/net/freenet6/files/patch-src::lib::config.c new file mode 100644 index 000000000000..235cf1186313 --- /dev/null +++ b/net/freenet6/files/patch-src::lib::config.c @@ -0,0 +1,11 @@ +--- src/lib/config.c.orig Wed Jun 30 01:06:13 2004 ++++ src/lib/config.c Sat Nov 20 14:44:44 2004 +@@ -270,7 +270,7 @@ + int tspInitialize(int argc, char *argv[], tConf *Conf) + { + tConf CmdLine; +- char *Templ = "template"; ++ char *Templ = "bin"; + + Conf->tsp_dir = NULL; + Conf->server = ""; diff --git a/net/freenet6/files/patch-src::tsp::tsp_setup.c b/net/freenet6/files/patch-src::tsp::tsp_setup.c new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/net/freenet6/files/patch-src::tsp::tsp_setup.c diff --git a/net/freenet6/files/patch-template-freebsd4.sh b/net/freenet6/files/patch-template-freebsd4.sh deleted file mode 100644 index d2c5d2696062..000000000000 --- a/net/freenet6/files/patch-template-freebsd4.sh +++ /dev/null @@ -1,21 +0,0 @@ ---- template/freebsd4.sh.orig Thu Oct 11 16:40:29 2001 -+++ template/freebsd4.sh Thu Oct 11 16:40:48 2001 -@@ -92,7 +92,7 @@ - fi - - #change to upper case --TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr a-z A-Z` -+TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr [:lower:] [:upper:]` - - if [ X"${TSP_HOST_TYPE}" = X"HOST" ] || [ X"${TSP_HOST_TYPE}" = X"ROUTER" ]; then - # -@@ -122,6 +122,9 @@ - # Delete any default IPv6 route first - ExecNoCheck $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 diff --git a/net/freenet6/files/patch-template-freebsd44.sh b/net/freenet6/files/patch-template-freebsd44.sh deleted file mode 100644 index 290c6647693e..000000000000 --- a/net/freenet6/files/patch-template-freebsd44.sh +++ /dev/null @@ -1,38 +0,0 @@ ---- template/freebsd44.sh.orig Sat Feb 23 06:32:37 2002 -+++ template/freebsd44.sh Fri Jan 3 22:13:35 2003 -@@ -64,7 +64,6 @@ - Display 1 '--- Start of configuration script. ---' - Display 1 "Script: " `basename $0` - --gifconfig=/usr/sbin/gifconfig - ifconfig=/sbin/ifconfig - route=/sbin/route - rtadvd=/usr/sbin/rtadvd -@@ -89,7 +88,7 @@ - fi - - #change to upper case --TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr a-z A-Z` -+TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr [:lower:] [:upper:]` - - if [ X"${TSP_HOST_TYPE}" = X"HOST" ] || [ X"${TSP_HOST_TYPE}" = X"ROUTER" ]; then - # -@@ -103,7 +102,7 @@ - Exec $ifconfig $TSP_TUNNEL_INTERFACE destroy - fi - Exec $ifconfig $TSP_TUNNEL_INTERFACE create -- Exec $gifconfig $TSP_TUNNEL_INTERFACE $TSP_CLIENT_ADDRESS_IPV4 $TSP_SERVER_ADDRESS_IPV4 -+ Exec $ifconfig $TSP_TUNNEL_INTERFACE tunnel $TSP_CLIENT_ADDRESS_IPV4 $TSP_SERVER_ADDRESS_IPV4 - - # - # Configured tunnel config (IPv6) -@@ -117,6 +116,9 @@ - # Delete any default IPv6 route first - ExecNoCheck $route delete -inet6 default - Exec $route add -inet6 default $TSP_SERVER_ADDRESS_IPV6 -+ -+ # Save interface for later -+ echo $TSP_TUNNEL_INTERFACE > /var/run/tspc.if - fi - - # Router configuration if required diff --git a/net/freenet6/files/patch-template::freebsd.sh b/net/freenet6/files/patch-template::freebsd.sh new file mode 100644 index 000000000000..4b0c23d9e681 --- /dev/null +++ b/net/freenet6/files/patch-template::freebsd.sh @@ -0,0 +1,11 @@ +--- template/freebsd.sh.orig Fri Jun 11 12:41:18 2004 ++++ template/freebsd.sh Sat Nov 20 14:56:36 2004 +@@ -80,7 +80,7 @@ + Display 1 '--- Start of configuration script. ---' + Display 1 "Script: " `basename $0` + +-gifconfig=/usr/sbin/gifconfig ++gifconfig=/usr/sbin/ifconfig + ifconfig=/sbin/ifconfig + route=/sbin/route + rtadvd=/usr/sbin/rtadvd diff --git a/net/freenet6/files/patch-tspc.conf.in b/net/freenet6/files/patch-tspc.conf.in deleted file mode 100644 index 912834d7c03e..000000000000 --- a/net/freenet6/files/patch-tspc.conf.in +++ /dev/null @@ -1,13 +0,0 @@ ---- src/tspc.conf.in.orig Thu Oct 23 11:34:40 2003 -+++ src/tspc.conf.in Thu Oct 23 11:35:02 2003 -@@ -37,8 +37,8 @@ - # You can also use "checktunnel" if you only want the tunnel info print out. - # Possible templates are: - # template=checktunnel --# template=freebsd4 --# template=freebsd44 -+# template=tspc-freebsd4 -+# template=tspc-freebsd44 - # template=netbsd - # template=openbsd - # template=solaris8 diff --git a/net/freenet6/files/patch-xmltsp.c b/net/freenet6/files/patch-xmltsp.c deleted file mode 100644 index 863e1ba86d81..000000000000 --- a/net/freenet6/files/patch-xmltsp.c +++ /dev/null @@ -1,12 +0,0 @@ -*** src/xmltsp.c.org Sun Mar 23 16:41:06 2003 ---- src/xmltsp.c Sun Mar 23 16:41:29 2003 -*************** -*** 29,34 **** ---- 29,35 ---- - */ - #include <stdio.h> - #include <stdlib.h> -+ #include <string.h> - - #include "xmlparse.h" - diff --git a/net/freenet6/files/pkg-message.in b/net/freenet6/files/pkg-message.in deleted file mode 100644 index a6810d48767e..000000000000 --- a/net/freenet6/files/pkg-message.in +++ /dev/null @@ -1,16 +0,0 @@ -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 www.jp.freebsd.org - -*** NOTE FOR UPGRADERS to version 0.97: -The configuration file has changed, please change "tsp_version" to -"1.0.1" and add "retry_delay=1800" to it. See tspc.conf.sample for -more information. If you don't add this, the tunnel will not be -setup. -*** NOTE FOR UPGRADERS to version 1.0 -- servername could be have been changed to 'tsps2.freenet6.net' -- template has changed to 'tspc-freebsd44' |