Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 14:24:56 +0200 (CEST)
From:      Michael Scholz <mike@fth-devel.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/134985: Update port: net/gateway6 MASTER_SITES update
Message-ID:  <200905271224.n4RCOuA1016506@pumpkin.fth-devel.net>
Resent-Message-ID: <200905271230.n4RCU2bS089007@freefall.freebsd.org>

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

>Number:         134985
>Category:       ports
>Synopsis:       Update port: net/gateway6 MASTER_SITES update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 27 12:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Michael Scholz
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD pumpkin.fth-devel.net 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat May 23 05:07:17 CEST 2009 root@pumpkin.fth-devel.net:/usr/obj/usr/src/sys/PUMPKIN i386
>Description:
Update of MASTER_SITE variable.
>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:
#
#	gateway6
#	gateway6/files
#	gateway6/files/pkg-message.in
#	gateway6/files/patch-src.lib.config.c
#	gateway6/files/patch5-template.freebsd.sh
#	gateway6/files/gateway6.sh.in
#	gateway6/files/patch-Mk.mk-freebsd.mk
#	gateway6/files/patch-platform.freebsd.tsp_local.c
#	gateway6/pkg-plist
#	gateway6/pkg-descr
#	gateway6/distinfo
#	gateway6/Makefile
#
echo c - gateway6
mkdir -p gateway6 > /dev/null 2>&1
echo c - gateway6/files
mkdir -p gateway6/files > /dev/null 2>&1
echo x - gateway6/files/pkg-message.in
sed 's/^X//' >gateway6/files/pkg-message.in << '57b6523945d5a1a8d964f75692566655'
XNow that the package is installed, please finish it with the following steps:
X
X- Check the values of %%PREFIX%%/etc/gw6c.conf. If you have registered at
X  the website, fill in your userid and password there.
X- Run '%%PREFIX%%/etc/rc.d/gateway6 start' to start the tunnel.
X- Try to ping a IPv6 host, for example: ping6 www.jp.freebsd.org
X
XNet/gateway6 supports rc.subr.
XPlease add 'gateway6_enable="YES"' to your /etc/rc.conf to make it
Xstart autoamtically at startup.
X
XWWW: http://www.go6.net/
57b6523945d5a1a8d964f75692566655
echo x - gateway6/files/patch-src.lib.config.c
sed 's/^X//' >gateway6/files/patch-src.lib.config.c << 'a57b2a0f2021988a234710bc3f6ed452'
X--- src/lib/config.c.orig	2007-05-07 20:55:25.000000000 +0200
X+++ src/lib/config.c	2007-07-12 00:10:55.000000000 +0200
X@@ -274,7 +274,7 @@
X   int status = NO_ERROR;
X   struct in_addr addr;
X   struct in6_addr addr6;
X-  const char* cszTemplDir = "template";
X+  const char* cszTemplDir = "share/gateway6";
X 
X   // Hard-coded parameters. Not configurable anymore.
X   pConf->syslog = FALSE;
a57b2a0f2021988a234710bc3f6ed452
echo x - gateway6/files/patch5-template.freebsd.sh
sed 's/^X//' >gateway6/files/patch5-template.freebsd.sh << '45d1e47b63ef3c5c4b1f9fad9e56e37c'
X--- template/freebsd.sh.orig	2005-10-25 20:38:02.000000000 +0200
X+++ template/freebsd.sh	2007-07-11 23:33:20.000000000 +0200
X@@ -76,7 +76,7 @@
X Display 1 '--- Start of configuration script. ---'
X Display 1 "Script: " `basename $0`
X 
X-gifconfig=/usr/sbin/gifconfig
X+gifconfig=/sbin/ifconfig
X ifconfig=/sbin/ifconfig
X route=/sbin/route
X rtadvd=/usr/sbin/rtadvd
45d1e47b63ef3c5c4b1f9fad9e56e37c
echo x - gateway6/files/gateway6.sh.in
sed 's/^X//' >gateway6/files/gateway6.sh.in << 'f4c0c42155d3036c6d2c6765015a0f6e'
X#!/bin/sh
X#
X# $FreeBSD: ports/net/gateway6/files/gateway6.sh.in,v 1.2 2007/10/06 11:34:27 stefan Exp $
X#
X
X#
X# PROVIDE: gateway6
X# REQUIRE: FILESYSTEMS netif
X# KEYWORD: shutdown
X#
X
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable the IPv6 tunnel to Freenet6.net:
X#
X# gateway6_enable (bool): Set to NO by default.
X#                         Set it to YES to enable gateway6.
X# gateway6_flags (flags): Set to "" by default.
X#
X
X. %%RC_SUBR%%
X
Xname="gateway6"
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/bin/gw6c
Xrequired_files=%%PREFIX%%/etc/gw6c.conf
X
Xload_rc_config $name
X
X: ${gateway6_enable="NO"}
X: ${gateway6_flags=""}
X
Xrun_rc_command "$1"
f4c0c42155d3036c6d2c6765015a0f6e
echo x - gateway6/files/patch-Mk.mk-freebsd.mk
sed 's/^X//' >gateway6/files/patch-Mk.mk-freebsd.mk << '0cff968e00c2f33363b14f658ebd57fa'
X--- Mk/mk-freebsd.mk.orig	2006-09-23 01:06:20.000000000 +0200
X+++ Mk/mk-freebsd.mk	2007-07-12 17:58:04.000000000 +0200
X@@ -16,7 +16,7 @@
X install_bin=$(installdir)/bin
X install_etc=$(installdir)/etc
X install_lib=$(installdir)/lib
X-install_template=$(installdir)/template
X+install_template=$(installdir)/share/gateway6
X install_man=$(installdir)/man
X subdirs=src/net src/lib src/tsp src/xml platform/unix-common platform/freebsd template conf man
X ifname=gif0
0cff968e00c2f33363b14f658ebd57fa
echo x - gateway6/files/patch-platform.freebsd.tsp_local.c
sed 's/^X//' >gateway6/files/patch-platform.freebsd.tsp_local.c << '5eaa0611606927f5ec4acfd71ab28a46'
X--- platform/freebsd/tsp_local.c.orig	2007-04-25 21:31:31.000000000 +0200
X+++ platform/freebsd/tsp_local.c	2007-07-12 18:38:01.000000000 +0200
X@@ -53,11 +53,11 @@
X #include "tsp_tun.h"   /* freebsd's tun */
X 
X 
X-char *FileName  = "gw6c.conf";
X+char *FileName  = "/usr/local/etc/gw6c.conf";
X char *ScriptInterpretor = "/bin/sh";
X char *ScriptExtension = "sh";
X char *ScriptDir = NULL;
X-char *TspHomeDir = "/usr/local/etc/gw6";
X+char *TspHomeDir = "/usr/local";
X char DirSeparator = '/';
X 
X int RootUid = 0;
X@@ -77,17 +77,12 @@
X void
X tspSetEnv(char *Variable, char *Value, int Flag)
X {
X-	char *buf;
X 	if(Value) {
X-		int size=(strlen(Variable) + strlen(Value) + 2);
X-		if((buf=malloc(size)) == NULL) {
X+	       if(setenv(Variable, Value, Flag) == -1) {
X 			Display(LOG_LEVEL_3, ELError, "SetEnv", HEX_STR_NOT_ENOUGH_MEM);
X 			return;
X 		}
X-		snprintf(buf, size, "%s=%s", Variable, Value);
X-		putenv(buf);
X-		Display(LOG_LEVEL_3, ELNotice, "tspSetEnv", "%s", buf);
X-		free(buf);
X+	        Display(LOG_LEVEL_3, ELNotice, "tspSetEnv", "%s=%s", Variable, Value);
X 	}
X }
X 
5eaa0611606927f5ec4acfd71ab28a46
echo x - gateway6/pkg-plist
sed 's/^X//' >gateway6/pkg-plist << '3e15a2306bc771716c7c8ee148361d7a'
Xbin/gw6c
X@unexec if cmp -s %D/etc/gw6c.conf.sample %D/etc/gw6c.conf; then rm -f %D/etc/gw6c.conf; fi
Xetc/gw6c.conf.sample
X@exec if [ ! -f %D/etc/gw6c.conf ] ; then cp -p %D/%F %B/gw6c.conf; fi
X%%DATADIR%%/CLIENT-LICENSE.TXT
X%%DATADIR%%/GUI-LICENSE.TXT
X%%DATADIR%%/HEX_DC_0005_Gateway6_Client_Guide.pdf
X%%DATADIR%%/HEX_DC_0007_Gateway6_Client_Release_Notes.pdf
X%%DATADIR%%/INSTALL
X%%DATADIR%%/README
X%%DATADIR%%/checktunnel.sh
X%%DATADIR%%/freebsd.sh
X@dirrm %%DATADIR%%
X@dirrm %%EXAMPLESDIR%%
3e15a2306bc771716c7c8ee148361d7a
echo x - gateway6/pkg-descr
sed 's/^X//' >gateway6/pkg-descr << '641d68f1200e15f82809ec822f35a042'
XFrom README:
X
XTSP is a control protocol used to establish and maintain static 
Xtunnels. The Gateway6 Client is used on the host computer to connect 
Xto a tunnel broker using the TSP protocol and to get the information 
Xfor its tunnel. When it receives the information for the tunnel, the 
XGateway6 client creates the static tunnel on its operating system.
X
XThe Gateway6 Client code is mostly identical for all client platforms.
XHowever, creating the static tunnel is operating system dependent and 
Xis done by a script called by the Gateway6 Client. These scripts are 
Xlocated under the template directory in the Gateway6 Client 
Xinstallation directory.
X
XThe script executed by the Gateway6 Client to configure the tunnel 
Xinterface is customized for each type of supported operating system 
Xand takes care of all specifics for the target operating system. 
XOn Unix systems, it is a shell script. This separation of the binary 
Xand script enables fast and easy additions of new operating systems, 
Xas has been shown by the community contributions for many operating 
Xsystems.
X
XWWW: http://www.go6.net/
641d68f1200e15f82809ec822f35a042
echo x - gateway6/distinfo
sed 's/^X//' >gateway6/distinfo << 'dccbc40f9a119a94a6685dde0a61aa58'
XMD5 (gw6c-5_0-RELEASE-src.tar.gz) = 5dda7941133a199adf3453d105cecf5d
XSHA256 (gw6c-5_0-RELEASE-src.tar.gz) = 431e59a6590f0826f1cb34a6319bd69d024ca89e36f8578a2befe039a489e894
XSIZE (gw6c-5_0-RELEASE-src.tar.gz) = 2441593
dccbc40f9a119a94a6685dde0a61aa58
echo x - gateway6/Makefile
sed 's/^X//' >gateway6/Makefile << '109629e1aaf9358463cbb5c97f797e35'
X# New ports collection makefile for:   gateway6
X# Date created:        11 Jul 2007
X# Whom:                Michael Scholz (mike@fth-devel.net)
X#
X# $FreeBSD: ports/net/gateway6/Makefile,v 1.4 2008/08/23 16:21:13 lippe Exp $
X#
X
XPORTNAME=	gateway6
XPORTVERSION=	5.0
XPORTREVISION=	3
XCATEGORIES=	net ipv6
XMASTER_SITES=   http://www.go6.net/4105/file.asp?file_id=142&foo=/
XMASTER_SITES+=	http://fth.sourceforge.net/freenet6/
XMASTER_SITES+=	http://fth.host56.com/freenet6/
XDISTNAME=	gw6c-5_0-RELEASE-src
X
XMAINTAINER=	mike@fth-devel.net
XCOMMENT=	Gateway6 Tunnel Setup Protocol Client - Free IPv6 tunnel
X
XUSE_RC_SUBR=	gateway6.sh
XWRKSRC=		${WRKDIR}/tspc-advanced
X
XMAN8=		gw6c.8
XMAN5=		gw6c.conf.5
X
XPKGMESSAGE=	${WRKDIR}/pkg-message
XSUB_FILES=	gateway6.sh pkg-message
X
X.include <bsd.port.pre.mk>
X
XEXTRA_PATCHES=	${FILESDIR}/patch5-template.freebsd.sh
X
XMAKE_ARGS=	target=freebsd installdir=${PREFIX}
XGW6C_DATA=	CLIENT-LICENSE.TXT GUI-LICENSE.TXT INSTALL README
X
Xdo-install:
X	@${MKDIR} ${EXAMPLESDIR}
X	@${MKDIR} ${DATADIR}
X	@${INSTALL_PROGRAM} ${WRKSRC}/bin/gw6c ${PREFIX}/bin/gw6c
X	@${INSTALL_MAN} ${WRKSRC}/man/man8/gw6c.8 ${MAN8PREFIX}/man/man8
X	@${INSTALL_MAN} ${WRKSRC}/man/man5/gw6c.conf.5 ${MAN5PREFIX}/man/man5
X	@${INSTALL_SCRIPT} ${WRKSRC}/template/checktunnel.sh ${DATADIR}
X	@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd.sh ${DATADIR}
X	@${INSTALL_DATA} ${WRKSRC}/bin/gw6c.conf.sample ${PREFIX}/etc
X	@${INSTALL_DATA} ${WRKDIR}/HEX_DC_0005_Gateway6_Client_Guide.pdf ${DATADIR}
X	@${INSTALL_DATA} ${WRKDIR}/HEX_DC_0007_Gateway6_Client_Release_Notes.pdf ${DATADIR}
X
X.for f in ${GW6C_DATA}
X	@${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR}
X.endfor
X
Xpost-install:
X	@if [ ! -f ${PREFIX}/etc/gw6c.conf ]; then \
X		${CP} -p ${PREFIX}/etc/gw6c.conf.sample ${PREFIX}/etc/gw6c.conf ; \
X	fi
X	@${CAT} ${PKGMESSAGE}
X
Xpost-patch:
X	@${REINPLACE_CMD} \
X		-e "s|/installdir/bin|${PREFIX}/etc|g" \
X		${WRKSRC}/man/man8/gw6c.8
X
X	@${REINPLACE_CMD} \
X		-e "s|/usr/local/gw6c|${PREFIX}|g" \
X		-e "s|/install/dir/bin/gw6c.conf.sample|${EXAMPLESDIR}/gw6c.conf.sample|g" \
X		-e "s|/install/dir/bin/gw6c.conf|${PREFIX}/etc/gw6c.conf|g" \
X		-e "s|template=linux|template=freebsd|g" \
X		${WRKSRC}/man/man5/gw6c.conf.5
X
X.include <bsd.port.post.mk>
109629e1aaf9358463cbb5c97f797e35
exit

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



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