blob: 71deec798213ba862af9b846d246c1ef2acf89b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $Id: PKGBUILD 90965 2013-05-16 18:09:50Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Jan Steffens <heftig@archlinux.org>
pkgname=pdns-recursor
pkgver=3.5.1
pkgrel=1
pkgdesc='PowerDNS recursor'
url='https://www.powerdns.com/'
license=('GPL')
arch=('x86_64' 'i686')
depends=('gcc-libs' 'lua51')
makedepends=('boost')
backup=('etc/powerdns/recursor.conf')
source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.bz2"
'pdns-recursor.service')
sha256sums=('30655996d1963e259d4fc8648184031bf9cb83f64510d0b00539d3ce698b2824'
'51688d9576736fdf210048098fa96c8710bfbd6a63eb4d69d20bac57b299b5f9')
build() {
cd "$srcdir/$pkgname-$pkgver"
make LUA=1 \
LUA_CPPFLAGS_CONFIG="$(pkg-config --cflags lua5.1)" \
LUA_LIBS_CONFIG="$(pkg-config --libs lua5.1)"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make SBINDIR="/usr/bin" DESTDIR="$pkgdir" install
mv "$pkgdir/etc/powerdns/recursor.conf-dist" \
"$pkgdir/etc/powerdns/recursor.conf"
rm -r "$pkgdir/etc/init.d"
install -Dm644 "$srcdir/pdns-recursor.service" \
"$pkgdir/usr/lib/systemd/system/pdns-recursor.service"
}
# vim:set ts=2 sw=2 et:
|