Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  3 Jul 2002 15:30:21 +0900 (JST)
From:      Kimura Fuyuki <fuyuki@hadaly.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40137: New port: net/6to4 - enables 6to4 tunnels
Message-ID:  <20020703063021.7729D549F@hadaly.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         40137
>Category:       ports
>Synopsis:       New port: net/6to4 - enables 6to4 tunnels
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 02 23:40:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 4.6-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD hadaly.dyndns.org 4.6-RELEASE-p1 FreeBSD 4.6-RELEASE-p1 #0: Fri Jun 28 12:55:27 JST 2002 root@hadaly.dyndns.org:/sack/tmp/obj/pub/src/sys/NS i386


	
>Description:
This port is totally snipped from NetBSD's pkgsrc.

See http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/6to4/
	
>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	6to4
#	6to4/distinfo
#	6to4/Makefile
#	6to4/pkg-comment
#	6to4/pkg-plist
#	6to4/pkg-descr
#	6to4/pkg-message
#
echo c - 6to4
mkdir -p 6to4 > /dev/null 2>&1
echo x - 6to4/distinfo
sed 's/^X//' >6to4/distinfo << 'END-of-6to4/distinfo'
XMD5 (6to4/6to4?rev=1.7&content-type=text%2fplain) = 97d81c3cbc6c026af31c9764e5c74d78
XMD5 (6to4/6to4.8?rev=1.5&content-type=text%2fplain) = 50d63c1abd2db188825eae488cac6acc
XMD5 (6to4/6to4.conf?rev=1.2&content-type=text%2fplain) = 9dd3bde583c529dd6787f378f7b99594
END-of-6to4/distinfo
echo x - 6to4/Makefile
sed 's/^X//' >6to4/Makefile << 'END-of-6to4/Makefile'
X# New ports collection makefile for:   6to4
X# Date created:                3 July 2002
X# Whom:                        Kimura Fuyuki <fuyuki@hadaly.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	6to4
XPORTVERSION=	1.2
XCATEGORIES=	net ipv6
XMASTER_SITES=	http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/pkgsrc/net/6to4/files/
XDISTFILES=	6to4\?rev=1.7\&content-type=text%2fplain \
X		6to4.8\?rev=1.5\&content-type=text%2fplain \
X		6to4.conf\?rev=1.2\&content-type=text%2fplain
XDIST_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	fuyuki@hadaly.org
X
XUSE_PERL5=	yes
XNO_BUILD=	yes
X
XMAN8=		6to4.8
X
Xdo-extract:
X	${MKDIR} ${WRKSRC}
X.for i in ${DISTFILES}
X	${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}/${i:C/\?.*$//}
X.endfor
X
Xdo-patch:
X	${PERL} -pi -e 's|\@LOCALBASE\@/bin/perl|${PERL}|; \
X		s|\@PREFIX\@|${PREFIX}|' ${WRKSRC}/6to4
X	${PERL} -pi -e 's|/usr/pkg|${PREFIX}|; \
X		s|ip6mode=autohost|ipv6_gateway_enable="NO"|' ${WRKSRC}/6to4.8
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/6to4 ${PREFIX}/sbin
X	${INSTALL_MAN} ${WRKSRC}/6to4.8 ${PREFIX}/man/man8
X	${INSTALL_DATA} ${WRKSRC}/6to4.conf ${PREFIX}/etc/6to4.conf.sample
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-6to4/Makefile
echo x - 6to4/pkg-comment
sed 's/^X//' >6to4/pkg-comment << 'END-of-6to4/pkg-comment'
XEnables 6to4 IPv6 automatic tunnels
END-of-6to4/pkg-comment
echo x - 6to4/pkg-plist
sed 's/^X//' >6to4/pkg-plist << 'END-of-6to4/pkg-plist'
Xsbin/6to4
Xetc/6to4.conf.sample
END-of-6to4/pkg-plist
echo x - 6to4/pkg-descr
sed 's/^X//' >6to4/pkg-descr << 'END-of-6to4/pkg-descr'
XThe 6to4 script can be used to setup IPv6 on your home machine and net-
Xwork for exploring IPv6 without any registrations. 6to4 is a mechanism by
Xwhich your IPv6 address(es) are derived from an assigned IPv4 address,
Xand which involves automatic tunnelling to one or more remove 6to4 hubs,
Xwhich will then forward your v6 packets on the 6bone etc. Replies are
Xrouted back to you over IPv4 via (possibly) other 6to4 capable remote
Xgateways. As such, IPv6-in-IPv4-encapsulated packets are accepted from
Xall v4-hosts.
X
XWWW: http://www.netbsd.org/packages/net/6to4/files/6to4.html
END-of-6to4/pkg-descr
echo x - 6to4/pkg-message
sed 's/^X//' >6to4/pkg-message << 'END-of-6to4/pkg-message'
X===========================================================================
X
XTo configure this package, adjust ${PREFIX}/etc/6to4.conf from
X${PREFIX}/etc/6to4.conf.sample, then start "6to4 -v start". 
XYou should be able to "ping6 www.kame.net" after that.
X
X===========================================================================
END-of-6to4/pkg-message
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020703063021.7729D549F>