ports/165798: New port: dns/knot high-performance auth-only DNS server by NIC-CZ
Leo Vandewoestijne
freebsd at dns-lab.com
Wed Mar 7 00:40:12 UTC 2012
>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: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 07 00:40:11 UTC 2012
>Closed-Date:
>Last-Modified:
>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 at 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 at 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 at dirrmtry etc/knot
X at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list