summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-dns/knot
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-dns/knot')
-rw-r--r--net-dns/knot/Manifest3
-rw-r--r--net-dns/knot/files/1.6.3-dont-create-extra-directories.patch15
-rw-r--r--net-dns/knot/files/2.0.0_beta-dont-create-extra-directories.patch15
-rw-r--r--net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch11
-rw-r--r--net-dns/knot/files/knot.init42
-rw-r--r--net-dns/knot/knot-1.5.3.ebuild61
-rw-r--r--net-dns/knot/knot-1.6.3.ebuild95
-rw-r--r--net-dns/knot/knot-2.0.0_beta.ebuild96
-rw-r--r--net-dns/knot/metadata.xml25
9 files changed, 363 insertions, 0 deletions
diff --git a/net-dns/knot/Manifest b/net-dns/knot/Manifest
new file mode 100644
index 00000000000..c3751167f72
--- /dev/null
+++ b/net-dns/knot/Manifest
@@ -0,0 +1,3 @@
+DIST knot-1.5.3.tar.gz 1175445 SHA256 8d82ad5b2c7162750dc40c57d45dcae2665171a862767a350379fe1c4e0afcdd SHA512 4426ed136e5bcdb0d2b1729ab838418c880728a045dc1a40a6b6fc2a3b77ddcd7a375c8ec160efb6d009fc12eaf55587cf00af141f84d0bd1eb9cdac888fd445 WHIRLPOOL dbc1f59e2f2801f61dfbff4f2fcdc33e72647226e300adc85e9b0febd996aaad9615da33e21ebe22f83c6bf4c52cbcb7ca3a60fef8b66a9339d08f255909f16d
+DIST knot-1.6.3.tar.xz 785052 SHA256 48da608e29c2c1ef5937eb692f8ef0462ebb50fa7d128478a23e0a9788533e86 SHA512 c39f74ec49ec13d845705a11cf4b5474f101687db5cc44be0c2c8347faacf2fe4436d684a3e96d99afedd8408da1c7b3ad39fa5dc7bc3e52dafc899ac3a04958 WHIRLPOOL 4d6ae6b05be05c5a0c11f707a2c438801e9e7570d1aa2e946f659d9ccec25728c972cfa6caf96ccedb34f95fa28f4e904179cc123f34a78889961902333ce0f5
+DIST knot-2.0.0-beta.tar.xz 939468 SHA256 7ed997d15b523abcaede51d7ce3670a687d7658b96eb742b9dd87ac5d3e0e9af SHA512 98c872eea28b00b5da52ff8c74c6cf1c88b11e3d68038126a76de99ae2b39c60430294382b14a530fc2912cad419a7d509386deb78b7faa64320cdec21a1bc36 WHIRLPOOL 3b505d757a7591d32e33a07e9a46cb210e886a566bed705b326ce4d5be18d62865fdf165a97e21c8ad756631a5a448ef9ded67bae0002047ad209d7dad2ab5b6
diff --git a/net-dns/knot/files/1.6.3-dont-create-extra-directories.patch b/net-dns/knot/files/1.6.3-dont-create-extra-directories.patch
new file mode 100644
index 00000000000..e8d84a18859
--- /dev/null
+++ b/net-dns/knot/files/1.6.3-dont-create-extra-directories.patch
@@ -0,0 +1,15 @@
+--- src/Makefile.in.orig 2015-05-03 16:34:53.177934984 +0200
++++ src/Makefile.in 2015-05-03 16:35:11.481325329 +0200
+@@ -2712,12 +2712,6 @@
+ uninstall-sbinPROGRAMS
+
+
+-# Create storage and run-time directories
+-install-data-hook:
+- $(INSTALL) -d $(DESTDIR)/@config_dir@
+- $(INSTALL) -d $(DESTDIR)/@run_dir@
+- $(INSTALL) -d $(DESTDIR)/@storage_dir@
+-
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/net-dns/knot/files/2.0.0_beta-dont-create-extra-directories.patch b/net-dns/knot/files/2.0.0_beta-dont-create-extra-directories.patch
new file mode 100644
index 00000000000..538afecc5f6
--- /dev/null
+++ b/net-dns/knot/files/2.0.0_beta-dont-create-extra-directories.patch
@@ -0,0 +1,15 @@
+--- src/Makefile.in.orig 2015-05-10 20:59:26.854079700 +0200
++++ src/Makefile.in 2015-05-10 21:00:01.870857369 +0200
+@@ -3401,12 +3401,6 @@
+ uninstall-pkgconfigDATA uninstall-sbinPROGRAMS
+
+
+-# Create storage and run-time directories
+-@HAVE_DAEMON_TRUE@install-data-hook:
+-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/@config_dir@
+-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/@run_dir@
+-@HAVE_DAEMON_TRUE@ $(INSTALL) -d $(DESTDIR)/@storage_dir@
+-
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff --git a/net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch b/net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch
new file mode 100644
index 00000000000..5861ee5841c
--- /dev/null
+++ b/net-dns/knot/files/2.0.0_beta-spell-enable-vars-correctly.patch
@@ -0,0 +1,11 @@
+--- configure.orig 2015-05-10 19:25:43.365929384 +0200
++++ configure 2015-05-10 19:26:00.452648532 +0200
+@@ -12833,7 +12833,7 @@
+ if test "$enable_daemon" = "yes"; then :
+
+
+-if test "$enable_system" != "no"; then :
++if test "$enable_systemd" != "no"; then :
+
+ case $enable_systemd in #(
+ auto) :
diff --git a/net-dns/knot/files/knot.init b/net-dns/knot/files/knot.init
new file mode 100644
index 00000000000..0894c2080da
--- /dev/null
+++ b/net-dns/knot/files/knot.init
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+command=/usr/sbin/knotd
+command_args="-d"
+pidfile=/var/run/knot/knot.pid
+required_files=/etc/knot/knot.conf
+extra_started_commands="reload"
+description_reload="Reload configuration and changed zones."
+
+depend() {
+ need net
+}
+
+start() {
+ checkpath -d -m 0750 -o knot:knot /var/run/knot/ /var/lib/knot/
+
+ ebegin "Starting knot"
+ start-stop-daemon --start \
+ --pidfile $pidfile --exec $command -- $command_args
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping knot"
+ /usr/sbin/knotc stop >/dev/null 2>&1
+ # In case remote control is not working
+ if [ "$?" != 0 ]; then
+ if [ -f $pidfile ]; then
+ start-stop-daemon --stop --pidfile $pidfile
+ fi
+ fi
+ ewend $?
+}
+
+reload() {
+ ebegin "Reloading knot"
+ /usr/sbin/knotc reload >/dev/null
+ eend $?
+}
diff --git a/net-dns/knot/knot-1.5.3.ebuild b/net-dns/knot/knot-1.5.3.ebuild
new file mode 100644
index 00000000000..77b523f6389
--- /dev/null
+++ b/net-dns/knot/knot-1.5.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+EGIT_REPO_URI="https://gitlab.labs.nic.cz/labs/${PN}.git"
+[[ ${PV} == 9999 ]] && inherit autotools git-r3
+inherit eutils user
+
+DESCRIPTION="High-performance authoritative-only DNS server"
+HOMEPAGE="http://www.knot-dns.cz/"
+[[ ${PV} == 9999 ]] || SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE="debug caps +fastparser idn"
+
+RDEPEND="
+ dev-libs/openssl
+ dev-libs/userspace-rcu
+ caps? ( sys-libs/libcap-ng )
+ idn? ( net-dns/libidn )
+"
+# sys-libs/glibc
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ virtual/yacc
+ fastparser? ( dev-util/ragel )
+"
+
+S="${WORKDIR}/${P/_/-}"
+
+src_prepare() {
+ [[ ${PV} == 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-storage="${EPREFIX}/var/lib/${PN}" \
+ --with-rundir="${EPREFIX}/var/run/${PN}" \
+ --disable-lto \
+ --enable-recvmmsg \
+ $(use_enable fastparser) \
+ $(use_enable debug debug server,zones,xfr,packet,dname,rr,ns,hash,compiler) \
+ $(use_enable debug debuglevel details) \
+ $(use_with idn libidn)
+}
+
+src_install() {
+ default
+ newinitd "${FILESDIR}/knot.init" knot
+}
+
+pkg_postinst() {
+ enewgroup knot 53
+ enewuser knot 53 -1 /var/lib/knot knot
+}
diff --git a/net-dns/knot/knot-1.6.3.ebuild b/net-dns/knot/knot-1.6.3.ebuild
new file mode 100644
index 00000000000..9b45a0ef695
--- /dev/null
+++ b/net-dns/knot/knot-1.6.3.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils user
+
+DESCRIPTION="High-performance authoritative-only DNS server"
+HOMEPAGE="http://www.knot-dns.cz/"
+SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug dnstap doc caps +fastparser idn lmdb systemd"
+
+RDEPEND="
+ >=dev-libs/openssl-1.0.1
+ >=dev-libs/userspace-rcu-0.5.4
+ caps? ( >=sys-libs/libcap-ng-0.6.4 )
+ dnstap? ( dev-libs/fstrm dev-libs/protobuf-c )
+ idn? ( net-dns/libidn )
+ lmdb? ( dev-db/lmdb )
+ systemd? ( sys-apps/systemd )
+"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/flex
+ sys-devel/bison
+ doc? ( dev-python/sphinx app-text/texlive-core sys-apps/texinfo )
+"
+
+S="${WORKDIR}/${P/_/-}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-dont-create-extra-directories.patch"
+}
+
+src_configure() {
+ econf \
+ --with-storage="${EPREFIX}/var/lib/${PN}" \
+ --with-rundir="${EPREFIX}/var/run/${PN}" \
+ $(use_enable fastparser) \
+ $(use_enable debug debug server,zones,xfr,packet,rr,ns,loader,dnssec) \
+ $(use_enable debug debuglevel details) \
+ $(use_enable dnstap) \
+ $(use_enable lmdb) \
+ $(use_with idn libidn) \
+ $(usex systemd --enable-systemd=yes --enable-systemd=no)
+}
+
+src_compile() {
+ default
+ use doc && emake -C doc html-local singlehtml pdf-local info-local
+}
+
+# Portage's automatic test code runs "make -n check" to see if there
+# is a "check" target, but that fails here because the test
+# infrastructure hasn't been built yet. Just run "make check", which
+# will build it and then run the tests.
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ keepdir /var/lib/${PN}
+
+ if use doc; then
+ dodoc doc/_build/latex/KnotDNS.pdf
+
+ docinto html
+ dodoc doc/_build/html/*.html doc/_build/html/*.js
+ docinto html/_sources
+ dodoc doc/_build/html/_sources/*
+ docinto html/_static
+ dodoc doc/_build/html/_static/*
+
+ docinto singlehtml
+ dodoc doc/_build/singlehtml/index.html
+ docinto singlehtml/_static/
+ dodoc doc/_build/singlehtml/_static/*
+
+ doinfo doc/_build/texinfo/KnotDNS.info
+ fi
+
+ newinitd "${FILESDIR}/knot.init" knot
+}
+
+pkg_postinst() {
+ enewgroup knot 53
+ enewuser knot 53 -1 /var/lib/knot knot
+}
diff --git a/net-dns/knot/knot-2.0.0_beta.ebuild b/net-dns/knot/knot-2.0.0_beta.ebuild
new file mode 100644
index 00000000000..0ed9ae00494
--- /dev/null
+++ b/net-dns/knot/knot-2.0.0_beta.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils user
+
+DESCRIPTION="High-performance authoritative-only DNS server"
+HOMEPAGE="http://www.knot-dns.cz/"
+SRC_URI="https://secure.nic.cz/files/knot-dns/${P/_/-}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug dnstap doc caps +fastparser idn systemd"
+
+RDEPEND="
+ >=net-libs/gnutls-3.0
+ >=dev-libs/jansson-2.3
+ dev-db/lmdb
+ >=dev-libs/userspace-rcu-0.5.4
+ caps? ( >=sys-libs/libcap-ng-0.6.4 )
+ dnstap? ( dev-libs/fstrm dev-libs/protobuf-c )
+ idn? ( net-dns/libidn )
+ systemd? ( sys-apps/systemd )
+"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( dev-python/sphinx app-text/texlive-core sys-apps/texinfo )
+"
+
+S="${WORKDIR}/${P/_/-}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-spell-enable-vars-correctly.patch"
+ epatch "${FILESDIR}/${PV}-dont-create-extra-directories.patch"
+}
+
+src_configure() {
+ econf \
+ --with-storage="${EPREFIX}/var/lib/${PN}" \
+ --with-rundir="${EPREFIX}/var/run/${PN}" \
+ --with-lmdb \
+ $(use_enable fastparser) \
+ $(use_enable debug debug server,zones,ns,loader,dnssec) \
+ $(use_enable debug debuglevel details) \
+ $(use_enable dnstap) \
+ $(use_enable doc documentation) \
+ $(use_with idn libidn) \
+ $(usex systemd --enable-systemd=yes --enable-systemd=no)
+}
+
+src_compile() {
+ default
+ use doc && emake -C doc html-local singlehtml pdf-local info-local
+}
+
+# Portage's automatic test code runs "make -n check" to see if there
+# is a "check" target, but that fails here because the test
+# infrastructure hasn't been built yet. Just run "make check", which
+# will build it and then run the tests.
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ keepdir /var/lib/${PN}
+
+ if use doc; then
+ dodoc doc/_build/latex/KnotDNS.pdf
+
+ docinto html
+ dodoc doc/_build/html/*.html doc/_build/html/*.js
+ docinto html/_sources
+ dodoc doc/_build/html/_sources/*
+ docinto html/_static
+ dodoc doc/_build/html/_static/*
+
+ docinto singlehtml
+ dodoc doc/_build/singlehtml/index.html
+ docinto singlehtml/_static/
+ dodoc doc/_build/singlehtml/_static/*
+
+ doinfo doc/_build/texinfo/KnotDNS.info
+ fi
+
+ newinitd "${FILESDIR}/knot.init" knot
+}
+
+pkg_postinst() {
+ enewgroup knot 53
+ enewuser knot 53 -1 /var/lib/knot knot
+}
diff --git a/net-dns/knot/metadata.xml b/net-dns/knot/metadata.xml
new file mode 100644
index 00000000000..29256af3d08
--- /dev/null
+++ b/net-dns/knot/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>ondrej@sury.org</email>
+ <name>Ondřej Surý</name>
+ </maintainer>
+ <maintainer>
+ <email>scarabeus@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="dnstap">Include support for the dnstap
+ binary log format (http://dnstap.info/).
+ </flag>
+ <flag name="fastparser">Use a zone file parser that is
+ faster, but requires more memory and CPU time to
+ compile.
+ </flag>
+ <flag name="lmdb">Use the LMDB database to store
+ timers for slave zones on disk, making the timers
+ persist across server restarts.
+ </flag>
+ </use>
+</pkgmetadata>