Created
December 15, 2017 14:28
-
-
Save HLFH/939c66ed294ed9eb025956114d66228b to your computer and use it in GitHub Desktop.
pdns 4.1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> | |
# Contributor: Alexander Rødseth <[email protected]> | |
# Contributor: Jan de Groot <[email protected]> | |
# Contributor: Kevin Mihelich <[email protected]> | |
# Contributor: Remi Gacogne <rgacogne[at]archlinux[dot]org> | |
pkgname=powerdns | |
pkgver=4.1.0 | |
pkgrel=1 | |
pkgdesc='Authoritative DNS server' | |
url='http://www.powerdns.com/' | |
arch=('x86_64') | |
license=('GPL2') | |
depends=('boost-libs' 'libsodium' 'systemd' 'lua' 'openssl' 'protobuf' 'sqlite') | |
makedepends=('boost' 'setconf' 'libmariadbclient' 'postgresql-libs' 'lua' 'libldap' | |
'sqlite' 'geoip' 'yaml-cpp' 'pkg-config') | |
optdepends=('libmariadbclient: MariaDB/MySQL backend' | |
'postgresql-libs: PostgreSQL backend' | |
'libldap: LDAP backend' | |
'geoip: GeoIP backend' | |
'yaml-cpp: GeoIP backend') | |
provides=('pdns') | |
conflicts=('pdns') | |
backup=('etc/powerdns/pdns.conf') | |
source=(https://downloads.powerdns.com/releases/pdns-${pkgver}.tar.bz2{,.asc}) | |
sha512sums=('4b2b42f4893f8aac3cf07a6c8a3c999cb728a5907a710f1a5c9c8d08377ecb63e202e5eececbefc069c8f1d97a29b2aa607da7cf2bcc6335a72222418e409e77' | |
'SKIP') | |
validpgpkeys=('B76CD4671C0968BAA87DE61C5E50715BF2FFE1A7' # Winkels, Erik <[email protected]> | |
'16E12866B7738C73976A57436FFC33439B0D04DF') # Pieter Lexis <[email protected]> | |
prepare() { | |
cd pdns-${pkgver} | |
# Default settings | |
for keyvalue in \ | |
allow-recursion=127.0.0.1 \ | |
chroot=/var/empty \ | |
config-dir=/etc/powerdns \ | |
daemon=no \ | |
distributor-threads=3 \ | |
guardian=no \ | |
local-port=53 \ | |
loglevel=3 \ | |
module-dir=/usr/lib/powerdns \ | |
setgid=nobody \ | |
setuid=nobody \ | |
socket-dir=/var/run \ | |
webserver=no | |
do | |
setconf -a pdns.conf "${keyvalue}" | |
done | |
# Using simple so we can bind it to a chroot | |
sed 's|notify|simple|' -i pdns/pdns.service.in | |
} | |
build() { | |
cd pdns-${pkgver} | |
./configure \ | |
--prefix=/usr \ | |
--sysconfdir=/etc/powerdns \ | |
--libexecdir=/usr/lib \ | |
--libdir=/usr/lib \ | |
--mandir=/usr/share/man \ | |
--with-modules='' \ | |
--with-dynmodules="bind gmysql geoip gpgsql gsqlite3 ldap lua pipe random remote" \ | |
--docdir=/usr/share/doc/powerdns \ | |
--sbindir=/usr/bin \ | |
--bindir=/usr/bin \ | |
--with-sqlite3 \ | |
--enable-libsodium \ | |
--enable-tools \ | |
--disable-dependency-tracking \ | |
--disable-silent-rules \ | |
--enable-reproducible \ | |
--enable-unit-tests \ | |
--enable-systemd | |
make | |
} | |
check() { | |
make -C pdns-${pkgver} check | |
} | |
package() { | |
cd pdns-${pkgver} | |
make DESTDIR="${pkgdir}" install | |
# apply defaults to generated pdns.conf | |
mv "${pkgdir}/etc/powerdns/pdns.conf"{-dist,} | |
cat pdns.conf >> "${pkgdir}/etc/powerdns/pdns.conf" | |
# adjust modules dir to match pkgname | |
mv "${pkgdir}/usr/lib/"{pdns,powerdns} | |
} | |
# vim: ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment