PKGBUILDs/community/powerdns-recursor/PKGBUILD
2019-03-12 23:41:28 +00:00

52 lines
1.8 KiB
Bash

# 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
# - remove makedepend on pandoc
pkgname=powerdns-recursor
pkgver=4.1.11
pkgrel=2
pkgdesc='Resolving DNS server'
url='https://www.powerdns.com/'
arch=('x86_64')
license=('GPL2')
depends=('gcc-libs' 'boost-libs' 'libsodium' 'systemd-libs' 'lua' 'openssl' 'protobuf'
'libboost_context.so')
makedepends=('boost' 'inetutils' 'ragel' 'systemd')
provides=('pdns-recursor')
conflicts=('pdns-recursor')
backup=('etc/powerdns/recursor.conf')
source=(https://downloads.powerdns.com/releases/pdns-recursor-${pkgver}.tar.bz2{,.asc})
sha512sums=('6041d31f0a517786f44a7fa22c7bfa94d5d4bdc3a7f349d2b47bc66be87404fe8eaf76f45ca18ef8ab96a45c0271f46fdba93a51fbda2542a3ad96e10f51c1d1'
'SKIP')
validpgpkeys=('B76CD4671C0968BAA87DE61C5E50715BF2FFE1A7' # Pieter Lexis <pieter.lexis@powerdns.com>
'FBAE0323821C7706A5CA151BDCF513FA7EED19F3' # Peter van Dijk <peter.van.dijk@powerdns.com>
'16E12866B7738C73976A57436FFC33439B0D04DF') # Winkels, Erik <erik.winkels@open-xchange.com>
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 \
--enable-systemd \
--enable-protobuf \
--enable-libsodium
make
}
package() {
cd pdns-recursor-${pkgver}
make DESTDIR="${pkgdir}" install
mv "${pkgdir}/etc/powerdns/recursor.conf"{-dist,}
}
# vim: ts=2 sw=2 et: