summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfram Schlich <wschlich@gentoo.org>2013-01-30 10:43:05 +0000
committerWolfram Schlich <wschlich@gentoo.org>2013-01-30 10:43:05 +0000
commite4c2aaa3013319219ad22ecc94dbd6ca22daed8a (patch)
treeece1d9df0b4ef93870174f1891ebac03211512a2 /net-dns
parentUse (-) USE-defaults to reduce issues from removing flags. (diff)
downloadhistorical-e4c2aaa3013319219ad22ecc94dbd6ca22daed8a.tar.gz
historical-e4c2aaa3013319219ad22ecc94dbd6ca22daed8a.tar.bz2
historical-e4c2aaa3013319219ad22ecc94dbd6ca22daed8a.zip
initial import, ebuild by Tom Hendrikx <tom@whyscream.net> (see bug #128246)
Package-Manager: portage-2.2.0_alpha151/cvs/Linux x86_64
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/nsd/ChangeLog9
-rw-r--r--net-dns/nsd/Manifest5
-rw-r--r--net-dns/nsd/files/nsd.initd57
-rw-r--r--net-dns/nsd/metadata.xml28
-rw-r--r--net-dns/nsd/nsd-4.0.0_beta3.ebuild74
5 files changed, 173 insertions, 0 deletions
diff --git a/net-dns/nsd/ChangeLog b/net-dns/nsd/ChangeLog
new file mode 100644
index 000000000000..5f97f5db6cb0
--- /dev/null
+++ b/net-dns/nsd/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-dns/nsd
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/ChangeLog,v 1.1 2013/01/30 10:43:01 wschlich Exp $
+
+*nsd-4.0.0_beta3 (30 Jan 2013)
+
+ 30 Jan 2013; Wolfram Schlich <wschlich@gentoo.org> +files/nsd.initd,
+ +metadata.xml, +nsd-4.0.0_beta3.ebuild:
+ initial import, ebuild by Tom Hendrikx <tom@whyscream.net> (see bug #128246)
diff --git a/net-dns/nsd/Manifest b/net-dns/nsd/Manifest
new file mode 100644
index 000000000000..442327185aee
--- /dev/null
+++ b/net-dns/nsd/Manifest
@@ -0,0 +1,5 @@
+AUX nsd.initd 1478 SHA256 3f57c1dfa11211dee4e0449e7afadb0e5b4b4156dfcc226720bca7b5b30dda93 SHA512 26edf33acdef8e34fdb896be3cb4ad676067d3b04242b03e03a25182d39d8c182f7c529ae61df9e7611db4ed0e79034526d5a81f7a861d5a863f33934a7ec456 WHIRLPOOL 13c8dc78395574d432c677534a899e95d3befd53c594243675d725bd23f005c2dd4b3b8cf61b88f3b7492bf76cb20fc3fd574a31678cb62664d228415280b6d5
+DIST nsd-4.0.0b3.tar.gz 1016389 SHA256 1348f1290b2ee2b04dc4558d55cb6255bbeb39b85134aab7c98545a737db55c2 SHA512 d03aaa7c9a4b7e405e93492d4eec16d7495c8a4a85ff1e510dcf763f2d38ffe4476ab8e979078a75cad7abeaf64de0312b7d4702e53e1df93e866dd0ef4cc9b7 WHIRLPOOL 11025145589cd35de6259e166ae2e86ee1f93ff1f42d0f4f991ade657b180b813bd95a50ce57ace631b7411a711577b3e4abdbfe958e179206827e8ea100ccf6
+EBUILD nsd-4.0.0_beta3.ebuild 2025 SHA256 eac41a4ccd39efd6a6551ebc5c09be3dc847cbcfba0e62ab461e5fe638732b84 SHA512 53684d873dcfe66582ac9eb79844fd56d079603f67e8ac5861d4f0fb9b73f2d4c0c5e181cbf6e7465c06197570d40948bd78864a64564c6c0a4cf2c14850edd6 WHIRLPOOL 492769989acda6bf971683d85241c0bc807885e683dcad557ffe4361f68be6fcd6a3e3f4ec2b23b891b8cb51c8be79febccb031975887598d3a5382d241f0083
+MISC ChangeLog 421 SHA256 f659931b39f3fd2a6c7a81fa11af84bc05120a5cfdd450cdc80a756f682eaeb3 SHA512 f93df442ea2ba10d858adf11120396b2e9c95a6c6e7e28d400e9114cc7b9e3bf93e2b9b1a49848bd3091339a1b9315eccf0235e4db528d90bfcc90091989c9e4 WHIRLPOOL ea13c4e03ae97533d2df9593743cf1aa9a816752d3a95fd0bea2466654dea6caa47467dd79cd3e587f48f37c7cc020dd121066290e81f2cf119bb072221323ed
+MISC metadata.xml 1081 SHA256 ecc49f4f6a35f2f8c8918083ea30b16c4a52555a89668fac4585a93fa8830b2b SHA512 74cfaa6005102270125f2682e603867256eb5f93677c37bd8e01de112eee89753ddd6599c48922ff61d3de97144b7414a799a2633a844d61809fde241244e99d WHIRLPOOL de8d1cf3dc67086383b407eccab39fa186cb41cd058537963a1bae41d8523a1c729363a95544c5ff0d1c3e97282024d28d4df8ebe18e74e50474e94888de2554
diff --git a/net-dns/nsd/files/nsd.initd b/net-dns/nsd/files/nsd.initd
new file mode 100644
index 000000000000..ffc283c2d64a
--- /dev/null
+++ b/net-dns/nsd/files/nsd.initd
@@ -0,0 +1,57 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/files/nsd.initd,v 1.1 2013/01/30 10:43:02 wschlich Exp $
+
+description="NSD is an authoritative-only, high performance, open source name server"
+extra_commands="configtest"
+
+# these can be overridden in /etc/conf.d/nsd if necessary
+NSD_CONFIG="${NSD_CONFIG:-/etc/nsd/nsd.conf}"
+NSD_BINARY="${NSD_BINARY:-/usr/sbin/nsd}"
+NSD_CHECKCONF="${NSD_CHECKCONF:-/usr/sbin/nsd-checkconf}"
+
+depend() {
+ need net
+ use logger
+}
+
+configtest() {
+ ebegin "Checking ${SVCNAME} configuration"
+ checkconfig
+ eend $?
+}
+
+checkconfig() {
+ if ! test -e "${NSD_CONFIG}"; then
+ eerror "You need to create an appropriate config file."
+ eerror "An example can be found in /etc/nsd/nsd.conf.sample"
+ return 1
+ elif ! "${NSD_CHECKCONF}" "${NSD_CONFIG}"; then
+ eerror "You have errors in your configfile (${config_file})"
+ return $?
+ fi
+ return 0
+}
+
+start() {
+ ebegin "Starting NSD"
+
+ checkconfig || return $?
+ local pidfile=$("${NSD_CHECKCONF}" -o pidfile "${NSD_CONFIG}")
+ checkpath --directory --owner nsd:nsd $(dirname "${pidfile}")
+
+ start-stop-daemon --start --pidfile "${pidfile}" \
+ --exec "${NSD_BINARY}" -- -c "${NSD_CONFIG}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping NSD"
+
+ checkconfig || return $?
+ local pidfile=$("${NSD_CHECKCONF}" -o pidfile "${NSD_CONFIG}")
+
+ start-stop-daemon --stop --pidfile "${pidfile}"
+ eend $?
+}
diff --git a/net-dns/nsd/metadata.xml b/net-dns/nsd/metadata.xml
new file mode 100644
index 000000000000..e16ce939dce9
--- /dev/null
+++ b/net-dns/nsd/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>tom@whyscream.net</email>
+ <name>Tom Hendrikx</name>
+ <description>Please assign bugs</description>
+ </maintainer>
+ <maintainer>
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>proxy-maintainer, please CC on bugs</description>
+ </maintainer>
+ <use>
+ <flag name='bind8-stats'>Enables BIND8 like NSTATS and XSTATS</flag>
+ <flag name='libevent'>Use libevent or libev, useful when zone
+ count is high</flag>
+ <flag name='minimal-responses'>If minimal responses are disabled,
+ responses are more likely to get truncated, resulting in TCP
+ fallback</flag>
+ <flag name='nsec3'>Enable NSEC3 support</flag>
+ <flag name='ratelimit'>Enables ratelimiting, based on query name,
+ type and source</flag>
+ <flag name='root-server'>Configure NSD as a root server</flag>
+ <flag name='runtime-checks'>Enable runtime checks, this could lead
+ to a reduced service level</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-dns/nsd/nsd-4.0.0_beta3.ebuild b/net-dns/nsd/nsd-4.0.0_beta3.ebuild
new file mode 100644
index 000000000000..627bf052adbd
--- /dev/null
+++ b/net-dns/nsd/nsd-4.0.0_beta3.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/nsd/nsd-4.0.0_beta3.ebuild,v 1.1 2013/01/30 10:43:01 wschlich Exp $
+
+EAPI=4
+
+inherit user
+
+DESCRIPTION="An authoritative only, high performance, open source name server"
+HOMEPAGE="http://www.nlnetlabs.nl/projects/nsd"
+# version voodoo needed only for non-release tarballs: 4.0.0_rc1 => 4.0.0rc1
+MY_PV=${PV/_rc/rc}
+MY_PV=${PV/_beta/b}
+MY_P=${PN}-${MY_PV}
+S="${WORKDIR}/${MY_P}"
+SRC_URI="http://www.nlnetlabs.nl/downloads/${PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bind8-stats ipv6 libevent minimal-responses mmap +nsec3 ratelimit root-server runtime-checks ssl"
+
+RDEPEND="
+ dev-libs/openssl
+ virtual/yacc
+ libevent? ( dev-libs/libevent )
+ ssl? ( dev-libs/openssl )
+"
+DEPEND="
+ ${RDEPEND}
+ sys-devel/flex
+"
+
+pkg_setup() {
+ enewgroup nsd
+ enewuser nsd -1 -1 -1 nsd
+}
+
+src_configure() {
+ econf \
+ --enable-largefile \
+ --with-dbfile="${EPREFIX}"/var/db/nsd/nsd.db \
+ --with-logfile="${EPREFIX}"/var/log/nsd.log \
+ --with-pidfile="${EPREFIX}"/run/nsd/nsd.pid \
+ --with-xfrdir="${EPREFIX}"/var/db/nsd \
+ --with-xfrdfile="${EPREFIX}"/var/db/nsd/xfrd.db \
+ $(use_enable bind8-stats) \
+ $(use_enable ipv6) \
+ $(use_enable minimal-responses) \
+ $(use_enable mmap) \
+ $(use_enable nsec3) \
+ $(use_enable ratelimit) \
+ $(use_enable root-server) \
+ $(use_enable runtime-checks checking) \
+ $(use_with libevent) \
+ $(use_with ssl)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc doc/{ChangeLog,CREDITS,NSD-4-features,NSD-FOR-BIND-USERS,README,RELNOTES,REQUIREMENTS}
+
+ newinitd "${FILESDIR}"/nsd.initd nsd
+
+ # database directory, writable by nsd for zone updates and transfers
+ dodir /var/db/nsd
+ fowners nsd:nsd /var/db/nsd
+ fperms 750 /var/db/nsd
+
+ # remove the /run directory that usually resides on tmpfs and is
+ # being taken care of by the nsd init script anyway (checkpath)
+ rm -rf "${D}"/run || die "Failed to remove /run"
+}