summaryrefslogtreecommitdiff
path: root/net/hf6to4
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2004-01-08 12:59:26 +0000
committerhubertf <hubertf@pkgsrc.org>2004-01-08 12:59:26 +0000
commit711682ca7b2fe3c9b2ef3505f38840457b95c7ca (patch)
treec187cc19675ab4ffa7456265f4ddd8764909bff6 /net/hf6to4
parent9f0e69e0341034f2f6e574564538f0ebad612fc5 (diff)
downloadpkgsrc-711682ca7b2fe3c9b2ef3505f38840457b95c7ca.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/MESSAGE4
-rw-r--r--net/hf6to4/Makefile4
-rwxr-xr-xnet/hf6to4/files/hf6to43
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`