X-Original-To: alpine-aports@lists.alpinelinux.org Received: from smtp.mauras.ch (smtp.mauras.ch [163.172.199.81]) by lists.alpinelinux.org (Postfix) with ESMTP id 152A25C479D for ; Mon, 22 Aug 2016 19:15:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mauras.ch; s=20160502; h=Content-Type:Mime-Version:Message-Id:Subject:To:From:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8ij9lMGnIQZI/dS4JmSYvKYqSrB4SL+VDZbQlacgVq4=; b=Mvpg4qLxQfaxCSH4jMgkVUa763 3lWntCJqoUB/OozTkQF+p0eo/NFV7PzlZbt2s5m4P37dXc/fFJHAZxs61p91yUNDjI7o4ZQ+Iy9aG /xF+IwqI5sKn7b7Wx7DxBO54G/BuTQVw/M9m+45h80vi5legaU0piaiIusqHaHsYjDmA=; Received: from 109-203-40-206.static.jp-net.net ([109.203.40.206] helo=tiptop.internal) by smtp.mauras.ch with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bbugh-0005oN-5w for alpine-aports@lists.alpinelinux.org; Mon, 22 Aug 2016 21:15:11 +0200 Date: Mon, 22 Aug 2016 21:14:59 +0200 From: Olivier Mauras To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/pdns{-recursor}: Move to community Message-Id: <20160822211459.2a4c173aad73004f8db178be@mauras.ch> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA256"; boundary="Signature=_Mon__22_Aug_2016_21_14_59_+0200_SHoHrJSOQTIYJZ0H" X-Authenticated-Sender: olivier@mauras.ch --Signature=_Mon__22_Aug_2016_21_14_59_+0200_SHoHrJSOQTIYJZ0H Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable --- community/pdns-recursor/APKBUILD | 67 +++ community/pdns-recursor/pdns-recursor.initd | 27 ++ .../pdns-recursor/pdns-recursor.post-deinstall | 4 + community/pdns-recursor/pdns-recursor.pre-install | 6 + community/pdns-recursor/recursor.conf | 452 +++++++++++++++++= ++++ community/pdns/APKBUILD | 102 +++++ community/pdns/pdns.conf | 337 +++++++++++++++ community/pdns/pdns.initd | 66 +++ community/pdns/pdns.post-deinstall | 4 + community/pdns/pdns.pre-install | 6 + testing/pdns-recursor/APKBUILD | 66 --- testing/pdns-recursor/pdns-recursor.initd | 27 -- testing/pdns-recursor/pdns-recursor.post-deinstall | 4 - testing/pdns-recursor/pdns-recursor.pre-install | 6 - testing/pdns-recursor/recursor.conf | 452 -----------------= ---- testing/pdns/APKBUILD | 102 ----- testing/pdns/pdns.conf | 337 --------------- testing/pdns/pdns.initd | 66 --- testing/pdns/pdns.post-deinstall | 4 - testing/pdns/pdns.pre-install | 6 - 20 files changed, 1071 insertions(+), 1070 deletions(-) create mode 100644 community/pdns-recursor/APKBUILD create mode 100644 community/pdns-recursor/pdns-recursor.initd create mode 100644 community/pdns-recursor/pdns-recursor.post-deinstall create mode 100644 community/pdns-recursor/pdns-recursor.pre-install create mode 100644 community/pdns-recursor/recursor.conf create mode 100644 community/pdns/APKBUILD create mode 100644 community/pdns/pdns.conf create mode 100644 community/pdns/pdns.initd create mode 100644 community/pdns/pdns.post-deinstall create mode 100644 community/pdns/pdns.pre-install delete mode 100644 testing/pdns-recursor/APKBUILD delete mode 100644 testing/pdns-recursor/pdns-recursor.initd delete mode 100644 testing/pdns-recursor/pdns-recursor.post-deinstall delete mode 100644 testing/pdns-recursor/pdns-recursor.pre-install delete mode 100644 testing/pdns-recursor/recursor.conf delete mode 100644 testing/pdns/APKBUILD delete mode 100644 testing/pdns/pdns.conf delete mode 100644 testing/pdns/pdns.initd delete mode 100644 testing/pdns/pdns.post-deinstall delete mode 100644 testing/pdns/pdns.pre-install diff --git a/community/pdns-recursor/APKBUILD b/community/pdns-recursor/APK= BUILD new file mode 100644 index 0000000..3407b4e --- /dev/null +++ b/community/pdns-recursor/APKBUILD @@ -0,0 +1,67 @@ +# Contributor: Olivier Mauras +# Maintainer: Olivier Mauras +pkgname=3Dpdns-recursor +pkgver=3D4.0.1 +pkgrel=3D0 +pkgdesc=3D"PowerDNS Recursive Server" +url=3D"http://www.powerdns.com/" +arch=3D"all" +license=3D"GPL" +depends=3D"" +depends_dev=3D"" +makedepends=3D"$depends_dev boost-dev lua-dev openssl-dev" +install=3D"$pkgname.pre-install $pkgname.post-deinstall" +subpackages=3D"$pkgname-doc" +pkgusers=3D"pdns" +pkggroups=3D"pdns" +source=3D"http://downloads.powerdns.com/releases/pdns-recursor-$pkgver.tar= .bz2 + pdns-recursor.initd + recursor.conf + " + +_builddir=3D"$srcdir/$pkgname-$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=3D/usr \ + --sysconfdir=3D/etc/pdns \ + --mandir=3D/usr/share/man \ + --infodir=3D/usr/share/info \ + --localstatedir=3D/var \ + --libdir=3D/usr/lib/pdns \ + --disable-static \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR=3D"$pkgdir" install || return 1 + rm "$pkgdir"/etc/pdns/recursor.conf-dist || return 1 + + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + + install -m600 -D "$srcdir"/recursor.conf \ + "$pkgdir"/etc/pdns/recursor.conf || return 1 +} + +md5sums=3D"5ef062610de3d193ebe63a615263df7e pdns-recursor-4.0.1.tar.bz2 +35f373bae0503632088956fa14754e4e pdns-recursor.initd +2950b9932de6baae360f220c7686f520 recursor.conf" +sha256sums=3D"472db541307c8ca83a846d260ecfc854fd8e879c1bb2ce5683a8df5d21e8= 60b0 pdns-recursor-4.0.1.tar.bz2 +215d916383e3cba184f8418b98cd2ced146500006e21e2efeb0ee5b53f3df049 pdns-rec= ursor.initd +12bdbf651db0c7fe63ddb01a239a5ddd40825f50811a5d3f4d13cda294bd0344 recursor= .conf" +sha512sums=3D"3e69606bda3d296b0c3fd9212afa2a098ab04637718356d220a9490bc3e2= a0ca97210934d398ad740509cea9e8f8d2ab2e16a1ba75d559f6b82bf64a729ad018 pdns-= recursor-4.0.1.tar.bz2 +f23cb30d943e0b0aea09371dc57aa43e55b8f91062a3caa3fac17e3565a8e36dfd304f45eb= a588f625ca2337cd2ade450ea5ae1776872c006204cdaf912f6651 pdns-recursor.initd +954df537693a202fc195e751011bbfaa605b3f3df42ac386fa82eb809b73c2b987f5e418b5= c96bb3b0669497426ce0daa39a719844701e06990b82843a4cf0d4 recursor.conf" diff --git a/community/pdns-recursor/pdns-recursor.initd b/community/pdns-r= ecursor/pdns-recursor.initd new file mode 100644 index 0000000..80e851d --- /dev/null +++ b/community/pdns-recursor/pdns-recursor.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/= 07 20:19:18 swegener Exp $ + +name=3Dpdns-recursor +daemon=3D/usr/sbin/pdns_recursor +recursor_control=3D/usr/bin/rec_control + +extra_started_commands=3D"dump reload" + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting PowerDNS recursor" + ${daemon} + eend $? +} + +stop() { + ebegin "Stopping PowerDNS recursor" + ${recursor_control} quit &>/dev/null + eend $? +} diff --git a/community/pdns-recursor/pdns-recursor.post-deinstall b/communi= ty/pdns-recursor/pdns-recursor.post-deinstall new file mode 100644 index 0000000..a7604db --- /dev/null +++ b/community/pdns-recursor/pdns-recursor.post-deinstall @@ -0,0 +1,4 @@ +#!/bin/sh + +deluser recursor 2>/dev/null +exit 0 diff --git a/community/pdns-recursor/pdns-recursor.pre-install b/community/= pdns-recursor/pdns-recursor.pre-install new file mode 100644 index 0000000..ece3a78 --- /dev/null +++ b/community/pdns-recursor/pdns-recursor.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S recursor 2>/dev/null +adduser -S -D -H -h /var/empty -s /bin/false -G recursor -g recursor recur= sor 2>/dev/null + +exit 0 diff --git a/community/pdns-recursor/recursor.conf b/community/pdns-recurso= r/recursor.conf new file mode 100644 index 0000000..1db3127 --- /dev/null +++ b/community/pdns-recursor/recursor.conf @@ -0,0 +1,452 @@ +# Autogenerated configuration file template +################################# +# allow-from If set, only allow these comma separated netmasks to recurse +# +# allow-from=3D127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192= .168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10 + +################################# +# allow-from-file If set, load allowed netmasks from this file +# +# allow-from-file=3D + +################################# +# any-to-tcp Answer ANY queries with tc=3D1, shunting to TCP +# +# any-to-tcp=3Dno + +################################# +# api-config-dir Directory where REST API stores config and zones +# +# api-config-dir=3D + +################################# +# api-key Static pre-shared authentication key for access to the REST API +# +# api-key=3D + +################################# +# api-logfile Location of the server logfile (used by the REST API) +# +# api-logfile=3D/var/log/pdns.log + +################################# +# api-readonly Disallow data modification through the REST API when set +# +# api-readonly=3Dno + +################################# +# auth-zones Zones for which we have authoritative data, comma separated d= omain=3Dfile pairs=20 +# +# auth-zones=3D + +################################# +# carbon-interval Number of seconds between carbon (graphite) updates +# +# carbon-interval=3D30 + +################################# +# carbon-ourname If set, overrides our reported hostname for carbon stats +# +# carbon-ourname=3D + +################################# +# carbon-server If set, send metrics in carbon (graphite) format to this s= erver +# +# carbon-server=3D + +################################# +# chroot switch to chroot jail +# +# chroot=3D + +################################# +# client-tcp-timeout Timeout in seconds when talking to TCP clients +# +# client-tcp-timeout=3D2 + +################################# +# config-dir Location of configuration directory (recursor.conf) +# +# config-dir=3D/etc + +################################# +# config-name Name of this virtual configuration - will rename the binary = image +# +# config-name=3D + +################################# +# daemon Operate as a daemon +# +daemon=3Dyes + +################################# +# delegation-only Which domains we only accept delegations from +# +# delegation-only=3D + +################################# +# disable-packetcache Disable packetcache +# +# disable-packetcache=3Dno + +################################# +# disable-syslog Disable logging to syslog, useful when running inside a s= upervisor that logs stdout +# +# disable-syslog=3Dno + +################################# +# dnssec DNSSEC mode: off/process-no-validate (default)/process/log-fail/v= alidate +# +# dnssec=3Dprocess-no-validate + +################################# +# dnssec-log-bogus Log DNSSEC bogus validations +# +# dnssec-log-bogus=3Dno + +################################# +# dont-query If set, do not query these netmasks for DNS data +# +# dont-query=3D127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192= .168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.= 0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, = ::ffff:0:0/96, 100::/64, 2001:db8::/32 + +################################# +# edns-outgoing-bufsize Outgoing EDNS buffer size +# +# edns-outgoing-bufsize=3D1680 + +################################# +# edns-subnet-whitelist List of netmasks and domains that we should enable= EDNS subnet for +# +# edns-subnet-whitelist=3D + +################################# +# entropy-source If set, read entropy from this file +# +# entropy-source=3D/dev/urandom + +################################# +# etc-hosts-file Path to 'hosts' file +# +# etc-hosts-file=3D/etc/hosts + +################################# +# export-etc-hosts If we should serve up contents from /etc/hosts +# +# export-etc-hosts=3Doff + +################################# +# export-etc-hosts-search-suffix Also serve up the contents of /etc/hosts = with this suffix +# +# export-etc-hosts-search-suffix=3D + +################################# +# forward-zones Zones for which we forward queries, comma separated domain= =3Dip pairs +# +# forward-zones=3D + +################################# +# forward-zones-file File with (+)domain=3Dip pairs for forwarding +# +# forward-zones-file=3D + +################################# +# forward-zones-recurse Zones for which we forward queries with recursion = bit, comma separated domain=3Dip pairs +# +# forward-zones-recurse=3D + +################################# +# hint-file If set, load root hints from this file +# +# hint-file=3D + +################################# +# include-dir Include *.conf files from this directory +# +# include-dir=3D + +################################# +# latency-statistic-size Number of latency values to calculate the qa-late= ncy average +# +# latency-statistic-size=3D10000 + +################################# +# local-address IP addresses to listen on, separated by spaces or commas. = Also accepts ports. +# +# local-address=3D127.0.0.1 + +################################# +# local-port port to listen on +# +local-port=3D5353 + +################################# +# log-common-errors If we should log rather common errors +# +# log-common-errors=3Dno + +################################# +# logging-facility Facility to log messages as. 0 corresponds to local0 +# +# logging-facility=3D + +################################# +# loglevel Amount of logging. Higher is more. Do not set below 3 +# +# loglevel=3D4 + +################################# +# lowercase-outgoing Force outgoing questions to lowercase +# +# lowercase-outgoing=3Dno + +################################# +# lua-config-file More powerful configuration options +# +# lua-config-file=3D + +################################# +# lua-dns-script Filename containing an optional 'lua' script that will be= used to modify dns answers +# +# lua-dns-script=3D + +################################# +# max-cache-entries If set, maximum number of entries in the main cache +# +# max-cache-entries=3D1000000 + +################################# +# max-cache-ttl maximum number of seconds to keep a cached entry in memory +# +# max-cache-ttl=3D86400 + +################################# +# max-mthreads Maximum number of simultaneous Mtasker threads +# +# max-mthreads=3D2048 + +################################# +# max-negative-ttl maximum number of seconds to keep a negative cached ent= ry in memory +# +# max-negative-ttl=3D3600 + +################################# +# max-packetcache-entries maximum number of entries to keep in the packetc= ache +# +# max-packetcache-entries=3D500000 + +################################# +# max-qperq Maximum outgoing queries per query +# +# max-qperq=3D50 + +################################# +# max-tcp-clients Maximum number of simultaneous TCP clients +# +# max-tcp-clients=3D128 + +################################# +# max-tcp-per-client If set, maximum number of TCP sessions per client (IP= address) +# +# max-tcp-per-client=3D0 + +################################# +# max-total-msec Maximum total wall-clock time per query in milliseconds, = 0 for unlimited +# +# max-total-msec=3D7000 + +################################# +# minimum-ttl-override Set under adverse conditions, a minimum TTL +# +# minimum-ttl-override=3D0 + +################################# +# network-timeout Wait this nummer of milliseconds for network i/o +# +# network-timeout=3D1500 + +################################# +# no-shuffle Don't change +# +# no-shuffle=3Doff + +################################# +# non-local-bind Enable binding to non-local addresses by using FREEBIND /= BINDANY socket options +# +# non-local-bind=3Dno + +################################# +# packetcache-servfail-ttl maximum number of seconds to keep a cached serv= fail entry in packetcache +# +# packetcache-servfail-ttl=3D60 + +################################# +# packetcache-ttl maximum number of seconds to keep a cached entry in pack= etcache +# +# packetcache-ttl=3D3600 + +################################# +# pdns-distributes-queries If PowerDNS itself should distribute queries ov= er threads +# +# pdns-distributes-queries=3D + +################################# +# processes Launch this number of processes (EXPERIMENTAL, DO NOT CHANGE) +# +# processes=3D1 + +################################# +# query-local-address Source IP address for sending queries +# +# query-local-address=3D0.0.0.0 + +################################# +# query-local-address6 Source IPv6 address for sending queries. IF UNSET, = IPv6 WILL NOT BE USED FOR OUTGOING QUERIES +# +# query-local-address6=3D + +################################# +# quiet Suppress logging of questions and answers +# +# quiet=3D + +################################# +# reuseport Enable SO_REUSEPORT allowing multiple recursors processes to l= isten to 1 address +# +# reuseport=3Dno + +################################# +# root-nx-trust If set, believe that an NXDOMAIN from the root means the T= LD does not exist +# +# root-nx-trust=3Dyes + +################################# +# security-poll-suffix Domain name from which to query security update not= ifications +# +# security-poll-suffix=3Dsecpoll.powerdns.com. + +################################# +# serve-rfc1918 If we should be authoritative for RFC 1918 private IP space +# +# serve-rfc1918=3D + +################################# +# server-down-max-fails Maximum number of consecutive timeouts (and unreac= hables) to mark a server as down ( 0 =3D> disabled ) +# +# server-down-max-fails=3D64 + +################################# +# server-down-throttle-time Number of seconds to throttle all queries to a= server after being marked as down +# +# server-down-throttle-time=3D60 + +################################# +# server-id Returned when queried for 'server.id' TXT or NSID, defaults to= hostname +# +# server-id=3D + +################################# +# setgid If set, change group id to this gid for more security +# +setgid=3Drecursor + +################################# +# setuid If set, change user id to this uid for more security +# +setuid=3Drecursor + +################################# +# single-socket If set, only use a single socket for outgoing queries +# +# single-socket=3Doff + +################################# +# soa-minimum-ttl Don't change +# +# soa-minimum-ttl=3D0 + +################################# +# socket-dir Where the controlsocket will live, /var/run when unset and no= t chrooted +# +# socket-dir=3D + +################################# +# socket-group Group of socket +# +# socket-group=3D + +################################# +# socket-mode Permissions for socket +# +# socket-mode=3D + +################################# +# socket-owner Owner of socket +# +# socket-owner=3D + +################################# +# spoof-nearmiss-max If non-zero, assume spoofing after this many near mis= ses +# +# spoof-nearmiss-max=3D20 + +################################# +# stack-size stack size per mthread +# +# stack-size=3D200000 + +################################# +# stats-ringbuffer-entries maximum number of packets to store statistics f= or +# +# stats-ringbuffer-entries=3D10000 + +################################# +# threads Launch this number of threads +# +# threads=3D2 + +################################# +# trace if we should output heaps of logging. set to 'fail' to only log fa= iling domains +# +# trace=3Doff + +################################# +# udp-truncation-threshold Maximum UDP response size before we truncate +# +# udp-truncation-threshold=3D1680 + +################################# +# version-string string reported on version.pdns or version.bind +# +# version-string=3DPowerDNS Recursor 4.0.1 (built Aug 15 2016 11:06:59 by = coredumb@alpine-dev.internal) + +################################# +# webserver Start a webserver (for REST API) +# +# webserver=3Dno + +################################# +# webserver-address IP Address of webserver to listen on +# +# webserver-address=3D127.0.0.1 + +################################# +# webserver-allow-from Webserver access is only allowed from these subnets +# +# webserver-allow-from=3D0.0.0.0/0,::/0 + +################################# +# webserver-password Password required for accessing the webserver +# +# webserver-password=3D + +################################# +# webserver-port Port of webserver to listen on +# +# webserver-port=3D8082 + +################################# +# write-pid Write a PID file +# +# write-pid=3Dyes + + diff --git a/community/pdns/APKBUILD b/community/pdns/APKBUILD new file mode 100644 index 0000000..3742a27 --- /dev/null +++ b/community/pdns/APKBUILD @@ -0,0 +1,102 @@ +# Contributor: *ukasz Jendrysik +# Contributor: Matt Smith +# Contributor: Olivier Mauras +# Maintainer: Olivier Mauras +pkgname=3Dpdns +pkgver=3D4.0.1 +pkgrel=3D0 +pkgdesc=3D"PowerDNS Authoritative Server" +url=3D"http://www.powerdns.com/" +arch=3D"all" +license=3D"GPL" +depends=3D"" +depends_dev=3D"" +makedepends=3D"$depends_dev boost-dev lua-dev openldap-dev mariadb-dev + postgresql-dev sqlite-dev openssl-dev" +install=3D"$pkgname.pre-install $pkgname.post-deinstall" +subpackages=3D"$pkgname-doc + $pkgname-backend-bind:backend_bind + $pkgname-backend-ldap:backend_ldap + $pkgname-backend-mysql:backend_mysql + $pkgname-backend-pgsql:backend_pgsql + $pkgname-backend-pipe:backend_pipe + $pkgname-backend-sqlite3:backend_sqlite3 + " +pkgusers=3D"pdns" +pkggroups=3D"pdns" +source=3D"http://downloads.powerdns.com/releases/pdns-$pkgver.tar.bz2 + pdns.initd + pdns.conf + " + +_builddir=3D"$srcdir/$pkgname-$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=3D/usr \ + --sysconfdir=3D/etc/$pkgname \ + --mandir=3D/usr/share/man \ + --infodir=3D/usr/share/info \ + --localstatedir=3D/var \ + --libdir=3D/usr/lib/pdns \ + --with-modules=3D"" \ + --with-dynmodules=3D"bind ldap gmysql gpgsql pipe gsqlite3" \ + --disable-static \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR=3D"$pkgdir" install || return 1 + + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + rm "$pkgdir"/etc/$pkgname/$pkgname.conf-dist + install -m600 -D "$srcdir"/$pkgname.conf \ + "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1 + chown pdns:pdns "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1 +} + +backend_bind() { _mv_backend bind; } +backend_ldap() { _mv_backend ldap openldap; } +backend_mysql() { _mv_backend gmysql mysql; } +backend_pgsql() { _mv_backend gpgsql postgresql; } +backend_pipe() { _mv_backend pipe; } +backend_sqlite3() { _mv_backend gsqlite3 sqlite; } + +_mv_backend() { + local backend=3D$1 + pkgdesc=3D"${backend} backend module for PowerDNS" + depends=3D"$pkgname" + + # backend dependencies + if [ -n "${2-}" ]; then + depends=3D"${2-}" + fi + depends=3D"${depends} ${pkgname}" + + mkdir -p "$subpkgdir"/usr/lib/pdns/pdns || return 1 + mv "$pkgdir"/usr/lib/pdns/pdns/lib${backend}backend.so \ + "$subpkgdir"/usr/lib/pdns/pdns/ || return 1 +} + +md5sums=3D"d34a390672aa043f8a287e5bb2284f4a pdns-4.0.1.tar.bz2 +db11dfe72474858f706155c817f2ded5 pdns.initd +351bac7f784a1a40e768466d9e6f1a79 pdns.conf" +sha256sums=3D"d191eed4a6664430e85969f49835c59e810ecbb7b3eb506e64c6b2734091= edd7 pdns-4.0.1.tar.bz2 +081835f812e419b153a9cc716ad55b9cb22c6c185b748e0aafc40430fa5e8b5e pdns.ini= td +5fdf423f829dca0b50bc81bab773d7ec4ee6627e35f861124d8c2ccd79a2f50c pdns.con= f" +sha512sums=3D"77fce9963a05198afeb569f92fbb0f6a1cb3426c28dd77b0921128189c80= d9a72ebdbfc249dfc0b5b89cc7a65a83887a0388d6cc3461453b1e3096e563afdd1e pdns-= 4.0.1.tar.bz2 +71257be925fe57b15ebf29a7810cd70581cb867416ab9562300a1bbc3eb94fcb92ea2eb95f= 15e3ee3bd409468911077c50f90a2501801b0c8c49ed979f41f3a4 pdns.initd +9913551bb4d685aaced806134b1037d85ce759e7d9e780e256e67651d9d346aad5e608b4a4= 5a4933f0ba879605b69d06e579c38b7f917f7a9be37c7797c5953b pdns.conf" diff --git a/community/pdns/pdns.conf b/community/pdns/pdns.conf new file mode 100644 index 0000000..e0238c0 --- /dev/null +++ b/community/pdns/pdns.conf @@ -0,0 +1,337 @@ +# Autogenerated configuration file template +################################# +# allow-axfr-ips Allow zonetransfers only to these subnets +# +# allow-axfr-ips=3D0.0.0.0/0 + +################################# +# allow-recursion List of subnets that are allowed to recurse +# +# allow-recursion=3D0.0.0.0/0 + +################################# +# allow-recursion-override Set this so that local data fully overrides the= recursor +# +# allow-recursion-override=3Dno + +################################# +# cache-ttl Seconds to store packets in the PacketCache +# +cache-ttl=3D60 + +################################# +# chroot If set, chroot to this directory for more security +# +chroot=3D/var/empty + +################################# +# config-dir Location of configuration directory (pdns.conf) +# +config-dir=3D/etc + +################################# +# config-name Name of this virtual configuration - will rename the binary = image +# +# config-name=3D + +################################# +# control-console Debugging switch - don't use +# +# control-console=3Dno + +################################# +# daemon Operate as a daemon +# +daemon=3Dyes + +################################# +# default-soa-name name to insert in the SOA record if none set in the bac= kend +# +# default-soa-name=3Da.misconfigured.powerdns.server + +################################# +# default-ttl Seconds a result is valid if not set otherwise +# +# default-ttl=3D3600 + +################################# +# disable-axfr Disable zonetransfers but do allow TCP queries +# +# disable-axfr=3Dno + +################################# +# disable-tcp Do not listen to TCP queries +# +# disable-tcp=3Dno + +################################# +# distributor-threads Default number of Distributor (backend) threads to s= tart +# +distributor-threads=3D1 + +################################# +# do-ipv6-additional-processing Do AAAA additional processing +# +# do-ipv6-additional-processing=3Dno + +################################# +# fancy-records Process URL and MBOXFW records +# +# fancy-records=3Dno + +################################# +# guardian Run within a guardian process +# +guardian=3Dyes + +################################# +# launch Which backends to launch and order to query them in +# +# launch=3D + +################################# +# lazy-recursion Only recurse if question cannot be answered locally +# +# lazy-recursion=3Dyes + +################################# +# load-modules Load this module - supply absolute or relative path +# +# load-modules=3D + +################################# +# local-address Local IP addresses to which we bind +# +# local-address=3D0.0.0.0 + +################################# +# local-ipv6 Local IP address to which we bind +# +# local-ipv6=3D + +################################# +# local-port The port on which we listen +# +local-port=3D53 + +################################# +# log-dns-details If PDNS should log DNS non-erroneous details +# +# log-dns-details=3D + +################################# +# log-failed-updates If PDNS should log failed update requests +# +# log-failed-updates=3D + +################################# +# logfile Logfile to use (Windows only) +# +# logfile=3Dpdns.log + +################################# +# logging-facility Log under a specific facility +# +# logging-facility=3D + +################################# +# loglevel Amount of logging. Higher is more. Do not set below 3 +# +loglevel=3D3 + +################################# +# master Act as a master +# +# master=3Dno + +################################# +# max-queue-length Maximum queuelength before considering situation lost +# +# max-queue-length=3D5000 + +################################# +# max-tcp-connections Maximum number of TCP connections +# +# max-tcp-connections=3D10 + +################################# +# module-dir Default directory for modules +# +module-dir=3D/usr/lib/pdns + +################################# +# negquery-cache-ttl Seconds to store packets in the PacketCache +# +negquery-cache-ttl=3D60 + +################################# +# no-shuffle Set this to prevent random shuffling of answers - for regress= ion testing +# +# no-shuffle=3Doff + +################################# +# out-of-zone-additional-processing Do out of zone additional processing +# +# out-of-zone-additional-processing=3Dyes + +################################# +# pipebackend-abi-version Version of the pipe backend ABI +# +# pipebackend-abi-version=3D1 + +################################# +# query-cache-ttl Seconds to store packets in the PacketCache +# +# query-cache-ttl=3D20 + +################################# +# query-local-address Source IP address for sending queries +# +# query-local-address=3D + +################################# +# query-logging Hint backends that queries should be logged +# +# query-logging=3Dno + +################################# +# queue-limit Maximum number of milliseconds to queue a query +# +# queue-limit=3D1500 + +################################# +# recursive-cache-ttl Seconds to store packets in the PacketCache +# +# recursive-cache-ttl=3D10 + +################################# +# recursor If recursion is desired, IP address of a recursing nameserver +# +# recursor=3Dno + +################################# +# send-root-referral Send out old-fashioned root-referral instead of ServF= ail in case of no authority +# +# send-root-referral=3Dno + +################################# +# setgid If set, change group id to this gid for more security +# +setgid=3Dpdns + +################################# +# setuid If set, change user id to this uid for more security +# +setuid=3Dpdns + +################################# +# skip-cname Do not perform CNAME indirection for each query +# +# skip-cname=3Dno + +################################# +# slave Act as a slave +# +# slave=3Dno + +################################# +# slave-cycle-interval Reschedule failed SOA serial checks once every .. s= econds +# +# slave-cycle-interval=3D60 + +################################# +# smtpredirector Our smtpredir MX host +# +# smtpredirector=3Da.misconfigured.powerdns.smtp.server + +################################# +# soa-expire-default Default SOA expire +# +# soa-expire-default=3D604800 + +################################# +# soa-minimum-ttl Default SOA mininum ttl +# +# soa-minimum-ttl=3D3600 + +################################# +# soa-refresh-default Default SOA refresh +# +# soa-refresh-default=3D10800 + +################################# +# soa-retry-default Default SOA retry +# +# soa-retry-default=3D3600 + +################################# +# soa-serial-offset Make sure that no SOA serial is less than this number +# +# soa-serial-offset=3D0 + +################################# +# socket-dir Where the controlsocket will live +# +socket-dir=3D/var/run + +################################# +# strict-rfc-axfrs Perform strictly rfc compliant axfrs (very slow) +# +# strict-rfc-axfrs=3Dno + +################################# +# trusted-notification-proxy IP address of incoming notification proxy +# +# trusted-notification-proxy=3D + +################################# +# urlredirector Where we send hosts to that need to be url redirected +# +# urlredirector=3D127.0.0.1 + +################################# +# use-logfile Use a log file (Windows only) +# +use-logfile=3Dno + +################################# +# version-string PowerDNS version in packets - full, anonymous, powerdns o= r custom +# +# version-string=3Dfull + +################################# +# webserver Start a webserver for monitoring +# +webserver=3Dno + +################################# +# webserver-address IP Address of webserver to listen on +# +# webserver-address=3D127.0.0.1 + +################################# +# webserver-password Password required for accessing the webserver +# +# webserver-password=3D + +################################# +# webserver-port Port of webserver to listen on +# +# webserver-port=3D8081 + +################################# +# webserver-print-arguments If the webserver should print arguments +# +# webserver-print-arguments=3Dno + +################################# +# wildcard-url Process URL and MBOXFW records +# +# wildcard-url=3Dno + +################################# +# wildcards Honor wildcards in the database +# +wildcards=3Dyes + + diff --git a/community/pdns/pdns.initd b/community/pdns/pdns.initd new file mode 100644 index 0000000..b6429bf --- /dev/null +++ b/community/pdns/pdns.initd @@ -0,0 +1,66 @@ +#!/sbin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/= 07 20:19:18 swegener Exp $ + +name=3Dpdns +daemon=3D/usr/sbin/pdns_server +pdns_control=3D/usr/bin/pdns_control + +extra_started_commands=3D"dump reload" +extra_commands=3D"monitor" + +PDNS_INSTANCE=3D"${SVCNAME#pdns[.-]}" +PDNS_CONFIG=3D"" + +if [ -n "${PDNS_INSTANCE}" ] && [ "${PDNS_INSTANCE}" !=3D "pdns" ] +then + PDNS_CONFIG=3D"--config-name=3D${PDNS_INSTANCE}" +else + PDNS_INSTANCE=3D"default" +fi + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting PowerDNS (${PDNS_INSTANCE})" + ${daemon} \ + ${PDNS_CONFIG} \ + --daemon=3Dyes \ + --guardian=3Dyes + eend $? +} + +stop() { + ebegin "Stopping PowerDNS (${PDNS_INSTANCE})" + ${pdns_control} ${PDNS_CONFIG} quit &>/dev/null + eend $? +} + +reload() { + ebegin "Reloading PowerDNS (${PDNS_INSTANCE})" + ${pdns_control} ${PDNS_CONFIG} cycle &>/dev/null + eend $? +} + +dump() { + ebegin "Dumping PowerDNS (${PDNS_INSTANCE}) variables" + ${pdns_control} ${PDNS_CONFIG} list + eend $? +} + +monitor() { + ebegin "Starting PowerDNS (${PDNS_INSTANCE}) in monitor mode" + ${daemon} \ + ${PDNS_CONFIG} \ + --daemon=3Dno \ + --guardian=3Dno \ + --control-console=3Dyes \ + --loglevel=3D9 \ + --log-dns-details=3Dyes \ + --query-logging=3Dyes + eend $? +} diff --git a/community/pdns/pdns.post-deinstall b/community/pdns/pdns.post-= deinstall new file mode 100644 index 0000000..f1efa16 --- /dev/null +++ b/community/pdns/pdns.post-deinstall @@ -0,0 +1,4 @@ +#!/bin/sh + +deluser pdns 2>/dev/null +exit 0 diff --git a/community/pdns/pdns.pre-install b/community/pdns/pdns.pre-inst= all new file mode 100644 index 0000000..021b1e7 --- /dev/null +++ b/community/pdns/pdns.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S pdns 2>/dev/null +adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/n= ull + +exit 0 diff --git a/testing/pdns-recursor/APKBUILD b/testing/pdns-recursor/APKBUILD deleted file mode 100644 index 6247f07..0000000 --- a/testing/pdns-recursor/APKBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# Contributor: Olivier Mauras -pkgname=3Dpdns-recursor -pkgver=3D4.0.1 -pkgrel=3D0 -pkgdesc=3D"PowerDNS Recursive Server" -url=3D"http://www.powerdns.com/" -arch=3D"all" -license=3D"GPL" -depends=3D"" -depends_dev=3D"" -makedepends=3D"$depends_dev boost-dev lua-dev openssl-dev" -install=3D"$pkgname.pre-install $pkgname.post-deinstall" -subpackages=3D"$pkgname-doc" -pkgusers=3D"pdns" -pkggroups=3D"pdns" -source=3D"http://downloads.powerdns.com/releases/pdns-recursor-$pkgver.tar= .bz2 - pdns-recursor.initd - recursor.conf - " - -_builddir=3D"$srcdir/$pkgname-$pkgver" - -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - ./configure --prefix=3D/usr \ - --sysconfdir=3D/etc/pdns \ - --mandir=3D/usr/share/man \ - --infodir=3D/usr/share/info \ - --localstatedir=3D/var \ - --libdir=3D/usr/lib/pdns \ - --disable-static \ - || return 1 - make || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR=3D"$pkgdir" install || return 1 - rm "$pkgdir"/etc/pdns/recursor.conf-dist || return 1 - - install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - - install -m600 -D "$srcdir"/recursor.conf \ - "$pkgdir"/etc/pdns/recursor.conf || return 1 -} - -md5sums=3D"5ef062610de3d193ebe63a615263df7e pdns-recursor-4.0.1.tar.bz2 -35f373bae0503632088956fa14754e4e pdns-recursor.initd -2950b9932de6baae360f220c7686f520 recursor.conf" -sha256sums=3D"472db541307c8ca83a846d260ecfc854fd8e879c1bb2ce5683a8df5d21e8= 60b0 pdns-recursor-4.0.1.tar.bz2 -215d916383e3cba184f8418b98cd2ced146500006e21e2efeb0ee5b53f3df049 pdns-rec= ursor.initd -12bdbf651db0c7fe63ddb01a239a5ddd40825f50811a5d3f4d13cda294bd0344 recursor= .conf" -sha512sums=3D"3e69606bda3d296b0c3fd9212afa2a098ab04637718356d220a9490bc3e2= a0ca97210934d398ad740509cea9e8f8d2ab2e16a1ba75d559f6b82bf64a729ad018 pdns-= recursor-4.0.1.tar.bz2 -f23cb30d943e0b0aea09371dc57aa43e55b8f91062a3caa3fac17e3565a8e36dfd304f45eb= a588f625ca2337cd2ade450ea5ae1776872c006204cdaf912f6651 pdns-recursor.initd -954df537693a202fc195e751011bbfaa605b3f3df42ac386fa82eb809b73c2b987f5e418b5= c96bb3b0669497426ce0daa39a719844701e06990b82843a4cf0d4 recursor.conf" diff --git a/testing/pdns-recursor/pdns-recursor.initd b/testing/pdns-recur= sor/pdns-recursor.initd deleted file mode 100644 index 80e851d..0000000 --- a/testing/pdns-recursor/pdns-recursor.initd +++ /dev/null @@ -1,27 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/= 07 20:19:18 swegener Exp $ - -name=3Dpdns-recursor -daemon=3D/usr/sbin/pdns_recursor -recursor_control=3D/usr/bin/rec_control - -extra_started_commands=3D"dump reload" - -depend() { - need net - after firewall -} - -start() { - ebegin "Starting PowerDNS recursor" - ${daemon} - eend $? -} - -stop() { - ebegin "Stopping PowerDNS recursor" - ${recursor_control} quit &>/dev/null - eend $? -} diff --git a/testing/pdns-recursor/pdns-recursor.post-deinstall b/testing/p= dns-recursor/pdns-recursor.post-deinstall deleted file mode 100644 index a7604db..0000000 --- a/testing/pdns-recursor/pdns-recursor.post-deinstall +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -deluser recursor 2>/dev/null -exit 0 diff --git a/testing/pdns-recursor/pdns-recursor.pre-install b/testing/pdns= -recursor/pdns-recursor.pre-install deleted file mode 100644 index ece3a78..0000000 --- a/testing/pdns-recursor/pdns-recursor.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S recursor 2>/dev/null -adduser -S -D -H -h /var/empty -s /bin/false -G recursor -g recursor recur= sor 2>/dev/null - -exit 0 diff --git a/testing/pdns-recursor/recursor.conf b/testing/pdns-recursor/re= cursor.conf deleted file mode 100644 index 1db3127..0000000 --- a/testing/pdns-recursor/recursor.conf +++ /dev/null @@ -1,452 +0,0 @@ -# Autogenerated configuration file template -################################# -# allow-from If set, only allow these comma separated netmasks to recurse -# -# allow-from=3D127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192= .168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10 - -################################# -# allow-from-file If set, load allowed netmasks from this file -# -# allow-from-file=3D - -################################# -# any-to-tcp Answer ANY queries with tc=3D1, shunting to TCP -# -# any-to-tcp=3Dno - -################################# -# api-config-dir Directory where REST API stores config and zones -# -# api-config-dir=3D - -################################# -# api-key Static pre-shared authentication key for access to the REST API -# -# api-key=3D - -################################# -# api-logfile Location of the server logfile (used by the REST API) -# -# api-logfile=3D/var/log/pdns.log - -################################# -# api-readonly Disallow data modification through the REST API when set -# -# api-readonly=3Dno - -################################# -# auth-zones Zones for which we have authoritative data, comma separated d= omain=3Dfile pairs=20 -# -# auth-zones=3D - -################################# -# carbon-interval Number of seconds between carbon (graphite) updates -# -# carbon-interval=3D30 - -################################# -# carbon-ourname If set, overrides our reported hostname for carbon stats -# -# carbon-ourname=3D - -################################# -# carbon-server If set, send metrics in carbon (graphite) format to this s= erver -# -# carbon-server=3D - -################################# -# chroot switch to chroot jail -# -# chroot=3D - -################################# -# client-tcp-timeout Timeout in seconds when talking to TCP clients -# -# client-tcp-timeout=3D2 - -################################# -# config-dir Location of configuration directory (recursor.conf) -# -# config-dir=3D/etc - -################################# -# config-name Name of this virtual configuration - will rename the binary = image -# -# config-name=3D - -################################# -# daemon Operate as a daemon -# -daemon=3Dyes - -################################# -# delegation-only Which domains we only accept delegations from -# -# delegation-only=3D - -################################# -# disable-packetcache Disable packetcache -# -# disable-packetcache=3Dno - -################################# -# disable-syslog Disable logging to syslog, useful when running inside a s= upervisor that logs stdout -# -# disable-syslog=3Dno - -################################# -# dnssec DNSSEC mode: off/process-no-validate (default)/process/log-fail/v= alidate -# -# dnssec=3Dprocess-no-validate - -################################# -# dnssec-log-bogus Log DNSSEC bogus validations -# -# dnssec-log-bogus=3Dno - -################################# -# dont-query If set, do not query these netmasks for DNS data -# -# dont-query=3D127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192= .168.0.0/16, 172.16.0.0/12, ::1/128, fc00::/7, fe80::/10, 0.0.0.0/8, 192.0.= 0.0/24, 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4, ::/96, = ::ffff:0:0/96, 100::/64, 2001:db8::/32 - -################################# -# edns-outgoing-bufsize Outgoing EDNS buffer size -# -# edns-outgoing-bufsize=3D1680 - -################################# -# edns-subnet-whitelist List of netmasks and domains that we should enable= EDNS subnet for -# -# edns-subnet-whitelist=3D - -################################# -# entropy-source If set, read entropy from this file -# -# entropy-source=3D/dev/urandom - -################################# -# etc-hosts-file Path to 'hosts' file -# -# etc-hosts-file=3D/etc/hosts - -################################# -# export-etc-hosts If we should serve up contents from /etc/hosts -# -# export-etc-hosts=3Doff - -################################# -# export-etc-hosts-search-suffix Also serve up the contents of /etc/hosts = with this suffix -# -# export-etc-hosts-search-suffix=3D - -################################# -# forward-zones Zones for which we forward queries, comma separated domain= =3Dip pairs -# -# forward-zones=3D - -################################# -# forward-zones-file File with (+)domain=3Dip pairs for forwarding -# -# forward-zones-file=3D - -################################# -# forward-zones-recurse Zones for which we forward queries with recursion = bit, comma separated domain=3Dip pairs -# -# forward-zones-recurse=3D - -################################# -# hint-file If set, load root hints from this file -# -# hint-file=3D - -################################# -# include-dir Include *.conf files from this directory -# -# include-dir=3D - -################################# -# latency-statistic-size Number of latency values to calculate the qa-late= ncy average -# -# latency-statistic-size=3D10000 - -################################# -# local-address IP addresses to listen on, separated by spaces or commas. = Also accepts ports. -# -# local-address=3D127.0.0.1 - -################################# -# local-port port to listen on -# -local-port=3D5353 - -################################# -# log-common-errors If we should log rather common errors -# -# log-common-errors=3Dno - -################################# -# logging-facility Facility to log messages as. 0 corresponds to local0 -# -# logging-facility=3D - -################################# -# loglevel Amount of logging. Higher is more. Do not set below 3 -# -# loglevel=3D4 - -################################# -# lowercase-outgoing Force outgoing questions to lowercase -# -# lowercase-outgoing=3Dno - -################################# -# lua-config-file More powerful configuration options -# -# lua-config-file=3D - -################################# -# lua-dns-script Filename containing an optional 'lua' script that will be= used to modify dns answers -# -# lua-dns-script=3D - -################################# -# max-cache-entries If set, maximum number of entries in the main cache -# -# max-cache-entries=3D1000000 - -################################# -# max-cache-ttl maximum number of seconds to keep a cached entry in memory -# -# max-cache-ttl=3D86400 - -################################# -# max-mthreads Maximum number of simultaneous Mtasker threads -# -# max-mthreads=3D2048 - -################################# -# max-negative-ttl maximum number of seconds to keep a negative cached ent= ry in memory -# -# max-negative-ttl=3D3600 - -################################# -# max-packetcache-entries maximum number of entries to keep in the packetc= ache -# -# max-packetcache-entries=3D500000 - -################################# -# max-qperq Maximum outgoing queries per query -# -# max-qperq=3D50 - -################################# -# max-tcp-clients Maximum number of simultaneous TCP clients -# -# max-tcp-clients=3D128 - -################################# -# max-tcp-per-client If set, maximum number of TCP sessions per client (IP= address) -# -# max-tcp-per-client=3D0 - -################################# -# max-total-msec Maximum total wall-clock time per query in milliseconds, = 0 for unlimited -# -# max-total-msec=3D7000 - -################################# -# minimum-ttl-override Set under adverse conditions, a minimum TTL -# -# minimum-ttl-override=3D0 - -################################# -# network-timeout Wait this nummer of milliseconds for network i/o -# -# network-timeout=3D1500 - -################################# -# no-shuffle Don't change -# -# no-shuffle=3Doff - -################################# -# non-local-bind Enable binding to non-local addresses by using FREEBIND /= BINDANY socket options -# -# non-local-bind=3Dno - -################################# -# packetcache-servfail-ttl maximum number of seconds to keep a cached serv= fail entry in packetcache -# -# packetcache-servfail-ttl=3D60 - -################################# -# packetcache-ttl maximum number of seconds to keep a cached entry in pack= etcache -# -# packetcache-ttl=3D3600 - -################################# -# pdns-distributes-queries If PowerDNS itself should distribute queries ov= er threads -# -# pdns-distributes-queries=3D - -################################# -# processes Launch this number of processes (EXPERIMENTAL, DO NOT CHANGE) -# -# processes=3D1 - -################################# -# query-local-address Source IP address for sending queries -# -# query-local-address=3D0.0.0.0 - -################################# -# query-local-address6 Source IPv6 address for sending queries. IF UNSET, = IPv6 WILL NOT BE USED FOR OUTGOING QUERIES -# -# query-local-address6=3D - -################################# -# quiet Suppress logging of questions and answers -# -# quiet=3D - -################################# -# reuseport Enable SO_REUSEPORT allowing multiple recursors processes to l= isten to 1 address -# -# reuseport=3Dno - -################################# -# root-nx-trust If set, believe that an NXDOMAIN from the root means the T= LD does not exist -# -# root-nx-trust=3Dyes - -################################# -# security-poll-suffix Domain name from which to query security update not= ifications -# -# security-poll-suffix=3Dsecpoll.powerdns.com. - -################################# -# serve-rfc1918 If we should be authoritative for RFC 1918 private IP space -# -# serve-rfc1918=3D - -################################# -# server-down-max-fails Maximum number of consecutive timeouts (and unreac= hables) to mark a server as down ( 0 =3D> disabled ) -# -# server-down-max-fails=3D64 - -################################# -# server-down-throttle-time Number of seconds to throttle all queries to a= server after being marked as down -# -# server-down-throttle-time=3D60 - -################################# -# server-id Returned when queried for 'server.id' TXT or NSID, defaults to= hostname -# -# server-id=3D - -################################# -# setgid If set, change group id to this gid for more security -# -setgid=3Drecursor - -################################# -# setuid If set, change user id to this uid for more security -# -setuid=3Drecursor - -################################# -# single-socket If set, only use a single socket for outgoing queries -# -# single-socket=3Doff - -################################# -# soa-minimum-ttl Don't change -# -# soa-minimum-ttl=3D0 - -################################# -# socket-dir Where the controlsocket will live, /var/run when unset and no= t chrooted -# -# socket-dir=3D - -################################# -# socket-group Group of socket -# -# socket-group=3D - -################################# -# socket-mode Permissions for socket -# -# socket-mode=3D - -################################# -# socket-owner Owner of socket -# -# socket-owner=3D - -################################# -# spoof-nearmiss-max If non-zero, assume spoofing after this many near mis= ses -# -# spoof-nearmiss-max=3D20 - -################################# -# stack-size stack size per mthread -# -# stack-size=3D200000 - -################################# -# stats-ringbuffer-entries maximum number of packets to store statistics f= or -# -# stats-ringbuffer-entries=3D10000 - -################################# -# threads Launch this number of threads -# -# threads=3D2 - -################################# -# trace if we should output heaps of logging. set to 'fail' to only log fa= iling domains -# -# trace=3Doff - -################################# -# udp-truncation-threshold Maximum UDP response size before we truncate -# -# udp-truncation-threshold=3D1680 - -################################# -# version-string string reported on version.pdns or version.bind -# -# version-string=3DPowerDNS Recursor 4.0.1 (built Aug 15 2016 11:06:59 by = coredumb@alpine-dev.internal) - -################################# -# webserver Start a webserver (for REST API) -# -# webserver=3Dno - -################################# -# webserver-address IP Address of webserver to listen on -# -# webserver-address=3D127.0.0.1 - -################################# -# webserver-allow-from Webserver access is only allowed from these subnets -# -# webserver-allow-from=3D0.0.0.0/0,::/0 - -################################# -# webserver-password Password required for accessing the webserver -# -# webserver-password=3D - -################################# -# webserver-port Port of webserver to listen on -# -# webserver-port=3D8082 - -################################# -# write-pid Write a PID file -# -# write-pid=3Dyes - - diff --git a/testing/pdns/APKBUILD b/testing/pdns/APKBUILD deleted file mode 100644 index 5d6fd99..0000000 --- a/testing/pdns/APKBUILD +++ /dev/null @@ -1,102 +0,0 @@ -# Contributor: *ukasz Jendrysik -# Contributor: Matt Smith -# Contributor: Olivier Mauras -# Maintainer: Matt Smith -pkgname=3Dpdns -pkgver=3D4.0.1 -pkgrel=3D0 -pkgdesc=3D"PowerDNS Authoritative Server" -url=3D"http://www.powerdns.com/" -arch=3D"all" -license=3D"GPL" -depends=3D"" -depends_dev=3D"" -makedepends=3D"$depends_dev boost-dev lua-dev openldap-dev mariadb-dev - postgresql-dev sqlite-dev" -install=3D"$pkgname.pre-install $pkgname.post-deinstall" -subpackages=3D"$pkgname-doc - $pkgname-backend-bind:backend_bind - $pkgname-backend-ldap:backend_ldap - $pkgname-backend-mysql:backend_mysql - $pkgname-backend-pgsql:backend_pgsql - $pkgname-backend-pipe:backend_pipe - $pkgname-backend-sqlite3:backend_sqlite3 - " -pkgusers=3D"pdns" -pkggroups=3D"pdns" -source=3D"http://downloads.powerdns.com/releases/pdns-$pkgver.tar.bz2 - pdns.initd - pdns.conf - " - -_builddir=3D"$srcdir/$pkgname-$pkgver" - -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" - ./configure --prefix=3D/usr \ - --sysconfdir=3D/etc/$pkgname \ - --mandir=3D/usr/share/man \ - --infodir=3D/usr/share/info \ - --localstatedir=3D/var \ - --libdir=3D/usr/lib/pdns \ - --with-modules=3D"" \ - --with-dynmodules=3D"bind ldap gmysql gpgsql pipe gsqlite3" \ - --disable-static \ - || return 1 - make || return 1 -} - -package() { - cd "$_builddir" - make DESTDIR=3D"$pkgdir" install || return 1 - - install -m755 -D "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - rm "$pkgdir"/etc/$pkgname/$pkgname.conf-dist - install -m600 -D "$srcdir"/$pkgname.conf \ - "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1 - chown pdns:pdns "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1 -} - -backend_bind() { _mv_backend bind; } -backend_ldap() { _mv_backend ldap openldap; } -backend_mysql() { _mv_backend gmysql mysql; } -backend_pgsql() { _mv_backend gpgsql postgresql; } -backend_pipe() { _mv_backend pipe; } -backend_sqlite3() { _mv_backend gsqlite3 sqlite; } - -_mv_backend() { - local backend=3D$1 - pkgdesc=3D"${backend} backend module for PowerDNS" - depends=3D"$pkgname" - - # backend dependencies - if [ -n "${2-}" ]; then - depends=3D"${2-}" - fi - depends=3D"${depends} ${pkgname}" - - mkdir -p "$subpkgdir"/usr/lib/pdns/pdns || return 1 - mv "$pkgdir"/usr/lib/pdns/pdns/lib${backend}backend.so \ - "$subpkgdir"/usr/lib/pdns/pdns/ || return 1 -} - -md5sums=3D"d34a390672aa043f8a287e5bb2284f4a pdns-4.0.1.tar.bz2 -db11dfe72474858f706155c817f2ded5 pdns.initd -351bac7f784a1a40e768466d9e6f1a79 pdns.conf" -sha256sums=3D"d191eed4a6664430e85969f49835c59e810ecbb7b3eb506e64c6b2734091= edd7 pdns-4.0.1.tar.bz2 -081835f812e419b153a9cc716ad55b9cb22c6c185b748e0aafc40430fa5e8b5e pdns.ini= td -5fdf423f829dca0b50bc81bab773d7ec4ee6627e35f861124d8c2ccd79a2f50c pdns.con= f" -sha512sums=3D"77fce9963a05198afeb569f92fbb0f6a1cb3426c28dd77b0921128189c80= d9a72ebdbfc249dfc0b5b89cc7a65a83887a0388d6cc3461453b1e3096e563afdd1e pdns-= 4.0.1.tar.bz2 -71257be925fe57b15ebf29a7810cd70581cb867416ab9562300a1bbc3eb94fcb92ea2eb95f= 15e3ee3bd409468911077c50f90a2501801b0c8c49ed979f41f3a4 pdns.initd -9913551bb4d685aaced806134b1037d85ce759e7d9e780e256e67651d9d346aad5e608b4a4= 5a4933f0ba879605b69d06e579c38b7f917f7a9be37c7797c5953b pdns.conf" diff --git a/testing/pdns/pdns.conf b/testing/pdns/pdns.conf deleted file mode 100644 index e0238c0..0000000 --- a/testing/pdns/pdns.conf +++ /dev/null @@ -1,337 +0,0 @@ -# Autogenerated configuration file template -################################# -# allow-axfr-ips Allow zonetransfers only to these subnets -# -# allow-axfr-ips=3D0.0.0.0/0 - -################################# -# allow-recursion List of subnets that are allowed to recurse -# -# allow-recursion=3D0.0.0.0/0 - -################################# -# allow-recursion-override Set this so that local data fully overrides the= recursor -# -# allow-recursion-override=3Dno - -################################# -# cache-ttl Seconds to store packets in the PacketCache -# -cache-ttl=3D60 - -################################# -# chroot If set, chroot to this directory for more security -# -chroot=3D/var/empty - -################################# -# config-dir Location of configuration directory (pdns.conf) -# -config-dir=3D/etc - -################################# -# config-name Name of this virtual configuration - will rename the binary = image -# -# config-name=3D - -################################# -# control-console Debugging switch - don't use -# -# control-console=3Dno - -################################# -# daemon Operate as a daemon -# -daemon=3Dyes - -################################# -# default-soa-name name to insert in the SOA record if none set in the bac= kend -# -# default-soa-name=3Da.misconfigured.powerdns.server - -################################# -# default-ttl Seconds a result is valid if not set otherwise -# -# default-ttl=3D3600 - -################################# -# disable-axfr Disable zonetransfers but do allow TCP queries -# -# disable-axfr=3Dno - -################################# -# disable-tcp Do not listen to TCP queries -# -# disable-tcp=3Dno - -################################# -# distributor-threads Default number of Distributor (backend) threads to s= tart -# -distributor-threads=3D1 - -################################# -# do-ipv6-additional-processing Do AAAA additional processing -# -# do-ipv6-additional-processing=3Dno - -################################# -# fancy-records Process URL and MBOXFW records -# -# fancy-records=3Dno - -################################# -# guardian Run within a guardian process -# -guardian=3Dyes - -################################# -# launch Which backends to launch and order to query them in -# -# launch=3D - -################################# -# lazy-recursion Only recurse if question cannot be answered locally -# -# lazy-recursion=3Dyes - -################################# -# load-modules Load this module - supply absolute or relative path -# -# load-modules=3D - -################################# -# local-address Local IP addresses to which we bind -# -# local-address=3D0.0.0.0 - -################################# -# local-ipv6 Local IP address to which we bind -# -# local-ipv6=3D - -################################# -# local-port The port on which we listen -# -local-port=3D53 - -################################# -# log-dns-details If PDNS should log DNS non-erroneous details -# -# log-dns-details=3D - -################################# -# log-failed-updates If PDNS should log failed update requests -# -# log-failed-updates=3D - -################################# -# logfile Logfile to use (Windows only) -# -# logfile=3Dpdns.log - -################################# -# logging-facility Log under a specific facility -# -# logging-facility=3D - -################################# -# loglevel Amount of logging. Higher is more. Do not set below 3 -# -loglevel=3D3 - -################################# -# master Act as a master -# -# master=3Dno - -################################# -# max-queue-length Maximum queuelength before considering situation lost -# -# max-queue-length=3D5000 - -################################# -# max-tcp-connections Maximum number of TCP connections -# -# max-tcp-connections=3D10 - -################################# -# module-dir Default directory for modules -# -module-dir=3D/usr/lib/pdns - -################################# -# negquery-cache-ttl Seconds to store packets in the PacketCache -# -negquery-cache-ttl=3D60 - -################################# -# no-shuffle Set this to prevent random shuffling of answers - for regress= ion testing -# -# no-shuffle=3Doff - -################################# -# out-of-zone-additional-processing Do out of zone additional processing -# -# out-of-zone-additional-processing=3Dyes - -################################# -# pipebackend-abi-version Version of the pipe backend ABI -# -# pipebackend-abi-version=3D1 - -################################# -# query-cache-ttl Seconds to store packets in the PacketCache -# -# query-cache-ttl=3D20 - -################################# -# query-local-address Source IP address for sending queries -# -# query-local-address=3D - -################################# -# query-logging Hint backends that queries should be logged -# -# query-logging=3Dno - -################################# -# queue-limit Maximum number of milliseconds to queue a query -# -# queue-limit=3D1500 - -################################# -# recursive-cache-ttl Seconds to store packets in the PacketCache -# -# recursive-cache-ttl=3D10 - -################################# -# recursor If recursion is desired, IP address of a recursing nameserver -# -# recursor=3Dno - -################################# -# send-root-referral Send out old-fashioned root-referral instead of ServF= ail in case of no authority -# -# send-root-referral=3Dno - -################################# -# setgid If set, change group id to this gid for more security -# -setgid=3Dpdns - -################################# -# setuid If set, change user id to this uid for more security -# -setuid=3Dpdns - -################################# -# skip-cname Do not perform CNAME indirection for each query -# -# skip-cname=3Dno - -################################# -# slave Act as a slave -# -# slave=3Dno - -################################# -# slave-cycle-interval Reschedule failed SOA serial checks once every .. s= econds -# -# slave-cycle-interval=3D60 - -################################# -# smtpredirector Our smtpredir MX host -# -# smtpredirector=3Da.misconfigured.powerdns.smtp.server - -################################# -# soa-expire-default Default SOA expire -# -# soa-expire-default=3D604800 - -################################# -# soa-minimum-ttl Default SOA mininum ttl -# -# soa-minimum-ttl=3D3600 - -################################# -# soa-refresh-default Default SOA refresh -# -# soa-refresh-default=3D10800 - -################################# -# soa-retry-default Default SOA retry -# -# soa-retry-default=3D3600 - -################################# -# soa-serial-offset Make sure that no SOA serial is less than this number -# -# soa-serial-offset=3D0 - -################################# -# socket-dir Where the controlsocket will live -# -socket-dir=3D/var/run - -################################# -# strict-rfc-axfrs Perform strictly rfc compliant axfrs (very slow) -# -# strict-rfc-axfrs=3Dno - -################################# -# trusted-notification-proxy IP address of incoming notification proxy -# -# trusted-notification-proxy=3D - -################################# -# urlredirector Where we send hosts to that need to be url redirected -# -# urlredirector=3D127.0.0.1 - -################################# -# use-logfile Use a log file (Windows only) -# -use-logfile=3Dno - -################################# -# version-string PowerDNS version in packets - full, anonymous, powerdns o= r custom -# -# version-string=3Dfull - -################################# -# webserver Start a webserver for monitoring -# -webserver=3Dno - -################################# -# webserver-address IP Address of webserver to listen on -# -# webserver-address=3D127.0.0.1 - -################################# -# webserver-password Password required for accessing the webserver -# -# webserver-password=3D - -################################# -# webserver-port Port of webserver to listen on -# -# webserver-port=3D8081 - -################################# -# webserver-print-arguments If the webserver should print arguments -# -# webserver-print-arguments=3Dno - -################################# -# wildcard-url Process URL and MBOXFW records -# -# wildcard-url=3Dno - -################################# -# wildcards Honor wildcards in the database -# -wildcards=3Dyes - - diff --git a/testing/pdns/pdns.initd b/testing/pdns/pdns.initd deleted file mode 100644 index b6429bf..0000000 --- a/testing/pdns/pdns.initd +++ /dev/null @@ -1,66 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns/files/pdns,v 1.10 2007/05/= 07 20:19:18 swegener Exp $ - -name=3Dpdns -daemon=3D/usr/sbin/pdns_server -pdns_control=3D/usr/bin/pdns_control - -extra_started_commands=3D"dump reload" -extra_commands=3D"monitor" - -PDNS_INSTANCE=3D"${SVCNAME#pdns[.-]}" -PDNS_CONFIG=3D"" - -if [ -n "${PDNS_INSTANCE}" ] && [ "${PDNS_INSTANCE}" !=3D "pdns" ] -then - PDNS_CONFIG=3D"--config-name=3D${PDNS_INSTANCE}" -else - PDNS_INSTANCE=3D"default" -fi - -depend() { - need net - after firewall -} - -start() { - ebegin "Starting PowerDNS (${PDNS_INSTANCE})" - ${daemon} \ - ${PDNS_CONFIG} \ - --daemon=3Dyes \ - --guardian=3Dyes - eend $? -} - -stop() { - ebegin "Stopping PowerDNS (${PDNS_INSTANCE})" - ${pdns_control} ${PDNS_CONFIG} quit &>/dev/null - eend $? -} - -reload() { - ebegin "Reloading PowerDNS (${PDNS_INSTANCE})" - ${pdns_control} ${PDNS_CONFIG} cycle &>/dev/null - eend $? -} - -dump() { - ebegin "Dumping PowerDNS (${PDNS_INSTANCE}) variables" - ${pdns_control} ${PDNS_CONFIG} list - eend $? -} - -monitor() { - ebegin "Starting PowerDNS (${PDNS_INSTANCE}) in monitor mode" - ${daemon} \ - ${PDNS_CONFIG} \ - --daemon=3Dno \ - --guardian=3Dno \ - --control-console=3Dyes \ - --loglevel=3D9 \ - --log-dns-details=3Dyes \ - --query-logging=3Dyes - eend $? -} diff --git a/testing/pdns/pdns.post-deinstall b/testing/pdns/pdns.post-dein= stall deleted file mode 100644 index f1efa16..0000000 --- a/testing/pdns/pdns.post-deinstall +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -deluser pdns 2>/dev/null -exit 0 diff --git a/testing/pdns/pdns.pre-install b/testing/pdns/pdns.pre-install deleted file mode 100644 index 021b1e7..0000000 --- a/testing/pdns/pdns.pre-install +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -addgroup -S pdns 2>/dev/null -adduser -S -D -H -h /var/empty -s /bin/false -G pdns -g pdns pdns 2>/dev/n= ull - -exit 0 --=20 2.8.3 --Signature=_Mon__22_Aug_2016_21_14_59_+0200_SHoHrJSOQTIYJZ0H Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXu08zAAoJEJXQwVHPrdN8jAgP/itBvc/Dr65T0PsJJ3hOdg7W V4VgGPkVdppUaDJH5GKtrNcxH0mCoErKWuhk+CQ7u6Pw8RNA9YVeGzWgSjgRf6AH 1C+0WNpQ+mKw3lOpU4BeCiO049zXQYNUde247xuSp9UdmKH9Gx+WUQEvOW8FICLv 5Y8mI8BPhycgYfK4rbAiHRgeDpKWasfhnevfcYFkCf0SdP7wYpsCet6Omh4AEtPF BuYnDyUEWNj1y1N6xHw0QMHzuJ6CGMEbZeKN89Ek8bH3I3g4zaYZTe3um7x02e6s TgYcoKeX6LZmg0HK/TQV41O1QfWtTvSbV8gYph9kFH37gE72HeIZbxO+dKelBZg9 gVBw+H7jzYzbAZcXpFp9tR6qmW1s3qgmaOxOa55qJQK3hql9CvnbYar1ioOawYbd 5CPRuf4v6E4QfszlRAO3MZCRlBnpsRbJcANFlxp53oQBV4r7fr8IQ6qA11b94qzB LY1zVNw/4rYu5dkjo3D0Pod13cHzeICBqdynTVqT6TfWbHbufaskbCEBNOh7Vlxr T9bBx86VKedr9mipE4sXXExWvtHlDZTRhmNJ7wSuqM0edptd7lNiHPmd6wCDufVZ HJrLhGE9KadhIeScdslN4/PMSe9UicYVrwQru8OKFecjmky+250RY7r1d7/StaFc /2RaomOi1Mg16Hpq/tH0 =6QJe -----END PGP SIGNATURE----- --Signature=_Mon__22_Aug_2016_21_14_59_+0200_SHoHrJSOQTIYJZ0H-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---