From root@cakebox.homeunix.net  Fri Mar 23 14:15:40 2007
Return-Path: <root@cakebox.homeunix.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7235116A4DE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Mar 2007 14:15:40 +0000 (UTC)
	(envelope-from root@cakebox.homeunix.net)
Received: from papendorf.biz (p15198536.pureserver.info [212.227.92.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 0ED3713C459
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Mar 2007 14:15:39 +0000 (UTC)
	(envelope-from root@cakebox.homeunix.net)
Received: from cakebox.homeunix.net (p54A00990.dip0.t-ipconnect.de [84.160.9.144])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by papendorf.biz (Postfix) with ESMTP id 73FEA83FA61
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 23 Mar 2007 14:47:56 +0100 (CET)
Received: by cakebox.homeunix.net (Postfix, from userid 0)
	id 6168D314D8C; Fri, 23 Mar 2007 14:42:31 +0100 (CET)
Message-Id: <20070323134232.6168D314D8C@cakebox.homeunix.net>
Date: Fri, 23 Mar 2007 14:42:31 +0100 (CET)
From: Nagilum <freebsd@nagilum.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: nstxd port
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         110716
>Category:       ports
>Synopsis:       [new port] net/nstxd: DNS tunnel server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 23 14:20:04 GMT 2007
>Closed-Date:    Fri Mar 23 17:53:34 GMT 2007
>Last-Modified:  Fri Mar 23 18:00:11 GMT 2007
>Originator:     Nagilum
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
private
>Environment:
System: FreeBSD cakebox.tis 6.2-STABLE FreeBSD 6.2-STABLE #5: Wed Jan 17 12:35:57 CET 2007 root@cakebox.tis:/usr/obj/export/src/sys/cakebox i386

Description:
	A port of the nstxd.
	I'll also do a port of the corresponding client once this one
	has been accepted.

Fix:

	Install the attached port :)

--- nstx-server.shar begins here ---
# 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:
#
#	nstx-server
#	nstx-server/Makefile
#	nstx-server/distinfo
#	nstx-server/pkg-descr
#	nstx-server/pkg-plist
#	nstx-server/pkg-message
#	nstx-server/files
#	nstx-server/files/nstxd.in
#
echo c - nstx-server
mkdir -p nstx-server > /dev/null 2>&1
echo x - nstx-server/Makefile
sed 's/^X//' >nstx-server/Makefile << 'END-of-nstx-server/Makefile'
X# New ports collection makefile for:   nstx-server
X# Date created:        1 April 2007
X# Whom:                nagilum
X#
X# $FreeBSD$
X#
X
XPORTNAME=	nstx-server
XPORTVERSION=	1.1b6
XCATEGORIES=	net
XMASTER_SITES=	http://www.nagilum.org/nstx/ http://ftp.debian.org/debian/pool/main/n/nstx/
X#DISTNAME=	nstx-1.1-beta6
XDISTFILES=	nstx_1.1-beta6.orig.tar.gz
X
XPATCHFILES=	nstx_1.1-beta6-4.diff.gz
XPATCH_SITES=	http://www.nagilum.org/nstx/ http://ftp.debian.org/debian/pool/main/n/nstx/
XPATCH_DIST_STRIP=	-p1
X
XMAINTAINER=	freebsd@nagilum.org
XCOMMENT=	DNS tunnel server
X
XMAN8=		nstxd.8
XMANCOMPRESSED=	yes
XUSE_RC_SUBR+=	nstxd
X
XWRKSRC=		${WRKDIR}/nstx-1.1-beta6
X
XALL_TARGET=	nstxd
XINSTALL_TARGET=	nstxd
X
Xpost-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/nstxd ${PREFIX}/sbin
X	${INSTALL_MAN} ${WRKSRC}/nstxd.8 ${PREFIX}/man/man8/
X.if !defined(NOPORTDOCS)
X	${MKDIR} -p ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
X	@${CAT} pkg-message
X.endif	#NOPORTDOCS
X
X.include <bsd.port.mk>
END-of-nstx-server/Makefile
echo x - nstx-server/distinfo
sed 's/^X//' >nstx-server/distinfo << 'END-of-nstx-server/distinfo'
XMD5 (nstx_1.1-beta6.orig.tar.gz) = 275abd75a856b07a798b1f2360088cf5
XSHA256 (nstx_1.1-beta6.orig.tar.gz) = 57a1962a66e9cb64fe70839d852c56cd253092260eab589a8173740b75b21450
XSIZE (nstx_1.1-beta6.orig.tar.gz) = 20458
XMD5 (nstx_1.1-beta6-4.diff.gz) = 6c071c5179bfa62917842dd32080c139
XSHA256 (nstx_1.1-beta6-4.diff.gz) = f2fc046cc08831599f2a95c874b7a028238c73e1f2cd4964ee86aa4c4307b8a8
XSIZE (nstx_1.1-beta6-4.diff.gz) = 7743
END-of-nstx-server/distinfo
echo x - nstx-server/pkg-descr
sed 's/^X//' >nstx-server/pkg-descr << 'END-of-nstx-server/pkg-descr'
Xnstxd allows a nstx client daemon to tunnel IP traffic through DNS requests
Xto the machine running nstxd.
XSee %%PREFIX%%/share/doc/nstxd/README for more!
END-of-nstx-server/pkg-descr
echo x - nstx-server/pkg-plist
sed 's/^X//' >nstx-server/pkg-plist << 'END-of-nstx-server/pkg-plist'
Xsbin/nstxd
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-nstx-server/pkg-plist
echo x - nstx-server/pkg-message
sed 's/^X//' >nstx-server/pkg-message << 'END-of-nstx-server/pkg-message'
XYou need to be able to specify this host in the NS record of a domainname to use this program.
XSee ${PREFIX}/share/doc/nstxd/README for details!
END-of-nstx-server/pkg-message
echo c - nstx-server/files
mkdir -p nstx-server/files > /dev/null 2>&1
echo x - nstx-server/files/nstxd.in
sed 's/^X//' >nstx-server/files/nstxd.in << 'END-of-nstx-server/files/nstxd.in'
X#!/bin/sh
X#
X# $Id$
X#
X
X# PROVIDE: nstxd
X# REQUIRE: DAEMON
X
X#
X# Add the following lines to /etc/rc.conf to enable nstxd:
X#
X#nstxd_domain="<your nstx domain>"
X#
X# You can disable automatic startup specifying:
X#
X#nstxd_enable="NO"
X#
X# See nstxd(8) for flags.
X#
X# The default behavour of this script is to bind nstxd to the IP 
X# of the interface with default route.
X# If you want it bind to the IP of a different interface you
X# specify this interface in /etc/rc.conf:
X#nstxd_interface="fxp0"
X# If you have static IPs or you want nstxd to listen only a
X# specific IP (e.g. 127.0.0.1) you can specify:
X#nstxd_ip="127.0.0.1"
X# in /etc/rc.conf
X# 
X# This script can also take care of the tun interface configuration
X# you simply put something like
X#nstxd_ifconfig="172.16.1.1 172.16.1.2"
X# in /etc/rc.conf to have this script automatically run
X# ifconfig with the above parameter on the device opened by nstxd.
X#
X. %%RC_SUBR%%
X
Xname=nstxd
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/nstxd
X
Xload_rc_config ${name}
X
X# set defaults
Xnstxd_interface=${nstxd_interface:-$(route get default|grep interface|cut -d: -f2)}
Xnstxd_ip=${nstxd_ip:-$(ifconfig ${nstxd_interface}|grep "inet "|xargs|cut -d' ' -f 2)}
X
Xif [ -n "${nstxd_domain}" ]
Xthen	nstxd_enable=${nstxd_enable:-"YES"}
Xelse	nstxd_enable="NO"
Xfi
X
Xnstxd_flags=${nstxd_flags:-"-D -i ${nstxd_ip} ${nstxd_domain}"}
X
Xtmpfile=$(mktemp /tmp/$(basename $0).XXXXXX) || exit 1
Xrun_rc_command "$1" 2>&1|tee ${tmpfile}
Xnstx_if=$(grep "using device" ${tmpfile}|cut -d' ' -f5)
Xrm -f ${tmpfile}
X
Xif [ -n "${nstxd_ifconfig}" -a -n "${nstx_if}" ]
Xthen	echo "Configuring nstx interface: ifconfig ${nstx_if} ${nstxd_ifconfig} up"
X	ifconfig ${nstx_if} ${nstxd_ifconfig}
Xfi
X
END-of-nstx-server/files/nstxd.in
exit
--- nstx-server.shar ends here ---


>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Fri Mar 23 15:29:31 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110716 

From: Alexander =?iso-8859-2?b?S/xobg==?= <alexander.kuehn@nagilum.de>
To: bug-followup@FreeBSD.org
Cc: freebsd@nagilum.org
Subject: Re: ports/110716: nstxd port
Date: Fri, 23 Mar 2007 15:52:18 +0100

 This message is in MIME format and has been PGP signed.
 
 --=_5unaxo6lfls0
 Content-Type: multipart/mixed;
 	boundary="=_61j0cifqxwkk"
 Content-Transfer-Encoding: 7bit
 
 This message is in MIME format.
 
 --=_61j0cifqxwkk
 Content-Type: text/plain;
 	charset=ISO-8859-2;
 	DelSp="Yes";
 	format="flowed"
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 
 Hi,
 I just realized the port name should be changed to not to contain a  
 "-" so I changed the port name to simply "nstxd" , the client port  
 will consequently named "nstxcd". Both would then also match the name  
 of the corresponding binary/manpage.
 Find attached the superceeding portversion.
 Kind regards,
 
 - --
 Alexander Kuehn
 
 Cell phone: +49 (0)177 6461165
 Cell fax:   +49 (0)177 6468001
 Tel @Home:  +49 (0)711 6336140
 Mail mailto:Alexander.Kuehn@nagilum.de
 
 
 ----------------------------------------------------------------
 cakebox.homeunix.net - all the machine one needs..
 
 
 --=_61j0cifqxwkk
 Content-Type: text/plain;
 	charset=UTF-8;
 	name="nstxd.shar"
 Content-Disposition: attachment;
 	filename="nstxd.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # 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:
 #
 #=09nstxd
 #=09nstxd/Makefile
 #=09nstxd/distinfo
 #=09nstxd/pkg-descr
 #=09nstxd/pkg-plist
 #=09nstxd/pkg-message
 #=09nstxd/files
 #=09nstxd/files/nstxd.in
 #
 echo c - nstxd
 mkdir -p nstxd > /dev/null 2>&1
 echo x - nstxd/Makefile
 sed 's/^X//' >nstxd/Makefile << 'END-of-nstxd/Makefile'
 X# New ports collection makefile for:   nstxd
 X# Date created:        1 April 2007
 X# Whom:                nagilum
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=3D=09nstxd
 XPORTVERSION=3D=091.1b6
 XCATEGORIES=3D=09net
 XMASTER_SITES=3D=09http://www.nagilum.org/nstx/ http://ftp.debian.org/debian=
 /pool/main/n/nstx/
 X#DISTNAME=3D=09nstx-1.1-beta6
 XDISTFILES=3D=09nstx_1.1-beta6.orig.tar.gz
 X
 XPATCHFILES=3D=09nstx_1.1-beta6-4.diff.gz
 XPATCH_SITES=3D=09http://www.nagilum.org/nstx/ http://ftp.debian.org/debian/=
 pool/main/n/nstx/
 XPATCH_DIST_STRIP=3D=09-p1
 X
 XMAINTAINER=3D=09freebsd@nagilum.org
 XCOMMENT=3D=09DNS tunnel server daemon
 X
 XMAN8=3D=09=09nstxd.8
 XUSE_RC_SUBR+=3D=09nstxd
 X
 XWRKSRC=3D=09=09${WRKDIR}/nstx-1.1-beta6
 X
 XALL_TARGET=3D=09nstxd
 XINSTALL_TARGET=3D=09nstxd
 X
 Xpost-install:
 X=09${INSTALL_PROGRAM} ${WRKSRC}/nstxd ${PREFIX}/sbin
 X=09${INSTALL_MAN} ${WRKSRC}/nstxd.8 ${PREFIX}/man/man8/
 X.if !defined(NOPORTDOCS)
 X=09${MKDIR} ${DOCSDIR}
 X=09${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
 X=09@${CAT} pkg-message
 X.endif=09#NOPORTDOCS
 X
 X.include <bsd.port.mk>
 END-of-nstxd/Makefile
 echo x - nstxd/distinfo
 sed 's/^X//' >nstxd/distinfo << 'END-of-nstxd/distinfo'
 XMD5 (nstx_1.1-beta6.orig.tar.gz) =3D 275abd75a856b07a798b1f2360088cf5
 XSHA256 (nstx_1.1-beta6.orig.tar.gz) =3D 57a1962a66e9cb64fe70839d852c56cd253=
 092260eab589a8173740b75b21450
 XSIZE (nstx_1.1-beta6.orig.tar.gz) =3D 20458
 XMD5 (nstx_1.1-beta6-4.diff.gz) =3D 6c071c5179bfa62917842dd32080c139
 XSHA256 (nstx_1.1-beta6-4.diff.gz) =3D f2fc046cc08831599f2a95c874b7a028238c7=
 3e1f2cd4964ee86aa4c4307b8a8
 XSIZE (nstx_1.1-beta6-4.diff.gz) =3D 7743
 END-of-nstxd/distinfo
 echo x - nstxd/pkg-descr
 sed 's/^X//' >nstxd/pkg-descr << 'END-of-nstxd/pkg-descr'
 Xnstxd allows a nstx client daemon to tunnel IP traffic through DNS requests
 Xto the machine running nstxd.
 XSee %%PREFIX%%/share/doc/nstxd/README for more!
 END-of-nstxd/pkg-descr
 echo x - nstxd/pkg-plist
 sed 's/^X//' >nstxd/pkg-plist << 'END-of-nstxd/pkg-plist'
 Xsbin/nstxd
 X%%PORTDOCS%%%%DOCSDIR%%/README
 X%%PORTDOCS%%@dirrm %%DOCSDIR%%
 END-of-nstxd/pkg-plist
 echo x - nstxd/pkg-message
 sed 's/^X//' >nstxd/pkg-message << 'END-of-nstxd/pkg-message'
 XYou need to be able to specify this host in the NS record of a domainname t=
 o use this program.
 XSee ${PREFIX}/share/doc/nstxd/README for details!
 END-of-nstxd/pkg-message
 echo c - nstxd/files
 mkdir -p nstxd/files > /dev/null 2>&1
 echo x - nstxd/files/nstxd.in
 sed 's/^X//' >nstxd/files/nstxd.in << 'END-of-nstxd/files/nstxd.in'
 X#!/bin/sh
 X#
 X# $Id$
 X#
 X
 X# PROVIDE: nstxd
 X# REQUIRE: DAEMON
 X
 X#
 X# Add the following lines to /etc/rc.conf to enable nstxd:
 X#
 X#nstxd_domain=3D"<your nstx domain>"
 X#
 X# You can disable automatic startup specifying:
 X#
 X#nstxd_enable=3D"NO"
 X#
 X# See nstxd(8) for flags.
 X#
 X# The default behavour of this script is to bind nstxd to the IP=20
 X# of the interface with default route.
 X# If you want it bind to the IP of a different interface you
 X# specify this interface in /etc/rc.conf:
 X#nstxd_interface=3D"fxp0"
 X# If you have static IPs or you want nstxd to listen only a
 X# specific IP (e.g. 127.0.0.1) you can specify:
 X#nstxd_ip=3D"127.0.0.1"
 X# in /etc/rc.conf
 X#=20
 X# This script can also take care of the tun interface configuration
 X# you simply put something like
 X#nstxd_ifconfig=3D"172.16.1.1 172.16.1.2"
 X# in /etc/rc.conf to have this script automatically run
 X# ifconfig with the above parameter on the device opened by nstxd.
 X#
 X. %%RC_SUBR%%
 X
 Xname=3Dnstxd
 Xrcvar=3D`set_rcvar`
 X
 Xcommand=3D%%PREFIX%%/sbin/nstxd
 X
 Xload_rc_config ${name}
 X
 X# set defaults
 Xnstxd_interface=3D${nstxd_interface:-$(route get default|grep interface|cut=
  -d: -f2)}
 Xnstxd_ip=3D${nstxd_ip:-$(ifconfig ${nstxd_interface}|grep "inet "|xargs|cut=
  -d' ' -f 2)}
 X
 Xif [ -n "${nstxd_domain}" ]
 Xthen=09nstxd_enable=3D${nstxd_enable:-"YES"}
 Xelse=09nstxd_enable=3D"NO"
 Xfi
 X
 Xnstxd_flags=3D${nstxd_flags:-"-D -i ${nstxd_ip} ${nstxd_domain}"}
 X
 Xtmpfile=3D$(mktemp /tmp/$(basename $0).XXXXXX) || exit 1
 Xrun_rc_command "$1" 2>&1|tee ${tmpfile}
 Xnstx_if=3D$(grep "using device" ${tmpfile}|cut -d' ' -f5)
 Xrm -f ${tmpfile}
 X
 Xif [ -n "${nstxd_ifconfig}" -a -n "${nstx_if}" ]
 Xthen=09echo "Configuring nstx interface: ifconfig ${nstx_if} ${nstxd_ifconf=
 ig} up"
 X=09ifconfig ${nstx_if} ${nstxd_ifconfig}
 Xfi
 X
 END-of-nstxd/files/nstxd.in
 exit
 
 
 --=_61j0cifqxwkk--
 
 --=_5unaxo6lfls0
 Content-Type: application/pgp-signature
 Content-Description: PGP Digital Signature
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iD8DBQBGA+mhAKWN2UY+sLwRAn8rAJ9qq/lMvB7G1WVQ+PdeWrKY30MFhwCgkJqJ
 54BrAZCIWeLTI2kPli+r3iA=
 =m5W3
 -----END PGP SIGNATURE-----
 
 --=_5unaxo6lfls0--

From: Alexander =?utf-8?b?S8O8aG4=?= <alexander.kuehn@nagilum.de>
To: bug-followup@FreeBSD.org
Cc: Martin Wilke <miwi@FreeBSD.org>, freebsd@nagilum.org
Subject: Re: ports/110716: nstxd port
Date: Fri, 23 Mar 2007 18:09:40 +0100

 This message is in MIME format and has been PGP signed.
 
 --=_5jgjodzvf6kg
 Content-Type: multipart/mixed;
 	boundary="=_3f476pdzwbms"
 Content-Transfer-Encoding: 7bit
 
 This message is in MIME format.
 
 --=_3f476pdzwbms
 Content-Type: text/plain;
 	charset=UTF-8;
 	DelSp="Yes";
 	format="flowed"
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 
 This version fixes:
 - the CVS placeholder ($FreeBSD$) in the rc-script
 
 Supersedes previous versions.
 Kind regards,
 Alex.
 
 ----- Message from miwi@FreeBSD.org ---------
      Date: Fri, 23 Mar 2007 16:54:16 +0100
      From: Martin Wilke <miwi@FreeBSD.org>
 Reply-To: Martin Wilke <miwi@FreeBSD.org>
   Subject: Re: ports/110716: nstxd port
        To: Alexander K=C3=BChn <alexander.kuehn@nagilum.de>
 
 
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA1
 >
 > On Fri, 23 Mar 2007 15:30:10 GMT
 > Alexander K=C3=BChn <alexander.kuehn@nagilum.de> wrote:
 >
 >
 > Stimme ich dir zu. Sollte renamed werde.
 >
 > 1 sache noch,
 >
 > $Id$ ist falsch im start script. sollte $FreeBSD$ sein.
 >
 > - - Martin
 >
 > |The following reply was made to PR ports/110716; it has been noted by
 > |GNATS.
 > |
 > |From: Alexander =3D?iso-8859-2?b?S/xobg=3D=3D?=3D <alexander.kuehn@nagilu=
 m.de>
 > |To: bug-followup@FreeBSD.org
 > |Cc: freebsd@nagilum.org
 > |Subject: Re: ports/110716: nstxd port
 > |Date: Fri, 23 Mar 2007 15:52:18 +0100
 > |
 > | This message is in MIME format and has been PGP signed.
 > |
 > | --=3D_5unaxo6lfls0
 > | Content-Type: multipart/mixed;
 > | =09boundary=3D"=3D_61j0cifqxwkk"
 > | Content-Transfer-Encoding: 7bit
 > |
 > | This message is in MIME format.
 > |
 > | --=3D_61j0cifqxwkk
 > | Content-Type: text/plain;
 > | =09charset=3DISO-8859-2;
 > | =09DelSp=3D"Yes";
 > | =09format=3D"flowed"
 > | Content-Disposition: inline
 > | Content-Transfer-Encoding: 7bit
 > |
 > | Hi,
 > | I just realized the port name should be changed to not to contain a
 > | "-" so I changed the port name to simply "nstxd" , the client port
 > | will consequently named "nstxcd". Both would then also match the
 > | name of the corresponding binary/manpage.
 > | Find attached the superceeding portversion.
 > | Kind regards,
 > |
 > | - --
 > | Alexander Kuehn
 > |
 > | Cell phone: +49 (0)177 6461165
 > | Cell fax:   +49 (0)177 6468001
 > | Tel @Home:  +49 (0)711 6336140
 > | Mail mailto:Alexander.Kuehn@nagilum.de
 > |
 > |
 > | ----------------------------------------------------------------
 > | cakebox.homeunix.net - all the machine one needs..
 > |
 > |
 > | --=3D_61j0cifqxwkk
 > | Content-Type: text/plain;
 > | =09charset=3DUTF-8;
 > | =09name=3D"nstxd.shar"
 > | Content-Disposition: attachment;
 > | =09filename=3D"nstxd.shar"
 > | Content-Transfer-Encoding: quoted-printable
 > |
 > | # 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:
 > | #
 > | #=3D09nstxd
 > | #=3D09nstxd/Makefile
 > | #=3D09nstxd/distinfo
 > | #=3D09nstxd/pkg-descr
 > | #=3D09nstxd/pkg-plist
 > | #=3D09nstxd/pkg-message
 > | #=3D09nstxd/files
 > | #=3D09nstxd/files/nstxd.in
 > | #
 > | echo c - nstxd
 > | mkdir -p nstxd > /dev/null 2>&1
 > | echo x - nstxd/Makefile
 > | sed 's/^X//' >nstxd/Makefile << 'END-of-nstxd/Makefile'
 > | X# New ports collection makefile for:   nstxd
 > | X# Date created:        1 April 2007
 > | X# Whom:                nagilum
 > | X#
 > | X# $FreeBSD$
 > | X#
 > | X
 > | XPORTNAME=3D3D=3D09nstxd
 > | XPORTVERSION=3D3D=3D091.1b6
 > | XCATEGORIES=3D3D=3D09net
 > | XMASTER_SITES=3D3D=3D09http://www.nagilum.org/nstx/
 > | http://ftp.debian.org/debian=3D /pool/main/n/nstx/
 > | X#DISTNAME=3D3D=3D09nstx-1.1-beta6
 > | XDISTFILES=3D3D=3D09nstx_1.1-beta6.orig.tar.gz
 > | X
 > | XPATCHFILES=3D3D=3D09nstx_1.1-beta6-4.diff.gz
 > | XPATCH_SITES=3D3D=3D09http://www.nagilum.org/nstx/
 > | http://ftp.debian.org/debian/=3D pool/main/n/nstx/
 > | XPATCH_DIST_STRIP=3D3D=3D09-p1
 > | X
 > | XMAINTAINER=3D3D=3D09freebsd@nagilum.org
 > | XCOMMENT=3D3D=3D09DNS tunnel server daemon
 > | X
 > | XMAN8=3D3D=3D09=3D09nstxd.8
 > | XUSE_RC_SUBR+=3D3D=3D09nstxd
 > | X
 > | XWRKSRC=3D3D=3D09=3D09${WRKDIR}/nstx-1.1-beta6
 > | X
 > | XALL_TARGET=3D3D=3D09nstxd
 > | XINSTALL_TARGET=3D3D=3D09nstxd
 > | X
 > | Xpost-install:
 > | X=3D09${INSTALL_PROGRAM} ${WRKSRC}/nstxd ${PREFIX}/sbin
 > | X=3D09${INSTALL_MAN} ${WRKSRC}/nstxd.8 ${PREFIX}/man/man8/
 > | X.if !defined(NOPORTDOCS)
 > | X=3D09${MKDIR} ${DOCSDIR}
 > | X=3D09${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
 > | X=3D09@${CAT} pkg-message
 > | X.endif=3D09#NOPORTDOCS
 > | X
 > | X.include <bsd.port.mk>
 > | END-of-nstxd/Makefile
 > | echo x - nstxd/distinfo
 > | sed 's/^X//' >nstxd/distinfo << 'END-of-nstxd/distinfo'
 > | XMD5 (nstx_1.1-beta6.orig.tar.gz) =3D3D 275abd75a856b07a798b1f2360088cf5
 > | XSHA256 (nstx_1.1-beta6.orig.tar.gz) =3D3D
 > | 57a1962a66e9cb64fe70839d852c56cd253=3D 092260eab589a8173740b75b21450
 > | XSIZE (nstx_1.1-beta6.orig.tar.gz) =3D3D 20458
 > | XMD5 (nstx_1.1-beta6-4.diff.gz) =3D3D 6c071c5179bfa62917842dd32080c139
 > | XSHA256 (nstx_1.1-beta6-4.diff.gz) =3D3D
 > | f2fc046cc08831599f2a95c874b7a028238c7=3D 3e1f2cd4964ee86aa4c4307b8a8
 > | XSIZE (nstx_1.1-beta6-4.diff.gz) =3D3D 7743
 > | END-of-nstxd/distinfo
 > | echo x - nstxd/pkg-descr
 > | sed 's/^X//' >nstxd/pkg-descr << 'END-of-nstxd/pkg-descr'
 > | Xnstxd allows a nstx client daemon to tunnel IP traffic through DNS
 > | requests Xto the machine running nstxd.
 > | XSee %%PREFIX%%/share/doc/nstxd/README for more!
 > | END-of-nstxd/pkg-descr
 > | echo x - nstxd/pkg-plist
 > | sed 's/^X//' >nstxd/pkg-plist << 'END-of-nstxd/pkg-plist'
 > | Xsbin/nstxd
 > | X%%PORTDOCS%%%%DOCSDIR%%/README
 > | X%%PORTDOCS%%@dirrm %%DOCSDIR%%
 > | END-of-nstxd/pkg-plist
 > | echo x - nstxd/pkg-message
 > | sed 's/^X//' >nstxd/pkg-message << 'END-of-nstxd/pkg-message'
 > | XYou need to be able to specify this host in the NS record of a
 > | domainname t=3D o use this program.
 > | XSee ${PREFIX}/share/doc/nstxd/README for details!
 > | END-of-nstxd/pkg-message
 > | echo c - nstxd/files
 > | mkdir -p nstxd/files > /dev/null 2>&1
 > | echo x - nstxd/files/nstxd.in
 > | sed 's/^X//' >nstxd/files/nstxd.in << 'END-of-nstxd/files/nstxd.in'
 > | X#!/bin/sh
 > | X#
 > | X# $Id$
 > | X#
 > | X
 > | X# PROVIDE: nstxd
 > | X# REQUIRE: DAEMON
 > | X
 > | X#
 > | X# Add the following lines to /etc/rc.conf to enable nstxd:
 > | X#
 > | X#nstxd_domain=3D3D"<your nstx domain>"
 > | X#
 > | X# You can disable automatic startup specifying:
 > | X#
 > | X#nstxd_enable=3D3D"NO"
 > | X#
 > | X# See nstxd(8) for flags.
 > | X#
 > | X# The default behavour of this script is to bind nstxd to the IP=3D20
 > | X# of the interface with default route.
 > | X# If you want it bind to the IP of a different interface you
 > | X# specify this interface in /etc/rc.conf:
 > | X#nstxd_interface=3D3D"fxp0"
 > | X# If you have static IPs or you want nstxd to listen only a
 > | X# specific IP (e.g. 127.0.0.1) you can specify:
 > | X#nstxd_ip=3D3D"127.0.0.1"
 > | X# in /etc/rc.conf
 > | X#=3D20
 > | X# This script can also take care of the tun interface configuration
 > | X# you simply put something like
 > | X#nstxd_ifconfig=3D3D"172.16.1.1 172.16.1.2"
 > | X# in /etc/rc.conf to have this script automatically run
 > | X# ifconfig with the above parameter on the device opened by nstxd.
 > | X#
 > | X. %%RC_SUBR%%
 > | X
 > | Xname=3D3Dnstxd
 > | Xrcvar=3D3D`set_rcvar`
 > | X
 > | Xcommand=3D3D%%PREFIX%%/sbin/nstxd
 > | X
 > | Xload_rc_config ${name}
 > | X
 > | X# set defaults
 > | Xnstxd_interface=3D3D${nstxd_interface:-$(route get default|grep
 > | interface|cut=3D -d: -f2)}
 > | Xnstxd_ip=3D3D${nstxd_ip:-$(ifconfig ${nstxd_interface}|grep "inet
 > | "|xargs|cut=3D -d' ' -f 2)}
 > | X
 > | Xif [ -n "${nstxd_domain}" ]
 > | Xthen=3D09nstxd_enable=3D3D${nstxd_enable:-"YES"}
 > | Xelse=3D09nstxd_enable=3D3D"NO"
 > | Xfi
 > | X
 > | Xnstxd_flags=3D3D${nstxd_flags:-"-D -i ${nstxd_ip} ${nstxd_domain}"}
 > | X
 > | Xtmpfile=3D3D$(mktemp /tmp/$(basename $0).XXXXXX) || exit 1
 > | Xrun_rc_command "$1" 2>&1|tee ${tmpfile}
 > | Xnstx_if=3D3D$(grep "using device" ${tmpfile}|cut -d' ' -f5)
 > | Xrm -f ${tmpfile}
 > | X
 > | Xif [ -n "${nstxd_ifconfig}" -a -n "${nstx_if}" ]
 > | Xthen=3D09echo "Configuring nstx interface: ifconfig ${nstx_if}
 > | ${nstxd_ifconf=3D ig} up"
 > | X=3D09ifconfig ${nstx_if} ${nstxd_ifconfig}
 > | Xfi
 > | X
 > | END-of-nstxd/files/nstxd.in
 > | exit
 > |
 > |
 > | --=3D_61j0cifqxwkk--
 > |
 > | --=3D_5unaxo6lfls0
 > | Content-Type: application/pgp-signature
 > | Content-Description: PGP Digital Signature
 > | Content-Disposition: inline
 > | Content-Transfer-Encoding: 7bit
 > |
 > | -----BEGIN PGP SIGNATURE-----
 > | Version: GnuPG v1.4.7 (FreeBSD)
 > |
 > | iD8DBQBGA+mhAKWN2UY+sLwRAn8rAJ9qq/lMvB7G1WVQ+PdeWrKY30MFhwCgkJqJ
 > | 54BrAZCIWeLTI2kPli+r3iA=3D
 > | =3Dm5W3
 > | -----END PGP SIGNATURE-----
 > |
 > | --=3D_5unaxo6lfls0--
 >
 >
 > - --
 > Martin Wilke=09=09| irc.unixfreunde.de #bsd
 > miwi@FreeBSD.org=09| miwi@unixfreunde.de
 > FreeBSD Committer=09| Power to Serve
 > -----BEGIN PGP SIGNATURE-----
 > Version: GnuPG v1.4.7 (FreeBSD)
 >
 > iD8DBQFGA/goFwpycAVoI1MRAjmcAKCj+cuaJlPjkfh/LSmm/Q3M0gMouQCgq/aL
 > eRKnpmtrV80bzYkKAcDEQuU=3D
 > =3DsMLq
 > -----END PGP SIGNATURE-----
 >
 
 
 ----- End message from miwi@FreeBSD.org -----
 
 
 
 
 - --
 Alexander Kuehn
 
 Cell phone: +49 (0)177 6461165
 Cell fax:   +49 (0)177 6468001
 Tel @Home:  +49 (0)711 6336140
 Mail mailto:Alexander.Kuehn@nagilum.de
 
 
 ----------------------------------------------------------------
 cakebox.homeunix.net - all the machine one needs..
 
 
 --=_3f476pdzwbms
 Content-Type: text/plain;
 	charset=UTF-8;
 	name="nstxd.shar"
 Content-Disposition: attachment;
 	filename="nstxd.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # 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:
 #
 #=09nstxd
 #=09nstxd/Makefile
 #=09nstxd/distinfo
 #=09nstxd/pkg-descr
 #=09nstxd/pkg-plist
 #=09nstxd/pkg-message
 #=09nstxd/files
 #=09nstxd/files/nstxd.in
 #
 echo c - nstxd
 mkdir -p nstxd > /dev/null 2>&1
 echo x - nstxd/Makefile
 sed 's/^X//' >nstxd/Makefile << 'END-of-nstxd/Makefile'
 X# New ports collection makefile for:   nstxd
 X# Date created:        1 April 2007
 X# Whom:                nagilum
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=3D=09nstxd
 XPORTVERSION=3D=091.1b6
 XCATEGORIES=3D=09net
 XMASTER_SITES=3D=09http://www.nagilum.org/nstx/ http://ftp.debian.org/debian=
 /pool/main/n/nstx/
 X#DISTNAME=3D=09nstx-1.1-beta6
 XDISTFILES=3D=09nstx_1.1-beta6.orig.tar.gz
 X
 XPATCHFILES=3D=09nstx_1.1-beta6-4.diff.gz
 XPATCH_SITES=3D=09http://www.nagilum.org/nstx/ http://ftp.debian.org/debian/=
 pool/main/n/nstx/
 XPATCH_DIST_STRIP=3D=09-p1
 X
 XMAINTAINER=3D=09freebsd@nagilum.org
 XCOMMENT=3D=09DNS tunnel server daemon
 X
 XMAN8=3D=09=09nstxd.8
 XUSE_RC_SUBR+=3D=09nstxd
 X
 XWRKSRC=3D=09=09${WRKDIR}/nstx-1.1-beta6
 X
 XALL_TARGET=3D=09nstxd
 XINSTALL_TARGET=3D=09nstxd
 X
 Xpost-install:
 X=09${INSTALL_PROGRAM} ${WRKSRC}/nstxd ${PREFIX}/sbin
 X=09${INSTALL_MAN} ${WRKSRC}/nstxd.8 ${PREFIX}/man/man8/
 X.if !defined(NOPORTDOCS)
 X=09${MKDIR} ${DOCSDIR}
 X=09${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
 X=09@${CAT} pkg-message
 X.endif=09#NOPORTDOCS
 X
 X.include <bsd.port.mk>
 END-of-nstxd/Makefile
 echo x - nstxd/distinfo
 sed 's/^X//' >nstxd/distinfo << 'END-of-nstxd/distinfo'
 XMD5 (nstx_1.1-beta6.orig.tar.gz) =3D 275abd75a856b07a798b1f2360088cf5
 XSHA256 (nstx_1.1-beta6.orig.tar.gz) =3D 57a1962a66e9cb64fe70839d852c56cd253=
 092260eab589a8173740b75b21450
 XSIZE (nstx_1.1-beta6.orig.tar.gz) =3D 20458
 XMD5 (nstx_1.1-beta6-4.diff.gz) =3D 6c071c5179bfa62917842dd32080c139
 XSHA256 (nstx_1.1-beta6-4.diff.gz) =3D f2fc046cc08831599f2a95c874b7a028238c7=
 3e1f2cd4964ee86aa4c4307b8a8
 XSIZE (nstx_1.1-beta6-4.diff.gz) =3D 7743
 END-of-nstxd/distinfo
 echo x - nstxd/pkg-descr
 sed 's/^X//' >nstxd/pkg-descr << 'END-of-nstxd/pkg-descr'
 Xnstxd allows a nstx client daemon to tunnel IP traffic through DNS requests
 Xto the machine running nstxd.
 XSee %%PREFIX%%/share/doc/nstxd/README for more!
 END-of-nstxd/pkg-descr
 echo x - nstxd/pkg-plist
 sed 's/^X//' >nstxd/pkg-plist << 'END-of-nstxd/pkg-plist'
 Xsbin/nstxd
 X%%PORTDOCS%%%%DOCSDIR%%/README
 X%%PORTDOCS%%@dirrm %%DOCSDIR%%
 END-of-nstxd/pkg-plist
 echo x - nstxd/pkg-message
 sed 's/^X//' >nstxd/pkg-message << 'END-of-nstxd/pkg-message'
 XYou need to be able to specify this host in the NS record of a domainname t=
 o use this program.
 XSee ${PREFIX}/share/doc/nstxd/README for details!
 END-of-nstxd/pkg-message
 echo c - nstxd/files
 mkdir -p nstxd/files > /dev/null 2>&1
 echo x - nstxd/files/nstxd.in
 sed 's/^X//' >nstxd/files/nstxd.in << 'END-of-nstxd/files/nstxd.in'
 X#!/bin/sh
 X#
 X# $FreeBSD$
 X#
 X
 X# PROVIDE: nstxd
 X# REQUIRE: DAEMON
 X
 X#
 X# Add the following lines to /etc/rc.conf to enable nstxd:
 X#
 X#nstxd_domain=3D"<your nstx domain>"
 X#
 X# You can disable automatic startup specifying:
 X#
 X#nstxd_enable=3D"NO"
 X#
 X# See nstxd(8) for flags.
 X#
 X# The default behavour of this script is to bind nstxd to the IP=20
 X# of the interface with default route.
 X# If you want it bind to the IP of a different interface you
 X# specify this interface in /etc/rc.conf:
 X#nstxd_interface=3D"fxp0"
 X# If you have static IPs or you want nstxd to listen only a
 X# specific IP (e.g. 127.0.0.1) you can specify:
 X#nstxd_ip=3D"127.0.0.1"
 X# in /etc/rc.conf
 X#=20
 X# This script can also take care of the tun interface configuration
 X# you simply put something like
 X#nstxd_ifconfig=3D"172.16.1.1 172.16.1.2"
 X# in /etc/rc.conf to have this script automatically run
 X# ifconfig with the above parameter on the device opened by nstxd.
 X#
 X. %%RC_SUBR%%
 X
 Xname=3Dnstxd
 Xrcvar=3D`set_rcvar`
 X
 Xcommand=3D%%PREFIX%%/sbin/nstxd
 X
 Xload_rc_config ${name}
 X
 X# set defaults
 Xnstxd_interface=3D${nstxd_interface:-$(route get default|grep interface|cut=
  -d: -f2)}
 Xnstxd_ip=3D${nstxd_ip:-$(ifconfig ${nstxd_interface}|grep "inet "|xargs|cut=
  -d' ' -f 2)}
 X
 Xif [ -n "${nstxd_domain}" ]
 Xthen=09nstxd_enable=3D${nstxd_enable:-"YES"}
 Xelse=09nstxd_enable=3D"NO"
 Xfi
 X
 Xnstxd_flags=3D${nstxd_flags:-"-D -i ${nstxd_ip} ${nstxd_domain}"}
 X
 Xtmpfile=3D$(mktemp /tmp/$(basename $0).XXXXXX) || exit 1
 Xrun_rc_command "$1" 2>&1|tee ${tmpfile}
 Xnstx_if=3D$(grep "using device" ${tmpfile}|cut -d' ' -f5)
 Xrm -f ${tmpfile}
 X
 Xif [ -n "${nstxd_ifconfig}" -a -n "${nstx_if}" ]
 Xthen=09echo "Configuring nstx interface: ifconfig ${nstx_if} ${nstxd_ifconf=
 ig} up"
 X=09ifconfig ${nstx_if} ${nstxd_ifconfig}
 Xfi
 X
 END-of-nstxd/files/nstxd.in
 exit
 
 
 --=_3f476pdzwbms--
 
 --=_5jgjodzvf6kg
 Content-Type: application/pgp-signature
 Content-Description: PGP Digital Signature
 Content-Disposition: inline
 Content-Transfer-Encoding: 7bit
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iD8DBQBGBAnSAKWN2UY+sLwRApLlAJkBG7YnUvT+jVykI41VZfakBN69ZwCcCLBJ
 g6pIoEtmr9lGNfu5tcZTPRY=
 =x+QJ
 -----END PGP SIGNATURE-----
 
 --=_5jgjodzvf6kg--
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Fri Mar 23 17:53:32 UTC 2007 
State-Changed-Why:  
New port added. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=110716 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/110716: commit references a PR
Date: Fri, 23 Mar 2007 17:53:45 +0000 (UTC)

 miwi        2007-03-23 17:53:36 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net                  Makefile 
   Added files:
     net/nstxd            Makefile distinfo pkg-descr pkg-message 
                          pkg-plist 
     net/nstxd/files      nstxd.in 
   Log:
   nstxd allows a nstx client daemon to tunnel IP traffic through DNS requests
   to the machine running nstxd.
   
   PR:             ports/110716
   Submitted by:   nagilum
   
   Revision  Changes    Path
   1.1834    +1 -0      ports/net/Makefile
   1.1       +40 -0     ports/net/nstxd/Makefile (new)
   1.1       +6 -0      ports/net/nstxd/distinfo (new)
   1.1       +65 -0     ports/net/nstxd/files/nstxd.in (new)
   1.1       +3 -0      ports/net/nstxd/pkg-descr (new)
   1.1       +2 -0      ports/net/nstxd/pkg-message (new)
   1.1       +3 -0      ports/net/nstxd/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
