PKGBUILDs/community/powerdns-recursor/PKGBUILD

67 lines
2.5 KiB
Bash
Raw Normal View History

2017-06-03 00:41:01 +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: Jan Steffens <heftig@archlinux.org>
# Contributor: Remi Gacogne <rgacogne[at]archlinux[dot]org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - explicitly link v5/v6 with libatomic
2018-01-26 01:07:57 +00:00
# - remove makedepend on pandoc
2017-06-03 00:41:01 +00:00
pkgname=powerdns-recursor
2020-10-15 00:02:15 +00:00
pkgver=4.3.5
2020-12-09 15:16:19 +00:00
pkgrel=3
2017-06-03 00:41:01 +00:00
pkgdesc='Resolving DNS server'
url='https://www.powerdns.com/'
2017-11-27 19:50:24 +00:00
arch=('x86_64')
2017-06-03 00:41:01 +00:00
license=('GPL2')
2020-06-02 13:54:58 +00:00
depends=('gcc-libs' 'boost-libs' 'libsodium' 'systemd-libs' 'luajit' 'openssl' 'protobuf'
'libboost_context.so' 'fstrm' 'net-snmp' 'libprotobuf.so')
2018-08-06 13:11:38 +00:00
makedepends=('boost' 'inetutils' 'ragel' 'systemd')
2017-06-03 00:41:01 +00:00
provides=('pdns-recursor')
conflicts=('pdns-recursor')
backup=('etc/powerdns/recursor.conf')
2020-05-19 12:36:32 +00:00
source=(https://downloads.powerdns.com/releases/pdns-recursor-${pkgver}.tar.bz2{,.asc}
2020-12-09 15:16:19 +00:00
boost-1.73.patch
2020-07-02 12:43:38 +00:00
sysusers.conf)
2020-10-15 00:02:15 +00:00
sha512sums=('2d39e6016000951c0beca38b26c41664b57c059dee762d7499f34e599ed6c2653af73edb31ba5a8d35f749534f24c0d85b6aedf4c35dc8a05777ffebd1b25851'
2020-05-19 12:36:32 +00:00
'SKIP'
2020-12-09 15:16:19 +00:00
'5000bcb3e58c559d4e59105cedc7befb037bca3ef62730718ee6113c940fdb462d0ff7b47b8881d30139d7dfd1e5832a33dbe7f57b48e385f5359406486de7fe'
2020-07-02 12:43:38 +00:00
'63b3f0664d38fbbcb6b1c914cee050a27eca0a15550962973743580dd5d3ace2e68272ca2d856d53cc74001fe9246d61207ebbc74524c096736777ed08c88e72')
2017-07-18 23:59:12 +00:00
validpgpkeys=('B76CD4671C0968BAA87DE61C5E50715BF2FFE1A7' # Pieter Lexis <pieter.lexis@powerdns.com>
2017-11-27 19:50:24 +00:00
'FBAE0323821C7706A5CA151BDCF513FA7EED19F3' # Peter van Dijk <peter.van.dijk@powerdns.com>
'16E12866B7738C73976A57436FFC33439B0D04DF') # Winkels, Erik <erik.winkels@open-xchange.com>
2017-06-03 00:41:01 +00:00
2020-05-19 12:36:32 +00:00
prepare() {
cd pdns-recursor-${pkgver}
2020-12-09 15:16:19 +00:00
patch -Np1 -i ../boost-1.73.patch
2020-06-02 13:54:58 +00:00
autoreconf -i
2020-05-19 12:36:32 +00:00
}
2017-06-03 00:41:01 +00:00
build() {
cd pdns-recursor-${pkgver}
[[ $CARCH == arm || $CARCH == armv6h ]] && LIBS="-latomic"
LIBS=$LIBS ./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc/powerdns \
--disable-silent-rules \
--enable-reproducible \
2018-01-26 01:07:57 +00:00
--enable-systemd \
2020-06-02 13:54:58 +00:00
--with-protobuf \
--with-libsodium \
--with-lua=luajit \
--with-service-user=pdns-recursor \
--with-service-group=pdns-recursor
2017-06-03 00:41:01 +00:00
make
}
package() {
cd pdns-recursor-${pkgver}
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/etc/powerdns/recursor.conf"{-dist,}
2020-06-02 13:54:58 +00:00
install -Dm 644 "${srcdir}/sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/powerdns-recursor.conf"
2017-06-03 00:41:01 +00:00
}
# vim: ts=2 sw=2 et: