blob: 9506deee3cce9fe73fe1f49da625328355a2bed2 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $Id: PKGBUILD 115160 2011-03-17 09:56:37Z andrea $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=pdns
pkgver=2.9.22
pkgrel=7
pkgdesc="A modern, advanced and high performance authoritative-only nameserver"
arch=(i686 x86_64)
url="http://www.powerdns.com"
license=('GPL')
depends=('gcc-libs' 'zlib' 'postgresql-libs' 'libmysqlclient' 'sqlite3' 'libldap')
makedepends=('boost')
provides=('pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql')
replaces=('pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql')
conflicts=('pdns-ldap' 'pdns-mysql' 'pdns-sqlite' 'pdns-pgsql')
install=pdns.install
options=(!makeflags !libtool)
backup=('etc/powerdns/pdns.conf')
source=(http://downloads.powerdns.com/releases/${pkgname}-${pkgver}.tar.gz
2.9.18-default-mysql-options.patch
pdns-2.9.22-gcc44.patch
pdns.rc
pdns.conf)
md5sums=('8a6ff842733aca885577eb54e983a1ff'
'90fb32e843326d14359c508cef855929'
'530642273005bdabae27792098834ea6'
'16e2d32e9781be7afa8f1700740bcdb0'
'a390ab49c4fcde205629be33bddc2e6c')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/2.9.18-default-mysql-options.patch"
patch -Np1 -i "${srcdir}/pdns-2.9.22-gcc44.patch"
touch AUTHORS NEWS
libtoolize --force --copy
aclocal
autoconf
automake --add-missing
./configure --prefix=/usr \
--sysconfdir=/etc/powerdns \
--libexecdir=/usr/lib \
--libdir=/usr/lib/powerdns \
--mandir=/usr/share/man \
--with-modules="" \
--with-dynmodules="ldap pipe gmysql gpgsql gsqlite3 geo" \
--disable-recursor \
--disable-static
make
make DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/etc/rc.d"
rm "${pkgdir}/etc/powerdns/pdns.conf-dist"
install -m644 "${srcdir}/pdns.conf" "${pkgdir}/etc/powerdns/"
install -m755 "${srcdir}/pdns.rc" "${pkgdir}/etc/rc.d/pdns"
}
|