From nobody@FreeBSD.org  Wed Mar  7 00:35:58 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 288AF1065677
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 Mar 2012 00:35:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1722F8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 Mar 2012 00:35:58 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q270ZvOB085564
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 7 Mar 2012 00:35:57 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q270Zvp2085563;
	Wed, 7 Mar 2012 00:35:57 GMT
	(envelope-from nobody)
Message-Id: <201203070035.q270Zvp2085563@red.freebsd.org>
Date: Wed, 7 Mar 2012 00:35:57 GMT
From: Leo Vandewoestijne <freebsd@dns-lab.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         165798
>Category:       ports
>Synopsis:       New port: dns/knot high-performance auth-only DNS server by NIC-CZ
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    scheidell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 07 00:40:11 UTC 2012
>Closed-Date:    Sat Mar 17 13:07:49 UTC 2012
>Last-Modified:  Sat Mar 17 13:07:49 UTC 2012
>Originator:     Leo Vandewoestijne
>Release:        
>Organization:
DNS-Lab
>Environment:
>Description:
Knot DNS is a high-performance authoritative-only DNS server
which supports all key features of the domain name system
including zone transfers, dynamic updates and DNSSEC. 

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	knot
#	knot/Makefile
#	knot/distinfo
#	knot/pkg-descr
#	knot/pkg-plist
#	knot/files
#	knot/files/knot.in
#	knot/files/pkg-message.in
#
echo c - knot
mkdir -p knot > /dev/null 2>&1
echo x - knot/Makefile
sed 's/^X//' >knot/Makefile << '3203b152109646c6f5e90796ac0bdf67'
X# New ports collection makefile for:	knot
X# Date created:		29 February 2012
X# Whom:			Leo Vandewoestijne <freebsd@dns-lab.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	knot
XPORTVERSION=	1.0.0
XCATEGORIES=	dns ipv6
XMASTER_SITES=	http://public.nic.cz/files/knot-dns/ \
X		http://www.dns-lab.com/downloads/knot-dns/
X
XMAINTAINER=	freebsd@dns-lab.com
XCOMMENT=	Knot DNS is a high performance authoritative-only DNS server
X
XLICENSE=	GPLv3
X
XLIB_DEPENDS=	urcu:${PORTSDIR}/misc/userspace-rcu
XRUN_DEPENDS=	flex:${PORTSDIR}/textproc/flex
XBUILD_DEPENDS=	flex:${PORTSDIR}/textproc/flex
X
XHAS_CONFIGURE=	yes
X
XSUB_FILES=	pkg-message
X
XUSE_RC_SUBR=	knot
X
XMAN8=		knotc.8 knotd.8
X
XPORTDOCS=	AUTHORS ChangeLog CodingStyle COPYING INSTALL \
X		KNOWN_ISSUES NEWS README RELNOTES
X
X.if defined(WITH_X86_64)
X		CFLAGS+=		-fPIC
X		CONFIGURE_ARGS+=	--build amd64
X.endif
X
Xpost-install:
X		@if [ ! -d ${PREFIX}/etc/knot ]; then \
X			${MKDIR} ${PREFIX}/etc/knot ; \
X		fi
X		@if [ ! -f ${PREFIX}/etc/knot/knot.conf ]; then \
X			${INSTALL_DATA}	${WRKSRC}/samples/knot.min.conf \
X					${PREFIX}/etc/knot/knot.conf ; \
X		fi
X		@${INSTALL_DATA}	${WRKSRC}/samples/knot.full.conf \
X					${PREFIX}/etc/knot/knot.conf.sample
X		@${INSTALL_MAN} ${WRKSRC}/src/knotc.8 ${PREFIX}/man/man8
X		@${INSTALL_MAN} ${WRKSRC}/src/knotd.8 ${PREFIX}/man/man8
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
X.endfor
X.endif
X		@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
3203b152109646c6f5e90796ac0bdf67
echo x - knot/distinfo
sed 's/^X//' >knot/distinfo << '742facb9c5d11cb27765f8fb2ecafefc'
XSHA256 (knot-1.0.0.tar.gz) = ab947ff09655f44bd4106da65764810ff760b646b83e9b0939ee994f943372a6
XSIZE (knot-1.0.0.tar.gz) = 1050994
742facb9c5d11cb27765f8fb2ecafefc
echo x - knot/pkg-descr
sed 's/^X//' >knot/pkg-descr << 'dc7f1f6257e4decedf1a53393d489890'
XKnot DNS is a high-performance authoritative-only DNS server
Xwhich supports all key features of the domain name system
Xincluding zone transfers, dynamic updates and DNSSEC. 
X
XKey features:
X
X - Open source
X
X - High-performance, multi-threaded, and mostly
X   lock-free implementation which scales well on SMPs
X
X - Object-oriented design
X
X - Support for all important DNS protocols:
X     - Full and incremental zone transfers
X     - EDNS0 and DNSSEC extensions, including NSEC3
X     - NSID
X
X
XWWW:	http://www.knot-dns.cz/
dc7f1f6257e4decedf1a53393d489890
echo x - knot/pkg-plist
sed 's/^X//' >knot/pkg-plist << 'c3df6e6ec3e36cb90e9b7709347fcabf'
Xsbin/knotd
Xsbin/knotc
Xlibexec/knot-zcompile
Xlibexec/unittests
Xlibexec/unittests-libknot
Xlibexec/unittests-libknot-realdata
Xlibexec/unittests-xfr
Xlibexec/unittests-zcompile
Xetc/knot/knot.conf
Xetc/knot/knot.conf.sample
X@dirrmtry etc/knot
X@stopdaemon knotd
c3df6e6ec3e36cb90e9b7709347fcabf
echo c - knot/files
mkdir -p knot/files > /dev/null 2>&1
echo x - knot/files/knot.in
sed 's/^X//' >knot/files/knot.in << '3df27016debd363b59df3671936ed0d9'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: knot
X# REQUIRE: DAEMON
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf to enable knot:
X#
X# knot_enable="YES":	Set to NO by default.
X#			Set it to YES to enable knot.
X# knot_config="":	Set to %%PREFIX%%/etc/knot/knot.conf
X#			by default.
X
X. /etc/rc.subr
X
Xname=knot
Xrcvar=knot_enable
Xload_rc_config $name
X
X: ${knot_enable:="NO"}
X: ${knot_config="%%PREFIX%%/etc/knot/knot.conf"}
X
Xcommand=%%PREFIX%%/sbin/knotc
Xpidfile=/var/run/${name}.pid
Xprocname=$command
X
Xcommand_args="-c ${knot_config} -a start"
X
Xextra_commands="reload"
Xstart_precmd="${name}_precmd"
Xreload_cmd="${name}_reload"
Xstop_cmd="${name}_stop"
X
Xknot_precmd() {
X	echo "Compiling zone(s)..."
X	${command} -c ${knot_config} compile
X	}
Xknot_restart() {
X	echo "Restarting ${name}."
X	${command} -c ${knot_config} stop &&
X	${command} ${command_args}
X	}
Xknot_reload() {
X	echo "Reloading ${name}."
X	${command} -c ${knot_config} -a reload
X	}
Xknot_stop() {
X	echo "Stopping ${name}."
X	${command} -c ${knot_config} stop
X	}
X
Xrun_rc_command "$1"
3df27016debd363b59df3671936ed0d9
echo x - knot/files/pkg-message.in
sed 's/^X//' >knot/files/pkg-message.in << '98736ee981f09ea0e088a61ba7a6b755'
X
X####################################################################
X#
X# To start using Knot DNS, you should complete the following tasks:
X#
X# ----- configure --------------------------------------------------
X#
X  $EDITOR %%PREFIX%%/etc/knot/knot.conf       
X#
X# For all option have a look at the contents of
X# %%PREFIX%%/etc/knot/knot.conf.sample
X#
X# For example, under "system" you might like to add
X#    user "bind.bind";
X# to not have knotd run as root/wheel
X#
X# ----- prepare ----------------------------------------------------
X#
X  echo knot_enable=\"YES\" >> /etc/rc.conf
X#
X# ----- startup ----------------------------------------------------
X#
X  %%PREFIX%%/etc/rc.d/knot start
X#
X####################################################################
X
98736ee981f09ea0e088a61ba7a6b755
exit



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->scheidell 
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Sat Mar 10 13:07:35 UTC 2012 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165798 
Responsible-Changed-From-To: scheidell->crees 
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Sat Mar 10 13:12:52 UTC 2012 
Responsible-Changed-Why:  
crees@ wants his PRs (what happened to auto assign?) 

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

From: Hirohisa Yamaguchi <umq@ueo.co.jp>
To: crees@FreeBSD.ORG, freebsd@dns-lab.com
Cc: bug-followup@FreeBSD.ORG
Subject: Re: ports/165798: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
Date: Tue, 13 Mar 2012 00:23:11 +0900

 --pgp-sign-Multipart_Tue_Mar_13_00:23:10_2012-1
 Content-Type: multipart/mixed;
  boundary="Multipart_Tue_Mar_13_00:23:10_2012-1"
 
 --Multipart_Tue_Mar_13_00:23:10_2012-1
 Content-Type: text/plain; charset=US-ASCII
 
 Hi,
 
 The original shar seems to have several problems:
  1. misc/userspace-rcu is actually sysutils/userspace-rcu
  2. @stopdaemon in pkg-plist does not work
 
 I attach an updated skeleton based on submitter's one;
 modifying build dependencies and the rc script.
 
 | $ diff -NBrpuw dns/knot{.165798,} | diffstat
 |  Makefile      |   34 +++++++++++++++-------------------
 |  files/knot.in |   29 ++++++++++++++++++-----------
 |  pkg-plist     |   11 ++++++-----
 |  3 files changed, 39 insertions(+), 35 deletions(-)
 
 
 
 Regards,
 --
 
 	Hirohisa Yamaguchi
 	  umq@ueo.co.jp
 
 --Multipart_Tue_Mar_13_00:23:10_2012-1
 Content-Type: application/shar
 Content-Disposition: attachment; filename="dns_knot.shar"
 Content-Transfer-Encoding: 7bit
 
 # 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:
 #
 #	dns/knot
 #	dns/knot/pkg-plist
 #	dns/knot/pkg-descr
 #	dns/knot/Makefile
 #	dns/knot/distinfo
 #	dns/knot/files
 #	dns/knot/files/knot.in
 #	dns/knot/files/pkg-message.in
 #
 echo c - dns/knot
 mkdir -p dns/knot > /dev/null 2>&1
 echo x - dns/knot/pkg-plist
 sed 's/^X//' >dns/knot/pkg-plist << '37f7c1b63162d53680df4de6f19a9d5a'
 X@comment $FreeBSD$
 X@stopdaemon knot
 Xetc/knot/example.com.zone
 Xetc/knot/knot.sample.conf
 Xlibexec/knot-zcompile
 Xlibexec/unittests
 Xlibexec/unittests-libknot
 Xlibexec/unittests-libknot-realdata
 Xlibexec/unittests-xfr
 Xlibexec/unittests-zcompile
 Xsbin/knotc
 Xsbin/knotd
 X@dirrmtry etc/knot
 37f7c1b63162d53680df4de6f19a9d5a
 echo x - dns/knot/pkg-descr
 sed 's/^X//' >dns/knot/pkg-descr << '1a7bc414af869195ddd395e2208e12c0'
 XKnot DNS is a high-performance authoritative-only DNS server
 Xwhich supports all key features of the domain name system
 Xincluding zone transfers, dynamic updates and DNSSEC.
 X
 XKey features:
 X
 X - Open source
 X
 X - High-performance, multi-threaded, and mostly
 X   lock-free implementation which scales well on SMPs
 X
 X - Object-oriented design
 X
 X - Support for all important DNS protocols:
 X     - Full and incremental zone transfers
 X     - EDNS0 and DNSSEC extensions, including NSEC3
 X     - NSID
 X
 X
 XWWW:	http://www.knot-dns.cz/
 1a7bc414af869195ddd395e2208e12c0
 echo x - dns/knot/Makefile
 sed 's/^X//' >dns/knot/Makefile << '1b7b8a95e508d3f4d196f908073eb455'
 X# New ports collection makefile for:	knot
 X# Date created:		29 February 2012
 X# Whom:			Leo Vandewoestijne <freebsd@dns-lab.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	knot
 XPORTVERSION=	1.0.0
 XCATEGORIES=	dns ipv6
 XMASTER_SITES=	http://public.nic.cz/files/knot-dns/ \
 X		http://www.dns-lab.com/downloads/knot-dns/
 X
 XMAINTAINER=	freebsd@dns-lab.com
 XCOMMENT=	Knot DNS is a high performance authoritative-only DNS server
 X
 XLICENSE=	GPLv3
 XLICENSE_FILE=	${WRKSRC}/COPYING
 X
 XBUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison \
 X		flex:${PORTSDIR}/textproc/flex
 XLIB_DEPENDS=	urcu.1:${PORTSDIR}/sysutils/userspace-rcu
 X
 XCONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc/${PORTNAME}
 XGNU_CONFIGURE=	yes
 XUSE_AUTOTOOLS=	libtool
 XUSE_OPENSSL=	yes
 X
 XSUB_FILES=	pkg-message
 X
 XUSE_RC_SUBR=	knot
 X
 XMAN8=		knotc.8 knotd.8
 X
 XPORTDOCS=	AUTHORS COPYING ChangeLog CodingStyle INSTALL \
 X		KNOWN_ISSUES NEWS README RELNOTES
 XPORTEXAMPLES=	*.zone* *.conf
 X
 X.if defined(WITH_X86_64)
 X		CFLAGS+=		-fPIC
 X		CONFIGURE_ARGS+=	--build amd64
 X.endif
 X
 Xpost-install:
 X.if !defined(NOPORTDOCS)
 X	@${MKDIR} ${DOCSDIR}
 X	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
 X.endif
 X.if !defined(NOPORTEXAMPLES)
 X	@${MKDIR} ${EXAMPLESDIR}
 X	@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/samples/,} ${EXAMPLESDIR}/
 X.endif
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 1b7b8a95e508d3f4d196f908073eb455
 echo x - dns/knot/distinfo
 sed 's/^X//' >dns/knot/distinfo << 'c78ef0f65fcdd5ff5517e690fa8f08a6'
 XSHA256 (knot-1.0.0.tar.gz) = ab947ff09655f44bd4106da65764810ff760b646b83e9b0939ee994f943372a6
 XSIZE (knot-1.0.0.tar.gz) = 1050994
 c78ef0f65fcdd5ff5517e690fa8f08a6
 echo c - dns/knot/files
 mkdir -p dns/knot/files > /dev/null 2>&1
 echo x - dns/knot/files/knot.in
 sed 's/^X//' >dns/knot/files/knot.in << '630171dfbed3fc0066bbe3be3cefcb0b'
 X#!/bin/sh
 X#
 X# $FreeBSD$
 X#
 X# PROVIDE: knot
 X# REQUIRE: DAEMON
 X# REQUIRE: LOGIN
 X# KEYWORD: shutdown
 X#
 X# Add the following lines to /etc/rc.conf to enable knot:
 X#
 X# knot_enable="YES":	Set to NO by default.
 X#			Set it to YES to enable knot.
 X# knot_config="":	Set to %%PREFIX%%/etc/knot/knot.conf
 X#			by default.
 X
 X. /etc/rc.subr
 X
 Xname=knot
 Xrcvar=knot_enable
 Xload_rc_config ${name}
 X
 X: ${knot_enable:="NO"}
 X: ${knot_config="%%PREFIX%%/etc/knot/knot.conf"}
 X
 Xcommand=%%PREFIX%%/sbin/${name}c
 Xprocname=%%PREFIX%%/sbin/${name}d
 X
 Xcommand_args="-c ${knot_config} -w start"
 Xrequired_files=${knot_config}
 X
 Xextra_commands="reload compile"
 Xstart_precmd="${name}_precmd"
 Xreload_cmd="${name}_reload"
 Xstop_cmd="${name}_stop"
 Xstatus_cmd="${name}_status"
 Xcompile_cmd="${name}_compile"
 X
 Xknot_precmd() {
 X	knot_compile
 X}
 Xknot_restart() {
 X	echo "Restarting ${name}."
 X	${command} -c ${knot_config} -w restart
 X}
 Xknot_reload() {
 X	echo "Reloading ${name}."
 X	${command} -c ${knot_config} reload
 X}
 Xknot_stop() {
 X	echo "Stopping ${name}."
 X	${command} -c ${knot_config} -w stop
 X}
 Xknot_status() {
 X	${command} -c ${knot_config} running
 X}
 Xknot_compile() {
 X	echo "Compiling zone(s)..."
 X	${command} -c ${knot_config} compile
 X}
 X
 Xrun_rc_command "$1"
 630171dfbed3fc0066bbe3be3cefcb0b
 echo x - dns/knot/files/pkg-message.in
 sed 's/^X//' >dns/knot/files/pkg-message.in << 'bb85ee5856902856c59d830ad19c09e9'
 X
 X####################################################################
 X#
 X# To start using Knot DNS, you should complete the following tasks:
 X#
 X# ----- configure --------------------------------------------------
 X#
 X  $EDITOR %%PREFIX%%/etc/knot/knot.conf
 X#
 X# For all option have a look at the contents of
 X# %%PREFIX%%/etc/knot/knot.conf.sample
 X#
 X# For example, under "system" you might like to add
 X#    user "bind.bind";
 X# to not have knotd run as root/wheel
 X#
 X# ----- prepare ----------------------------------------------------
 X#
 X  echo knot_enable=\"YES\" >> /etc/rc.conf
 X#
 X# ----- startup ----------------------------------------------------
 X#
 X  %%PREFIX%%/etc/rc.d/knot start
 X#
 X####################################################################
 X
 bb85ee5856902856c59d830ad19c09e9
 exit
 
 
 --Multipart_Tue_Mar_13_00:23:10_2012-1--
 
 --pgp-sign-Multipart_Tue_Mar_13_00:23:10_2012-1
 Content-Type: application/pgp-signature
 Content-Transfer-Encoding: 7bit
 Content-Description: OpenPGP Digital Signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (FreeBSD)
 
 iQEcBAABAgAGBQJPXhTfAAoJEML/cja+Xi6+45UH/jbiX/uPqAmNp/AmLP+82tVz
 1svErAwBdq0VWqLPNkk4CMNSISNwZJ3/u8Dq1ESA9w7qw4bEsiuNxibUIppM4Cm1
 UUHDa9/KJ8puVjitpJO32jOGtpWADIVydcBCAmYJXIsir6uDiCiF4qav/rb1Jjsc
 7mt6tEUmPrA0V/+hl5K/TQvZIZH4AaPOZEufo66wTfQ7alCMa4JNg0r71Yr0tgZM
 mwkKUKbKncXLze0flLldvgkSmP7A7TIDBc/uDvTKFYFUhHVfrRhKN++FxvDAN29b
 4sbEYYhVDfCcYiz+cNtsKMK9huaKf4MmL1uE8923Wb6qO/uioFLlQdAOJKszZH4=
 =9Iv2
 -----END PGP SIGNATURE-----
 
 --pgp-sign-Multipart_Tue_Mar_13_00:23:10_2012-1--

From: Leo Vandewoestijne <freebsd@dns-lab.com>
To: crees@FreeBSD.ORG, umq@ueo.co.jp
Cc: bug-followup@FreeBSD.ORG
Subject: Re: ports/165798: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
Date: Tue, 13 Mar 2012 02:55:59 +0000

 --gKMricLos+KVdGMg
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Tue, 13 Mar 2012, Hirohisa Yamaguchi wrote:
 > 
 > The original shar seems to have several problems:
 >  1. misc/userspace-rcu is actually sysutils/userspace-rcu
 >
 Thanks for correcting; when making the port it was submitted
 under the discouraged "misc" category, which was changed to
 the more appropiate "sysutils".
 
 >  2. @stopdaemon in pkg-plist does not work
 > 
 It needed modification in USE_RC_SUBR and appearently the
 filename needs to be equal to the command also (which the
 porters manual does not mention).
 
 
 Thanks for your very useful pointers/corrections/improvement!
 
 I did not merge all, as I'd like to have the port as much
 as "working out of the box" as possible.
 
 Also 1.0.1 was just released, so I also updated that already to.
 
 -- 
 
 Met vriendelijke groet,
 With kind regards,
 
 
 Leo Vandewoestijne.
 
   AS50381 / DNS-Lab
 INOC-DBA: 50381*100
 
 
 
 --gKMricLos+KVdGMg
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="knot.shar.txt"
 
 # 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:
 #
 #	knot
 #	knot/files
 #	knot/files/pkg-message.in
 #	knot/files/knotd.in
 #	knot/Makefile
 #	knot/distinfo
 #	knot/pkg-descr
 #	knot/pkg-plist
 #
 echo c - knot
 mkdir -p knot > /dev/null 2>&1
 echo c - knot/files
 mkdir -p knot/files > /dev/null 2>&1
 echo x - knot/files/pkg-message.in
 sed 's/^X//' >knot/files/pkg-message.in << '98736ee981f09ea0e088a61ba7a6b755'
 X
 X####################################################################
 X#
 X# To start using Knot DNS, you should complete the following tasks:
 X#
 X# ----- configure --------------------------------------------------
 X#
 X  $EDITOR %%PREFIX%%/etc/knot/knot.conf       
 X#
 X# For all option have a look at the contents of
 X# %%PREFIX%%/etc/knot/knot.sample.conf
 X#
 X# For example, under "system" you might like to add
 X#    user "bind.bind";
 X# to not have knotd run as root/wheel
 X#
 X# ----- prepare ----------------------------------------------------
 X#
 X# required:
 X  echo knot_enable=\"YES\" >> /etc/rc.conf
 X# for customization if desired:
 X# echo knot_config=\"%%PREFIX%%/etc/knot/knot.conf" >> /etc/rc.conf
 X#
 X# ----- startup ----------------------------------------------------
 X#
 X  %%PREFIX%%/etc/rc.d/knot start
 X#
 X####################################################################
 X
 98736ee981f09ea0e088a61ba7a6b755
 echo x - knot/files/knotd.in
 sed 's/^X//' >knot/files/knotd.in << '566542b62c03c0ead7588f327ba78e48'
 X#!/bin/sh
 X#
 X# $FreeBSD$
 X#
 X# PROVIDE: knot
 X# REQUIRE: DAEMON
 X# REQUIRE: LOGIN
 X# KEYWORD: shutdown
 X#
 X# Add the following lines to /etc/rc.conf to enable knot:
 X#
 X# knot_enable="YES":	Set to NO by default.
 X#			Set it to YES to enable knot.
 X# knot_config="":	Set to %%PREFIX%%/etc/knot/knot.conf
 X#			by default.
 X
 X. /etc/rc.subr
 X
 Xname=knot
 Xrcvar=knot_enable
 Xload_rc_config ${name}
 X
 X: ${knot_enable:="NO"}
 X: ${knot_config="%%PREFIX%%/etc/knot/knot.conf"}
 X
 Xcommand=%%PREFIX%%/sbin/${name}c
 Xprocname=%%PREFIX%%/sbin/${name}d
 Xpidfile=/var/run/${name}.pid
 X
 Xcommand_args="-c ${knot_config} -w start"
 Xrequired_files=${knot_config}
 X
 Xextra_commands="reload compile"
 Xcompile_cmd="${name}_compile"
 Xreload_cmd="${name}_reload"
 Xstart_precmd="${name}_compile"
 Xstatus_cmd="${name}_status"
 Xstop_cmd="${name}_stop"
 X
 Xknot_compile() {
 X	echo "Compiling zone(s)..."
 X	${command} -c ${knot_config} compile
 X	}
 Xknot_reload() {
 X	echo "Reloading ${name}."
 X	${command} -c ${knot_config} -a reload
 X	}
 Xknot_status() {
 X	${command} -c ${knot_config} running
 X	}
 Xknot_stop() {
 X	echo "Stopping ${name}."
 X	${command} -c ${knot_config} stop
 X	}
 X
 Xrun_rc_command "$1"
 566542b62c03c0ead7588f327ba78e48
 echo x - knot/Makefile
 sed 's/^X//' >knot/Makefile << '3203b152109646c6f5e90796ac0bdf67'
 X# New ports collection makefile for:	knot
 X# Date created:		29 February 2012
 X# Whom:			Leo Vandewoestijne <freebsd@dns-lab.com>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	knot
 XPORTVERSION=	1.0.1
 XCATEGORIES=	dns ipv6
 XMASTER_SITES=	http://public.nic.cz/files/knot-dns/ \
 X		http://www.dns-lab.com/downloads/knot-dns/
 X
 XMAINTAINER=	freebsd@dns-lab.com
 XCOMMENT=	Knot DNS is a high performance authoritative-only DNS server
 X
 XLICENSE=	GPLv3
 XLICENSE_FILE=	${WRKSRC}/COPYING
 X
 XBUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison \
 X		flex:${PORTSDIR}/textproc/flex
 XLIB_DEPENDS=	urcu.1:${PORTSDIR}/sysutils/userspace-rcu
 X
 XCONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc/${PORTNAME}
 XGNU_CONFIGURE=	yes
 XUSE_AUTOTOOLS=	libtool
 XUSE_OPENSSL=	yes
 X
 XSUB_FILES=	pkg-message
 X
 XUSE_RC_SUBR=	${PORTNAME}d
 X
 XMAN8=		knotc.8 knotd.8
 X
 XPORTDOCS=	AUTHORS ChangeLog CodingStyle COPYING \
 X		INSTALL KNOWN_ISSUES NEWS README RELNOTES
 X
 X.if defined(WITH_X86_64)
 X		CFLAGS+=		-fPIC
 X		CONFIGURE_ARGS+=	--build amd64
 X.endif
 X
 Xpost-install:
 X.if !defined(NOPORTDOCS)
 X	@${MKDIR} ${DOCSDIR}
 X	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
 X.endif
 X.if !defined(NOPORTEXAMPLES)
 X	@if [ ! -d ${PREFIX}/etc/knot ]; then \
 X		${MKDIR} ${PREFIX}/etc/knot ; \
 X	fi
 X	@if [ ! -f ${PREFIX}/etc/knot/knot.conf ]; then \
 X		${INSTALL_DATA}	${WRKSRC}/samples/knot.min.conf \
 X				${PREFIX}/etc/knot/knot.conf ; \
 X	fi
 X.endif
 X	@${CAT} ${PKGMESSAGE}
 X
 X.include <bsd.port.mk>
 3203b152109646c6f5e90796ac0bdf67
 echo x - knot/distinfo
 sed 's/^X//' >knot/distinfo << '742facb9c5d11cb27765f8fb2ecafefc'
 XSHA256 (knot-1.0.1.tar.gz) = 0c18dd3c72a1d2df7708d45c638c83cf8a7a5b7ceafdb7c3350bebb2ca258f93
 XSIZE (knot-1.0.1.tar.gz) = 1052858
 742facb9c5d11cb27765f8fb2ecafefc
 echo x - knot/pkg-descr
 sed 's/^X//' >knot/pkg-descr << 'dc7f1f6257e4decedf1a53393d489890'
 XKnot DNS is a high-performance authoritative-only DNS server
 Xwhich supports all key features of the domain name system
 Xincluding zone transfers, dynamic updates and DNSSEC. 
 X
 XKey features:
 X
 X - Open source
 X
 X - High-performance, multi-threaded, and mostly
 X   lock-free implementation which scales well on SMPs
 X
 X - Object-oriented design
 X
 X - Support for all important DNS protocols:
 X     - Full and incremental zone transfers
 X     - EDNS0 and DNSSEC extensions, including NSEC3
 X     - NSID
 X
 X
 XWWW:	http://www.knot-dns.cz/
 dc7f1f6257e4decedf1a53393d489890
 echo x - knot/pkg-plist
 sed 's/^X//' >knot/pkg-plist << 'c3df6e6ec3e36cb90e9b7709347fcabf'
 X@comment $FreeBSD$
 X@stopdaemon knotd
 Xetc/knot/example.com.zone
 Xetc/knot/knot.conf
 Xetc/knot/knot.sample.conf
 Xlibexec/knot-zcompile
 Xlibexec/unittests
 Xlibexec/unittests-libknot
 Xlibexec/unittests-libknot-realdata
 Xlibexec/unittests-xfr
 Xlibexec/unittests-zcompile
 Xsbin/knotc
 Xsbin/knotd
 X@dirrmtry etc/knot
 c3df6e6ec3e36cb90e9b7709347fcabf
 exit
 
 
 --gKMricLos+KVdGMg--
Responsible-Changed-From-To: crees->scheidell 
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Tue Mar 13 20:51:59 UTC 2012 
Responsible-Changed-Why:  
Taking it back. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165798 
State-Changed-From-To: open->feedback 
State-Changed-By: scheidell 
State-Changed-When: Tue Mar 13 21:19:36 UTC 2012 
State-Changed-Why:  
Nice looking port.  I might use it once it is done. Q:  I see in rc 
script, you have on two lines: REQUIRE: DAEMON and the next line 
REQUIRE: LOGIN.  these are USUALLY, mutually exclusive.  Do you want 
this to come up right after the other DAEMONS?  why do you need to wait 
for the tty to bring up the LOGIN?  Also, you would normally put this on 
line.  All your requires.  Can I suggest: REQUIRE: DAEMON cleanvar 
(just for clarity: cleanvar will make sure /var/run/* pids are deleted 
before starting).  Can you check this? see if you like that?  check to 
make sure it comes up when you want it to, preview it with:  rcorder 
/etc/rc.d/* /usr/local/etc/rc.d/* 

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

From: Michael Scheidell <scheidell@freebsd.org>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/165798: New port: dns/knot high-performance auth-only DNS
 server by NIC-CZ
Date: Wed, 14 Mar 2012 09:57:42 -0400

 found a minor error.with NOPORTEXAMPLES set.
 
 
 tar: etc/knot/knot.conf: Cannot stat: No such file or directory
 1122     tar: Error exit delayed from previous errors.
 1123     pkg_create: make_dist: tar command failed with code 256
 
 I will adjust.
 
 -- 
 Michael Scheidell, CTO
  >*| * SECNAP Network Security Corporation
 d: +1.561.948.2259
 w: http://people.freebsd.org/~scheidell
State-Changed-From-To: feedback->patched 
State-Changed-By: scheidell 
State-Changed-When: Wed Mar 14 21:42:46 UTC 2012 
State-Changed-Why:  
I made several changes to Makefile and pkg-plist.  Please test port and review changes. 
It would be educational for you to try to understand what and why these changes were made, some will be easy to understand,  
some might not be easy to understand without extensive knowledge of the ports build structure. 
I am leaving this open (but committed) for now so you can review it.  If anything doesn't work, add a followup (with patch?).   
If after looking at the changes you need to know why a certain change was made, just email me directly and ask. 
If you have no questions or problems I will close this PR Saturday. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/165798: commit references a PR
Date: Wed, 14 Mar 2012 21:42:10 +0000 (UTC)

 scheidell    2012-03-14 21:41:59 UTC
 
   FreeBSD ports repository
 
   Modified files:
     dns                  Makefile 
   Added files:
     dns/knot             Makefile distinfo pkg-descr pkg-plist 
     dns/knot/files       knotd.in pkg-message.in 
   Log:
   New port: dns/knot high-performance auth-only DNS server by NIC-CZ
   
   PR:             ports/165798
   Submitted by:   Leo Vandewoestijne <freebsd@dns-lab.com>
   Approved by:    Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer)
   Feature safe:   yes
   
   Revision  Changes    Path
   1.150     +1 -0      ports/dns/Makefile
   1.1       +49 -0     ports/dns/knot/Makefile (new)
   1.1       +2 -0      ports/dns/knot/distinfo (new)
   1.1       +56 -0     ports/dns/knot/files/knotd.in (new)
   1.1       +29 -0     ports/dns/knot/files/pkg-message.in (new)
   1.1       +20 -0     ports/dns/knot/pkg-descr (new)
   1.1       +16 -0     ports/dns/knot/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"
 

From: Anton Shterenlikht <mexas@bristol.ac.uk>
To: bug-followup@freebsd.org, freebsd@dns-lab.com
Cc:  
Subject: Re: ports/165798: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
Date: Thu, 15 Mar 2012 14:51:23 +0000

 On ia64 r231193M and sparc64 r230787M
 
 checking for minix/config.h... no
 checking whether it is safe to define __EXTENSIONS__... yes
 checking for x86 cpuid  output... unknown
 checking for x86 cpuid 0x00000001 output... unknown
 checking whether mmx is supported... no
 checking whether sse is supported... no
 checking whether sse2 is supported... ./configure: arithmetic expression: expecting EOF: "0x>>26&0x01"
 ===>  Script "configure" failed unexpectedly.
 Please report the problem to freebsd@dns-lab.com [maintainer] and attach the
 "/usr/ports/dns/knot/work/knot-1.0.1/config.log" including the output of the
 failure of your make command. Also, it might be a good idea to provide an
 overview of all packages installed on your system (e.g. an `ls /var/db/pkg`).
 *** Error code 1
 
 Stop in /usr/ports/dns/knot.
 
 
 -- 
 Anton Shterenlikht
 Room 2.6, Queen's Building
 Mech Eng Dept
 Bristol University
 University Walk, Bristol BS8 1TR, UK
 Tel: +44 (0)117 331 5944
 Fax: +44 (0)117 929 4423

From: crees@FreeBSD.ORG (on behalf of dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/165787: commit references a PR
Date: Thu, 15 Mar 2012 15:15:14 +0000 (UTC)

 Content migrated from misfiled commit to ports/165787

 scheidell    2012-03-15 15:15:00 UTC
 
   FreeBSD ports repository
 
   Modified files:
     dns/knot             Makefile 
   Log:
   - Add ONLY_FOR_ARCHS= i386 amd64
   - No PORTREVISION bump
   
   #PR:             ports/165787
   PR:             ports/165798
   Reported by:    Anton Shterenlikht <mexas@bristol.ac.uk>
   Approved by:    Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer, implicit)
   Feature safe:   yes
   
   Revision  Changes    Path
   1.2       +2 -0      ports/dns/knot/Makefile
 _______________________________________________
 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"

From: Anton Shterenlikht <mexas@bristol.ac.uk>
To: bug-followup@freebsd.org, freebsd@dns-lab.com
Cc:  
Subject: Re: ports/165798: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
Date: Thu, 15 Mar 2012 16:29:47 +0000

 --T4sUOijqQbZv57TR
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 There is a simple error in configure.
 The attached patch should probably
 be forwarded upstream. It's an obvious
 typo, because the checks for mmx, sse and sse3
 are done correctly, but sse2 not.
 
 With this patch I can build, install and package this port
 on ia64 and sparc64.
 
 -- 
 Anton Shterenlikht
 Room 2.6, Queen's Building
 Mech Eng Dept
 Bristol University
 University Walk, Bristol BS8 1TR, UK
 Tel: +44 (0)117 331 5944
 Fax: +44 (0)117 929 4423
 
 --T4sUOijqQbZv57TR
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="sse2.patch"
 
 --- configure	2012-03-09 16:01:59.000000000 +0000
 +++ configure.new	2012-03-15 16:19:16.000000000 +0000
 @@ -4544,8 +4544,10 @@
  else
  
      ax_cv_have_sse2_ext=no
 -    if test "$((0x$edx>>26&0x01))" = 1; then
 -      ax_cv_have_sse2_ext=yes
 +    if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown"; then
 +      if test "$((0x$edx>>26&0x01))" = 1; then
 +        ax_cv_have_sse2_ext=yes
 +      fi
      fi
  
  fi
 
 --T4sUOijqQbZv57TR--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/165798: commit references a PR
Date: Fri, 16 Mar 2012 10:29:06 +0000 (UTC)

 scheidell    2012-03-16 10:28:53 UTC
 
   FreeBSD ports repository
 
   Modified files:
     dns/knot             Makefile 
   Added files:
     dns/knot/files       patch-configure 
   Log:
   - Unbreak for non i86 archs
   - No PORTREVISION bump
   
   PR:             ports/165798
   Submitted by:   mexas@bristol.ac.uk
   Approved by:    Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer, implicit)
   Feature safe:   yes
   
   Revision  Changes    Path
   1.3       +0 -2      ports/dns/knot/Makefile
   1.1       +15 -0     ports/dns/knot/files/patch-configure (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"
 

From: Leo Vandewoestijne <freebsd@dns-lab.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/165798: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
Date: Sat, 17 Mar 2012 04:12:37 +0000

 --NzB8fVQJ5HfG6fxh
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
 
 By these my patch to finalize the port.
 
 
 -- 
 
 Leo.
 
 
 --NzB8fVQJ5HfG6fxh
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="finalize.patch"
 
 diff -rupN knot.old/Makefile knot/Makefile
 --- knot.old/Makefile	2012-03-17 03:59:56.000000000 +0000
 +++ knot/Makefile	2012-03-17 03:55:00.000000000 +0000
 @@ -38,6 +38,7 @@ PORTDOCS=	AUTHORS ChangeLog CodingStyle 
  post-install:
  	@${MKDIR} ${ETCDIR}
  	@${INSTALL_DATA} ${WRKSRC}/samples/knot.min.conf ${ETCDIR}
 +	@${INSTALL_DATA} ${WRKSRC}/samples/knot.full.conf ${ETCDIR}
  	@if [ ! -f ${ETCDIR}/knot.conf ]; then \
  		${INSTALL_DATA} ${ETCDIR}/knot.min.conf ${ETCDIR}/knot.conf; \
  	fi
 @@ -45,5 +46,6 @@ post-install:
  	@${MKDIR} ${DOCSDIR}
  	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
  .endif
 +	@${CAT} ${WRKDIR}/pkg-message
  
  .include <bsd.port.mk>
 diff -rupN knot.old/files/pkg-message.in knot/files/pkg-message.in
 --- knot.old/files/pkg-message.in	2012-03-17 03:59:56.000000000 +0000
 +++ knot/files/pkg-message.in	2012-03-17 03:55:00.000000000 +0000
 @@ -8,11 +8,7 @@
    $EDITOR %%PREFIX%%/etc/knot/knot.conf       
  #
  # For all option have a look at the contents of
 -# %%PREFIX%%/etc/knot/knot.sample.conf
 -#
 -# For example, under "system" you might like to add
 -#    user "bind.bind";
 -# to not have knotd run as root/wheel
 +# %%PREFIX%%/etc/knot/knot.full.conf
  #
  # ----- prepare ----------------------------------------------------
  #
 @@ -23,7 +19,7 @@
  #
  # ----- startup ----------------------------------------------------
  #
 -  %%PREFIX%%/etc/rc.d/knot start
 +  %%PREFIX%%/etc/rc.d/knotd start
  #
  ####################################################################
  
 diff -rupN knot.old/pkg-plist knot/pkg-plist
 --- knot.old/pkg-plist	2012-03-17 03:59:56.000000000 +0000
 +++ knot/pkg-plist	2012-03-17 03:55:00.000000000 +0000
 @@ -2,6 +2,7 @@
  @stopdaemon knotd
  %%ETCDIR%%/example.com.zone
  @unexec if cmp -s %B/knot.min.conf %B/knot.conf; then rm -f %B/knot.conf; fi
 +%%ETCDIR%%/knot.full.conf
  %%ETCDIR%%/knot.min.conf
  @exec [ -f %B/knot.conf ] || cp %B/%f %B/knot.conf
  %%ETCDIR%%/knot.sample.conf
 
 --NzB8fVQJ5HfG6fxh--

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/165798: commit references a PR
Date: Sat, 17 Mar 2012 12:44:30 +0000 (UTC)

 scheidell    2012-03-17 12:44:20 UTC
 
   FreeBSD ports repository
 
   Modified files:
     dns/knot             Makefile pkg-plist 
     dns/knot/files       pkg-message.in 
   Log:
   - Final patch
   - Add back cat pkg-message
   - Add knot.full.conf to ETCDIR and pkg-plist
   - Bump PORTREVISON
   
   PR:             ports/165798
   Submitted by:   Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer)
   Approved by:    Leo Vandewoestijne <freebsd@dns-lab.com> (maintainer)
   Feature safe:   yes
   
   Revision  Changes    Path
   1.4       +3 -0      ports/dns/knot/Makefile
   1.2       +3 -7      ports/dns/knot/files/pkg-message.in
   1.2       +3 -2      ports/dns/knot/pkg-plist
 _______________________________________________
 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"
 
State-Changed-From-To: patched->closed 
State-Changed-By: scheidell 
State-Changed-When: Sat Mar 17 13:07:48 UTC 2012 
State-Changed-Why:  
Committed.  Thanks for everyone's work! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165798 
>Unformatted:
