pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/6to4 Replaced by hf6to4, written in /bin/sh
details: https://anonhg.NetBSD.org/pkgsrc/rev/df16435e58fa
branches: trunk
changeset: 460159:df16435e58fa
user: hubertf <hubertf%pkgsrc.org@localhost>
date: Sat Aug 23 13:32:19 2003 +0000
description:
Replaced by hf6to4, written in /bin/sh
----------------------------------------------------------
diffstat:
net/6to4/DESCR | 8 -
net/6to4/MESSAGE | 11 -
net/6to4/Makefile | 34 ------
net/6to4/PLIST | 6 -
net/6to4/files/6to4 | 157 ---------------------------
net/6to4/files/6to4.8 | 211 -------------------------------------
net/6to4/files/6to4.conf | 34 ------
net/6to4/files/6to4.html | 264 -----------------------------------------------
8 files changed, 0 insertions(+), 725 deletions(-)
diffs (truncated from 757 to 300 lines):
diff -r 0eb38ed501f7 -r df16435e58fa net/6to4/DESCR
--- a/net/6to4/DESCR Sat Aug 23 13:31:14 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-The 6to4 script can be used to setup IPv6 on your home machine and net-
-work for exploring IPv6 without any registrations. 6to4 is a mechanism by
-which your IPv6 address(es) are derived from an assigned IPv4 address,
-and which involves automatic tunnelling to one or more remove 6to4 hubs,
-which will then forward your v6 packets on the 6bone etc. Replies are
-routed back to you over IPv4 via (possibly) other 6to4 capable remote
-gateways. As such, IPv6-in-IPv4-encapsulated packets are accepted from
-all v4-hosts.
diff -r 0eb38ed501f7 -r df16435e58fa net/6to4/MESSAGE
--- a/net/6to4/MESSAGE Sat Aug 23 13:31:14 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.3 2003/08/08 08:11:05 grant Exp $
-
-To configure a 6to4 tunnel, modify the configuration file
-${PKG_SYSCONFDIR}/6to4.conf for your system, then run
-
- ${RCD_SCRIPTS_DIR}/6to4 -v start
-
-You should then be able to ping6 www.kame.net.
-
-===========================================================================
diff -r 0eb38ed501f7 -r df16435e58fa net/6to4/Makefile
--- a/net/6to4/Makefile Sat Aug 23 13:31:14 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-# $NetBSD: Makefile,v 1.13 2003/08/08 08:11:05 grant Exp $
-#
-
-DISTNAME= 6to4-1.4
-WRKSRC= ${WRKDIR}
-CATEGORIES= net
-MASTER_SITES= # empty
-DISTFILES= # empty
-
-MAINTAINER= hubertf%NetBSD.org@localhost
-HOMEPAGE= http://www.NetBSD.org/packages/net/6to4/files/6to4.html
-COMMENT= Enables 6to4 IPv6 automatic tunnels
-
-USE_PERL5= YES
-USE_PKGINSTALL= YES
-
-# This pkg doesn't regard USE_INET6 (leave this comment for README-IPv6.html!)
-EXTRACT_ONLY= # empty
-NO_CHECKSUM= yes
-NO_CONFIGURE= yes
-
-CONF_FILES+= ${PREFIX}/share/examples/6to4/6to4.conf ${PKG_SYSCONFDIR}/6to4.conf
-
-do-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/6to4 > ${WRKSRC}/6to4
-
-do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/6to4
- ${INSTALL_SCRIPT} ${WRKSRC}/6to4 ${PREFIX}/sbin/6to4
- ${INSTALL_MAN} ${FILESDIR}/6to4.8 ${PREFIX}/man/man8
- ${INSTALL_DATA} ${FILESDIR}/6to4.html ${PREFIX}/share/doc/6to4.html
- ${INSTALL_DATA} ${FILESDIR}/6to4.conf ${PREFIX}/share/examples/6to4
-
-.include "../../mk/bsd.pkg.mk"
diff -r 0eb38ed501f7 -r df16435e58fa net/6to4/PLIST
--- a/net/6to4/PLIST Sat Aug 23 13:31:14 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-@comment $NetBSD: PLIST,v 1.2 2003/08/08 08:11:05 grant Exp $
-sbin/6to4
-share/doc/6to4.html
-share/examples/6to4/6to4.conf
-man/man8/6to4.8
-@dirrm share/examples/6to4
diff -r 0eb38ed501f7 -r df16435e58fa net/6to4/files/6to4
--- a/net/6to4/files/6to4 Sat Aug 23 13:31:14 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,157 +0,0 @@
-#!@LOCALBASE@/bin/perl
-#
-# Setup 6to4 IPv6, for NetBSD (and maybe others)
-#
-# (c) Copyright 2000-2002 Hubert Feyrer <hubert%feyrer.de@localhost>
-#
-
-$etcdir="@PKG_SYSCONFDIR@";
-#$etcdir="/usr/pkg/etc"; # debug
-
-require "$etcdir/6to4.conf";
-
-use Getopt::Std;
-
-###########################################################################
-sub run
-{
- local($str) = @_;
-
- if ($not) {
- print "$str\n";
- } else {
- if ($verbose) {
- print "$str\n";
- }
- system($str);
- }
-}
-
-###########################################################################
-
-#
-# Process options
-#
-getopts('nvh');
-
-$not = 1 if $opt_n;
-$verbose = 1 if $opt_v;
-
-if ($opt_h) {
- print "Usage: $0 [-n] [-v] {start | stop | rtadvd-start | rtadvd-stop}\n";
- exit 0;
-}
-
-# Make sure the interface exists
-system("ifconfig stf0 create >/dev/null 2>&1");
-
-#
-# Some sanity checks
-#
-if (`ifconfig -a | grep fe80: | wc -l` <= 0 or
- `ifconfig -a | grep stf | wc -l` <= 0) {
- die "$0: It seems your kernel does not support IPv6 or 6to4 (stf).\n".
- "Add 'options INET6' and 'pseudo-device stf 1' to your kernel and retry!\n";
-}
-
-#
-# Figure out IP#s etc.
-#
-$localadr4 = `ifconfig $out_if inet | grep inet | grep -v alias`;
-$localadr4 =~ s/^.*inet\s*//;
-$localadr4 =~ s/\s.*$//;
-chomp($localadr4);
-
-@l4c = split('\.', $localadr4);
-$prefix = sprintf("2002:%02x%02x:%02x%02x", @l4c[0..3]);
-
-$localadr6 = sprintf("$prefix:%04x", $v6_net);
-
-if ($peer eq "6to4-anycast") {
- # magic values from rfc 3068
- $remoteadr4 = "192.88.99.1";
- $remoteadr6 = "2002:c058:6301::";
-} else {
- if ($remoteadr4 !~ /^[0-9.]+$/ ) {
- chomp($remoteadr4 = `host $peer`);
- $remoteadr4 =~ s/^.*address //;
-
- print "resolving IPv4 address of peer $peer\n"
- if $verbose;
- } else {
- print "IPv4 address of peer given numerically, no resolving needed\n"
- if $verbose;
- }
-
- if ($remoteadr6 !~ /^[0-9a-fA-Z:]+$/ ) {
- chomp($remoteadr6 = `host -t AAAA $peer`);
- $remoteadr6 =~ s/^.*address //;
-
- print "resolving IPv6 address of peer $peer\n"
- if $verbose;
- } else {
- print "IPv6 address of peer given numerically, no resolving needed\n"
- if $verbose;
- }
-}
-
-
-if ($verbose) {
- print "remote v4 address: $remoteadr4\n";
- print "local v4 address: $localadr4\n";
- print "remote v6 address: $remoteadr6\n";
- print "local v6 address: $localadr6:$hostbits6\n";
- print "\n";
-}
-
-
-#
-# Handle commands
-#
-
-# stop:
-if ( $ARGV[0] eq "stop" ) {
- run("ifconfig stf0 down");
- $cmd="ifconfig stf0 inet6 " .
- "| grep inet6 " .
- "| sed -e 's/inet6//' " .
- "-e 's/prefix.*//g' " .
- "-e 's/^[ ]*//' " .
- "-e 's/[ ]*\$//'";
- foreach $ip ( split('\s+', `$cmd`)) {
- run("ifconfig stf0 inet6 -alias $ip");
- }
- run("route delete -inet6 default");
-}
-
-# start:
-if ( $ARGV[0] eq "start" ) {
- run("ifconfig stf0 inet6 $localadr6:$hostbits6 prefixlen $v6_prefixlen alias");
- run("route add -inet6 default $remoteadr6");
- if ($in_if ne "") {
- run("ifconfig $in_if inet6 $prefix:$v6_innernet:$hostbits6");
- }
-}
-
-# rtadvd-stop:
-if ($ARGV[0] eq "rtadvd-stop" or $ARGV[0] eq "stop-rtadvd") {
- if ( -f "/var/run/rtadvd.pid" ) {
- $pid = `cat /var/run/rtadvd.pid`;
- run ("kill -TERM $pid");
- run ("rm -f /var/run/rtadvd.pid");
- run ("rm -f /var/run/6to4-rtadvd.conf.$pid");
- } else {
- print "no rtadvd running!\n";
- }
-}
-
-# rtadvd-start:
-if ($ARGV[0] eq "rtadvd-start" or $ARGV[0] eq "start-rtadvd" ) {
- if ( -f "/var/run/rtadvd.pid" ) {
- print "rtadvd already running!\n";
- } else {
- run("sysctl -w net.inet6.ip6.forwarding=1");
- run("sysctl -w net.inet6.ip6.accept_rtadv=0");
- run("rtadvd $in_if");
- }
-}
diff -r 0eb38ed501f7 -r df16435e58fa net/6to4/files/6to4.8
--- a/net/6to4/files/6to4.8 Sat Aug 23 13:31:14 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,211 +0,0 @@
-.\" $NetBSD: 6to4.8,v 1.8 2002/09/25 00:03:39 wiz Exp $
-.Dd July 3, 2002
-.Dt 6TO4 8
-.Os
-.Sh NAME
-.Nm 6to4
-.Nd setup automatic 6to4 IPv6 tunnelling
-.Sh SYNOPSIS
-.Nm
-.Op Fl vn
-.Ar command
-.Sh DESCRIPTION
-The
-.Nm
-script can be used to setup IPv6 on your home machine and
-network for exploring IPv6 without any registrations. 6to4 is a
-mechanism by which your IPv6 address(es) are derived from an assigned
-IPv4 address, and which involves automatic tunnelling to one or more
-remove 6to4 hubs, which will then forward your v6 packets on the 6bone
-etc. Replies are routed back to you over IPv4 via (possibly) other
-6to4 capable remote gateways. As such, IPv6-in-IPv4-encapsulated
-packets are accepted from all v4-hosts.
-.Pp
-From your (single) IPv4 address, you get a whole IPv6 /48 network,
-which allows you to split your network in 2^16 subnets, with 2^64
-hosts each. You need to setup routing for your internal network
-properly, help is provided for setting up the border router here.
-.Pp
-This script takes the burden to calculate your IPv6 address from
-existing IPv4 address and runs the commands to setup (and tear down)
-automatic 6to4 IPv6 tunnelling. In a seperate step, router
-advertisement for the inside network can be started and stopped.
-.Pp
-Possible options are:
-.Bl -tag -width xxx
-.It Fl n
-Do not. Only print the commands that would be run, but do not execute
-them.
-.It Fl v
-Verbose operation. Print the commands that are about to be run, before
-running them. Displays some additional information.
-.It Fl h
-Show usage.
-.El
-.Pp
-Possible commands are:
-.Bl -tag -width rtadvd-start
-.It Sy start
-Configure 6to4 IPv6. The
-.Xr stf 4
-interface is configured, and a default route to a remote 6to4
-gateway is established. In addition, the internal
-network interface is assigned an address.
-.It Sy stop
-Stops 6to4 IPv6. All addresses are removed from the
-.Xr stf 4
-device, and the default route is removed.
-.It Sy rtadvd-start
-Starts router advertizement and IPv6 packet forwarding,
-turning the machine into a IPv6 router.
Home |
Main Index |
Thread Index |
Old Index