summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2006-08-26 05:00:35 +0000
committerAlec Warner <antarus@gentoo.org>2006-08-26 05:00:35 +0000
commitafb55929e5ac061976227cf95798f3c1c973d956 (patch)
treea3ac6ebc7d76ffcd526bd34092c8c68fa86adf18 /net-misc/freenet6/files
parentUpdate masking for freenet6 (diff)
downloadgentoo-2-afb55929e5ac061976227cf95798f3c1c973d956.tar.gz
gentoo-2-afb55929e5ac061976227cf95798f3c1c973d956.tar.bz2
gentoo-2-afb55929e5ac061976227cf95798f3c1c973d956.zip
Punting bidwatcher for bug # 140630
Diffstat (limited to 'net-misc/freenet6/files')
-rw-r--r--net-misc/freenet6/files/digest-freenet6-1.0.03
-rw-r--r--net-misc/freenet6/files/gentoo.sh166
-rw-r--r--net-misc/freenet6/files/tspc.conf53
-rw-r--r--net-misc/freenet6/files/tspc.rc20
4 files changed, 0 insertions, 242 deletions
diff --git a/net-misc/freenet6/files/digest-freenet6-1.0.0 b/net-misc/freenet6/files/digest-freenet6-1.0.0
deleted file mode 100644
index ac5d872da253..000000000000
--- a/net-misc/freenet6/files/digest-freenet6-1.0.0
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 a2b4edb1d52b874587533b4cf40de1ba freenet6-1.0.0.tgz 330953
-RMD160 28c7cceaaea5ffe4b740d09f7dbd4aed5abac69d freenet6-1.0.0.tgz 330953
-SHA256 0d834b55538eff2abc569aa5c7831f24525bea56354727d0f6d5933d0e5f1116 freenet6-1.0.0.tgz 330953
diff --git a/net-misc/freenet6/files/gentoo.sh b/net-misc/freenet6/files/gentoo.sh
deleted file mode 100644
index 858b7ccab663..000000000000
--- a/net-misc/freenet6/files/gentoo.sh
+++ /dev/null
@@ -1,166 +0,0 @@
-#!/bin/sh
-
-LANGUAGE=C
-
-if [ -z $TSP_VERBOSE ]; then
- TSP_VERBOSE=0
-fi
-
-KillProcess()
-{
- if [ ! -z $TSP_VERBOSE ]; then
- if [ $TSP_VERBOSE -ge 2 ]; then
- echo killing $*
- fi
- fi
- PID=`ps axww | grep $1 | grep -v grep | awk '{ print $1;}'`
- echo $PID
- if [ ! -z $PID ]; then
- kill $PID
- fi
-}
-
-Display()
-{
- if [ -z $TSP_VERBOSE ]; then
- return;
- fi
- if [ $TSP_VERBOSE -lt $1 ]; then
- return;
- fi
- shift
- echo "$*"
-}
-
-Exec()
-{
- if [ ! -z $TSP_VERBOSE ]; then
- if [ $TSP_VERBOSE -ge 2 ]; then
- echo $*
- fi
- fi
- $* # Execute command
- if [ $? -ne 0 ]; then
- echo "Error while executing $1"
- echo " Command: $*"
- exit 1
- fi
-}
-
-ExecNoCheck()
-{
- if [ ! -z $TSP_VERBOSE ]; then
- if [ $TSP_VERBOSE -ge 2 ]; then
- echo $*
- fi
- fi
- $* # Execute command
-}
-
-# Program localization
-
-Display 1 "--- Start of configuration script. ---"
-Display 1 "Script: " `basename $0`
-
-ifconfig=/sbin/ifconfig
-route=/sbin/route
-ipconfig=/sbin/ip
-rtadvd=/usr/sbin/radvd
-sysctl=/sbin/sysctl
-rtadvdconfigfilename=radvd.conf
-rtadvdconfigfile=/etc/$rtadvdconfigfilename
-
-if [ -z $TSP_HOME_DIR ]; then
- echo "TSP_HOME_DIR variable not specified!;"
- exit 1
-fi
-
-if [ ! -d $TSP_HOME_DIR ]; then
- echo "Error : directory $TSP_HOME_DIR does not exist"
- exit 1
-fi
-#
-
-if [ -z $TSP_HOST_TYPE ]; then
- echo Error: TSP_HOST_TYPE not defined.
- exit 1
-fi
-
-#change to upper case
-TSP_HOST_TYPE=`echo $TSP_HOST_TYPE | tr a-z A-Z`
-
-if [ X"${TSP_HOST_TYPE}" = X"HOST" ] || [ X"${TSP_HOST_TYPE}" = X"ROUTER" ]; then
- #
- # Configured tunnel config (IPv6)
-
- Display 1 "$TSP_TUNNEL_INTERFACE setup"
- Display 1 "Setting up link to $TSP_SERVER_ADDRESS_IPV4"
- if [ -x $ipconfig ]; then
- Exec $ipconfig tunnel add $TSP_TUNNEL_INTERFACE mode sit ttl 64 remote $TSP_SERVER_ADDRESS_IPV4
- else
- Exec $ifconfig $TSP_TUNNEL_INTERFACE tunnel ::$TSP_SERVER_ADDRESS_IPV4
- fi
-
- Exec $ifconfig $TSP_TUNNEL_INTERFACE up
-
- PREF=`echo $TSP_CLIENT_ADDRESS_IPV6 | sed "s/:0*/:/g" |cut -d : -f1-2`
- OLDADDR=`$ifconfig $TSP_TUNNEL_INTERFACE | grep "inet6.* $PREF" | sed -e "s/^.*inet6 addr: //" -e "s/ Scope.*\$//"`
- if [ ! -z $OLDADDR ]; then
- Display 1 "Removing old IPv6 address $OLDADDR"
- Exec $ifconfig $TSP_TUNNEL_INTERFACE inet6 del $OLDADDR
- fi
- Display 1 "This host is: $TSP_CLIENT_ADDRESS_IPV6/$TSP_TUNNEL_PREFIXLEN"
- Exec $ifconfig $TSP_TUNNEL_INTERFACE add $TSP_CLIENT_ADDRESS_IPV6/$TSP_TUNNEL_PREFIXLEN
-
- #
- # Default route
- Display 1 "Adding default route"
- ExecNoCheck $route -A inet6 del ::/0 2>/dev/null # delete old default route
- Exec $route -A inet6 add ::/0 dev $TSP_TUNNEL_INTERFACE
- Exec $route -A inet6 add 2000::/3 dev $TSP_TUNNEL_INTERFACE
-fi
-
-# Router configuration if required
-if [ X"${TSP_HOST_TYPE}" = X"ROUTER" ]; then
- Display 1 "Router configuration"
- Display 1 "Kernel setup"
- #Better way on linux to avoid loop with the remaining /48?
- $route -A inet6 add $TSP_PREFIX::/$TSP_PREFIXLEN dev $TSP_HOME_INTERFACE 2>/dev/null
- Exec $sysctl -w net.ipv6.conf.all.forwarding=1 # ipv6_forwarding enabled
- Display 1 "Adding prefix to $TSP_HOME_INTERFACE"
- OLDADDR=`$ifconfig $TSP_HOME_INTERFACE | grep "inet6.* $PREF" | sed -e "s/^.*inet6 addr: //" -e "s/ Scope.*\$//"`
- if [ ! -z $OLDADDR ]; then
- Display 1 "Removing old IPv6 address $OLDADDR"
- Exec $ifconfig $TSP_HOME_INTERFACE inet6 del $OLDADDR
- fi
- Exec $ifconfig $TSP_HOME_INTERFACE add $TSP_PREFIX:1::1/64
- # Router advertisement configuration
- Display 1 "Create new $rtadvdconfigfile"
- echo "##### radvd.conf made by TSP ####" > "$rtadvdconfigfile"
- echo "interface $TSP_HOME_INTERFACE" >> "$rtadvdconfigfile"
- echo "{" >> "$rtadvdconfigfile"
- echo " AdvSendAdvert on;" >> "$rtadvdconfigfile"
- echo " prefix $TSP_PREFIX:0001::/64" >> "$rtadvdconfigfile"
- echo " {" >> "$rtadvdconfigfile"
- echo " AdvOnLink on;" >> "$rtadvdconfigfile"
- echo " AdvAutonomous on;" >> "$rtadvdconfigfile"
- echo " AdvRouterAddr on;" >> "$rtadvdconfigfile"
- echo " };" >> "$rtadvdconfigfile"
- echo "};" >> "$rtadvdconfigfile"
- echo "" >> "$rtadvdconfigfile"
- if [ -f /var/run/radvd/radvd.pid ]; then
- /etc/init.d/radvd stop
- fi
- if [ -f $rtadvdconfigfile ]; then
- /etc/init.d/radvd start
- else
- echo "Error : file $rtadvdconfigfile not found"
- exit 1
- fi
-fi
-
-Display 1 "--- End of configuration script. ---"
-
-exit 0
-
-#---------------------------------------------------------------------
diff --git a/net-misc/freenet6/files/tspc.conf b/net-misc/freenet6/files/tspc.conf
deleted file mode 100644
index 6a028a88e554..000000000000
--- a/net-misc/freenet6/files/tspc.conf
+++ /dev/null
@@ -1,53 +0,0 @@
-#-----------------------------------------------------------------------------
-# tspc.conf
-#-----------------------------------------------------------------------------
-
-#
-# tsp client version
-#
-tsp_version=1.0.1
-tsp_dir=/etc/freenet6
-
-#
-# auth_method=any|supported mechanism
-# if any is specified, the first mechanism that is supported by both the
-# server and the client will be picked. The order of precedence is the
-# mechnism list shown by the output of -h. supprted mechanism is one of
-# the token shown by th output of -h (case sensitive).
-auth_method=any
-
-#
-# client_v4=auto|1.1.1.1 (valid ip address)
-# if auto is specified, if_source or -s cmd line option must be specified.
-client_v4=auto
-
-# userid=anonymous
-# the userid can be anonymous or any alphanumeric value that is dns legal.
-userid=anonymous
-
-# passwd=
-# The passwd must be empty if userid is anonymous or an alphanumeric string
-# if userid is not anonymous.
-passwd=
-
-# template=target
-# template tells which configuration script needs to be run for interface
-# setup.
-# Normally you only need to put your osname in the value.
-# You can also use "checktunnel" if you only want the tunnel info print out.
-#template=checktunnel
-template=linux
-
-# server=FQDN
-# Freenet6 server address
-server=tsps2.freenet6.net
-
-# retry_delay=time
-# retry tells the client to retry connection after time (seconds) in case of
-# failure (0 = no retry)
-retry_delay=0
-
-if_tunnel=sit1
-
-# end of tspc.conf
-#-----------------------------------------------------------------------------
diff --git a/net-misc/freenet6/files/tspc.rc b/net-misc/freenet6/files/tspc.rc
deleted file mode 100644
index c93db77c1140..000000000000
--- a/net-misc/freenet6/files/tspc.rc
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/files/tspc.rc,v 1.4 2004/07/14 23:58:39 agriffis Exp $
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting Freenet6 IPv6 Client"
- tspc -f /etc/freenet6/tspc.conf
- eend $?
-}
-
-stop() {
- ebegin "Stopping Freenet6 IPv6 Client"
- kill `pidof tspc`
- eend $?
-}