2017-06-03 00:39:51 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: Alexander Rødseth <rodseth@gmail.com>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# Contributor: Remi Gacogne <rgacogne[at]archlinux[dot]org>
|
2018-01-19 13:45:46 +00:00
|
|
|
# Contributor: Pieter Lexis <pieter[dot]lexis[at]powerdns[dot]com>
|
2017-06-03 00:39:51 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
|
|
|
|
pkgname=powerdns
|
2020-11-10 18:56:19 +00:00
|
|
|
pkgver=4.3.1
|
2020-12-13 18:55:22 +00:00
|
|
|
pkgrel=3
|
2017-06-03 00:39:51 +00:00
|
|
|
pkgdesc='Authoritative DNS server'
|
2018-01-19 13:45:46 +00:00
|
|
|
url='https://www.powerdns.com/'
|
2017-11-27 19:50:08 +00:00
|
|
|
arch=('x86_64')
|
2017-06-03 00:39:51 +00:00
|
|
|
license=('GPL2')
|
2020-11-10 18:56:19 +00:00
|
|
|
depends=('boost-libs' 'libcurl.so' 'libsodium' 'lmdb' 'luajit' 'openssl' 'protobuf'
|
|
|
|
'sqlite' 'systemd-libs')
|
|
|
|
makedepends=('boost' 'geoip' 'libldap' 'mariadb-libs' 'curl' 'libmaxminddb'
|
|
|
|
'postgresql-libs' 'systemd' 'tinycdb' 'unixodbc' 'yaml-cpp')
|
2018-01-19 13:45:46 +00:00
|
|
|
optdepends=('geoip: GeoIP backend'
|
2019-01-18 13:33:01 +00:00
|
|
|
'mariadb-libs: MariaDB/MySQL and MyDNS backend'
|
2017-06-03 00:39:51 +00:00
|
|
|
'libldap: LDAP backend'
|
2020-11-10 18:56:19 +00:00
|
|
|
'libmaxminddb: MaxMindDB GeoIP2 database for the GeoIP backend'
|
2018-01-19 13:45:46 +00:00
|
|
|
'postgresql-libs: PostgreSQL backend'
|
|
|
|
'unixodbc: ODBC backend'
|
|
|
|
'tinycdb: TinyDNS backend'
|
2017-06-03 00:39:51 +00:00
|
|
|
'yaml-cpp: GeoIP backend')
|
|
|
|
provides=('pdns')
|
|
|
|
conflicts=('pdns')
|
|
|
|
backup=('etc/powerdns/pdns.conf')
|
2018-01-19 13:45:46 +00:00
|
|
|
source=(https://downloads.powerdns.com/releases/pdns-${pkgver}.tar.bz2{,.asc}
|
2020-12-09 15:15:48 +00:00
|
|
|
boost-1.73.patch
|
2020-09-22 23:17:25 +00:00
|
|
|
sysusers.conf)
|
2020-11-10 18:56:19 +00:00
|
|
|
sha512sums=('e61e23544f1e57c1ec3a85b4edbc3ff3e8e831410237afdc8896e9f34602774c1dc8bd02eb7440e765262fcc988f98e47b6f1b7945427b1f4a59dd6b84b9437e'
|
2018-01-19 13:45:46 +00:00
|
|
|
'SKIP'
|
2020-12-09 15:15:48 +00:00
|
|
|
'ba902584687f0243a5d44a7733ed817432c603c0cdfd4d80e416b7dfac76f6631e256c5b59507e14a171cc63e47c8d0c8066bb54da0578c66f2ae64abce51fcf'
|
2020-09-22 23:17:25 +00:00
|
|
|
'522bde8b76367db6edd461fca8f81d50304a4d764addf33774b3e2c5c93a9e72d93993f54ddd4ee887ceeccf70280aceea3ffaf6370d26310e0a7ebbbf61f26a')
|
2018-05-09 00:30:28 +00:00
|
|
|
validpgpkeys=('B76CD4671C0968BAA87DE61C5E50715BF2FFE1A7' # Winkels, Erik <erik.winkels@open-xchange.com>
|
|
|
|
'16E12866B7738C73976A57436FFC33439B0D04DF' # Peter van Dijk <peter.van.dijk@powerdns.com>
|
2018-02-21 20:36:10 +00:00
|
|
|
'FBAE0323821C7706A5CA151BDCF513FA7EED19F3' ) # Pieter Lexis <pieter.lexis@powerdns.com>
|
2017-06-03 00:39:51 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd pdns-${pkgver}
|
2020-12-09 15:15:48 +00:00
|
|
|
patch -Np1 -i ../boost-1.73.patch
|
2018-01-19 13:45:46 +00:00
|
|
|
# Patch the Makefile.in's so /powerdns is used instead of /pdns (for e.g. $LIBDIR)
|
|
|
|
# This allows for running pdns_server without setting `module-dir` in the config.
|
|
|
|
find . -name 'Makefile.in' -exec sed -i 's,pkglibdir = \$(libdir)/@PACKAGE@,pkglibdir = $(libdir)/powerdns,' {} \;
|
2017-06-03 00:39:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd pdns-${pkgver}
|
|
|
|
[[ $CARCH == arm || $CARCH == armv6h ]] && LIBS="-latomic"
|
|
|
|
LIBS=$LIBS ./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc/powerdns \
|
2018-01-19 13:45:46 +00:00
|
|
|
--sbindir=/usr/bin \
|
2017-06-03 00:39:51 +00:00
|
|
|
--with-modules='' \
|
2020-11-10 18:56:19 +00:00
|
|
|
--with-dynmodules="bind geoip gmysql godbc gpgsql gsqlite3 ldap lmdb lua2 pipe random remote tinydns" \
|
2017-06-03 00:39:51 +00:00
|
|
|
--docdir=/usr/share/doc/powerdns \
|
2020-11-10 18:56:19 +00:00
|
|
|
--with-libsodium \
|
2017-06-03 00:39:51 +00:00
|
|
|
--enable-tools \
|
2020-11-10 18:56:19 +00:00
|
|
|
--enable-ixfrdist \
|
2017-06-03 00:39:51 +00:00
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--enable-reproducible \
|
|
|
|
--enable-unit-tests \
|
2020-11-10 18:56:19 +00:00
|
|
|
--enable-systemd \
|
|
|
|
--with-service-user=powerdns \
|
|
|
|
--with-service-group=powerdns
|
2017-06-03 00:39:51 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
make -C pdns-${pkgver} check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-01-19 13:45:46 +00:00
|
|
|
make -C pdns-${pkgver} DESTDIR="${pkgdir}" install
|
2020-11-10 18:56:19 +00:00
|
|
|
install -Dm 644 sysusers.conf "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
|
2017-06-03 00:39:51 +00:00
|
|
|
mv "${pkgdir}/etc/powerdns/pdns.conf"{-dist,}
|
2018-01-19 13:45:46 +00:00
|
|
|
# Ensure we run as the powerdns user
|
|
|
|
sed -i "s,^# \(set.id=\),\1${pkgname}," "${pkgdir}/etc/powerdns/pdns.conf"
|
2017-06-03 00:39:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|