diff options
author | hubertf <hubertf@pkgsrc.org> | 2004-01-08 12:59:26 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2004-01-08 12:59:26 +0000 |
commit | e929ebee3097fae6ca26b92f06a662253fe60936 (patch) | |
tree | c187cc19675ab4ffa7456265f4ddd8764909bff6 /net/hf6to4 | |
parent | ca8cab7ffa2223989ef7cf43220c936cf85b83ff (diff) | |
download | pkgsrc-e929ebee3097fae6ca26b92f06a662253fe60936.tar.gz |
When using an (v4) aliases interface, use only the first IP.
Patch contributed by Gregor Surmann <admin@sinuspl.net>
Diffstat (limited to 'net/hf6to4')
-rw-r--r-- | net/hf6to4/MESSAGE | 4 | ||||
-rw-r--r-- | net/hf6to4/Makefile | 4 | ||||
-rwxr-xr-x | net/hf6to4/files/hf6to4 | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/net/hf6to4/MESSAGE b/net/hf6to4/MESSAGE index 5d9d52d6c1e..69a9a1dade6 100644 --- a/net/hf6to4/MESSAGE +++ b/net/hf6to4/MESSAGE @@ -1,10 +1,10 @@ =========================================================================== -$NetBSD: MESSAGE,v 1.1.1.1 2003/08/23 13:30:35 hubertf Exp $ +$NetBSD: MESSAGE,v 1.2 2004/01/08 12:59:26 hubertf Exp $ To configure a 6to4 tunnel, modify the configuration file ${PKG_SYSCONFDIR}/hf6to4.conf for your system, then run - ${RCD_SCRIPTS_DIR}/hf6to4 -v start + ${PREFIX}/sbin/hf6to4 -v start You should then be able to ping6 www.kame.net. diff --git a/net/hf6to4/Makefile b/net/hf6to4/Makefile index 46a0e5cb683..92c53ee8cd5 100644 --- a/net/hf6to4/Makefile +++ b/net/hf6to4/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2003/09/16 13:05:57 hubertf Exp $ +# $NetBSD: Makefile,v 1.3 2004/01/08 12:59:26 hubertf Exp $ # -DISTNAME= hf6to4-1.1 +DISTNAME= hf6to4-1.2 WRKSRC= ${WRKDIR} CATEGORIES= net MASTER_SITES= # empty diff --git a/net/hf6to4/files/hf6to4 b/net/hf6to4/files/hf6to4 index 011b8276076..9f3d7e29ac3 100755 --- a/net/hf6to4/files/hf6to4 +++ b/net/hf6to4/files/hf6to4 @@ -100,7 +100,8 @@ fi localadr4=`ifconfig $out_if inet \ | grep inet \ | sed 's/^.*inet *//' \ - | sed 's/ .*$//'` + | sed 's/ .*$//' \ + | head -1` l4c=`echo $localadr4 | sed 's,\., ,g'` prefix=`printf "2002:%02x%02x:%02x%02x" $l4c` |