PKGBUILDs/extra/powerdns-recursor/PKGBUILD

70 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>
2021-02-12 13:43:30 +00:00
# Maintainer: Remi Gacogne <rgacogne[at]archlinux[dot]org>
2017-06-03 00:41:01 +00:00
# Contributor: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Jan Steffens <heftig@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2018-01-26 01:07:57 +00:00
# - remove makedepend on pandoc
2017-06-03 00:41:01 +00:00
pkgname=powerdns-recursor
2024-07-25 10:25:34 +00:00
pkgver=5.1.1
2024-09-02 19:27:54 +00:00
pkgrel=2
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')
2024-02-13 14:52:32 +00:00
license=('GPL-2.0-only')
2024-01-15 21:01:58 +00:00
depends=('gcc-libs' 'boost-libs' 'libcap' 'libcurl.so' 'libsodium' 'systemd-libs' 'luajit' 'openssl'
2021-05-25 13:10:44 +00:00
'libboost_context.so' 'fstrm' 'net-snmp')
2024-01-15 21:01:58 +00:00
makedepends=('boost' 'ragel' 'rust' 'systemd')
options=(!lto)
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}
2024-09-02 19:27:54 +00:00
sysusers.conf
powerdns-5_1_1-2_fix-build-with-boost-1_86_0.patch)
2024-07-25 10:25:34 +00:00
sha512sums=('59129312e79bb48ce5af4de0c90f36765084708fd7b728655b07ca0cf68ba618a4bf517a9e695caaecc57e5edef4f6fa373719aa0b3e82e25d17a077883784d0'
2020-05-19 12:36:32 +00:00
'SKIP'
2024-09-02 19:27:54 +00:00
'63b3f0664d38fbbcb6b1c914cee050a27eca0a15550962973743580dd5d3ace2e68272ca2d856d53cc74001fe9246d61207ebbc74524c096736777ed08c88e72'
'6714f61fb768393aa5123aa84be624ea6ab41a6aca6e38b41caebb8f2d935356323cb30bcdd56b21994ac1d4b399f3160cf61651817329702f4dcf387e81ae15')
2022-01-31 15:00:19 +00:00
validpgpkeys=('FBAE0323821C7706A5CA151BDCF513FA7EED19F3' # Peter van Dijk <peter.van.dijk@powerdns.com>
2017-11-27 19:50:24 +00:00
'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}
2024-09-02 19:27:54 +00:00
patch -Np2 < ../powerdns-5_1_1-2_fix-build-with-boost-1_86_0.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}
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 \
2021-12-17 14:44:48 +00:00
--enable-dns-over-tls \
2020-06-02 13:54:58 +00:00
--with-libsodium \
--with-lua=luajit \
2024-01-15 21:01:58 +00:00
--with-net-snmp \
2023-06-30 11:08:48 +00:00
--enable-auto-var-init=zero \
2020-06-02 13:54:58 +00:00
--with-service-user=pdns-recursor \
2024-05-14 12:44:10 +00:00
--with-service-group=pdns-recursor \
--with-libcrypto=/usr # workaround for https://github.com/PowerDNS/pdns/issues/14084
2017-06-03 00:41:01 +00:00
make
}
package() {
cd pdns-recursor-${pkgver}
make DESTDIR="${pkgdir}" install
2024-07-12 12:52:51 +00:00
mv "${pkgdir}/etc/powerdns/recursor.yml-dist" "${pkgdir}/etc/powerdns/recursor.conf"
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: