summaryrefslogtreecommitdiff
path: root/extra/pdns/PKGBUILD
blob: 8226a5868736e33da6f5cd14bca72f5602fa4db8 (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
55
56
57
58
# $Id: PKGBUILD 151459 2012-02-26 11:41:02Z pierre $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=pdns
pkgver=2.9.22.6
pkgrel=1
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=('ff97ba980b322adb61c3e9c9e9c4adef'
         '90fb32e843326d14359c508cef855929'
         '530642273005bdabae27792098834ea6'
         '16e2d32e9781be7afa8f1700740bcdb0'
         'a390ab49c4fcde205629be33bddc2e6c')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 -i "${srcdir}/2.9.18-default-mysql-options.patch"
  patch -p1 -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
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  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"
}