2013-04-02 21:39:40 +00:00
|
|
|
# $Id: PKGBUILD 87427 2013-03-31 19:18:34Z stephane $
|
|
|
|
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - need to build with -O1 to get around gcc ICE bug
|
|
|
|
|
|
|
|
pkgname=pdns
|
2013-07-11 16:33:25 +00:00
|
|
|
pkgver=3.3
|
2013-12-07 17:48:39 +00:00
|
|
|
pkgrel=3
|
2013-04-02 21:39:40 +00:00
|
|
|
pkgdesc='Modern, advanced and high performance authoritative-only nameserver'
|
|
|
|
arch=('x86_64' 'i686')
|
|
|
|
url='http://www.powerdns.com/'
|
|
|
|
license=('GPL')
|
|
|
|
depends=('boost-libs' 'gcc-libs' 'postgresql-libs' 'libmariadbclient' 'sqlite' 'libldap' 'lua51')
|
|
|
|
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')
|
2013-12-07 17:48:39 +00:00
|
|
|
options=('!makeflags')
|
2013-04-02 21:39:40 +00:00
|
|
|
backup=('etc/powerdns/pdns.conf')
|
|
|
|
source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.gz"
|
|
|
|
'pdns.service'
|
|
|
|
'pdns.conf')
|
2013-07-11 16:33:25 +00:00
|
|
|
sha256sums=('93417bb418ccd1eaf85fc98aa9f687ed175de388fa2624a1978b7cd40dc2b0b6'
|
2013-05-13 23:43:38 +00:00
|
|
|
'b2358a5951ac944feee15ac03d42ffe9c2a72fa6f57746f77ef8997d54a82040'
|
2013-05-09 19:22:33 +00:00
|
|
|
'a1afcccb0d2fb6a6f7a5960de95f8d38ce1ac75ac5e3dcecf09e49f0de10166e')
|
2013-04-02 21:39:40 +00:00
|
|
|
|
2013-05-09 19:22:33 +00:00
|
|
|
prepare() {
|
2013-04-02 21:39:40 +00:00
|
|
|
CFLAGS=`echo $CFLAGS | sed -e 's/-O2/-O1/'` && CXXFLAGS="$CFLAGS"
|
2013-12-07 17:48:39 +00:00
|
|
|
touch "$pkgname-$pkgver/AUTHORS" "$pkgname-$pkgver/NEWS"
|
2013-05-09 19:22:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2013-12-07 17:48:39 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2013-05-09 19:22:33 +00:00
|
|
|
|
2013-04-02 21:39:40 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc/powerdns \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--libdir=/usr/lib/powerdns \
|
|
|
|
--mandir=/usr/share/man \
|
2013-05-13 23:43:38 +00:00
|
|
|
--with-modules='' \
|
2013-04-02 21:39:40 +00:00
|
|
|
--with-dynmodules="ldap pipe gmysql gpgsql gsqlite3 geo" \
|
2013-05-13 23:43:38 +00:00
|
|
|
--disable-static \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--bindir=/usr/bin
|
2013-04-02 21:39:40 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-12-07 17:48:39 +00:00
|
|
|
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
|
2013-04-02 21:39:40 +00:00
|
|
|
install -m644 "$srcdir/pdns.conf" "$pkgdir/etc/powerdns/"
|
|
|
|
install -Dm644 "$srcdir/pdns.service" \
|
|
|
|
"$pkgdir/usr/lib/systemd/system/pdns.service"
|
2013-07-11 16:33:25 +00:00
|
|
|
rm -f "$pkgdir/etc/powerdns/pdns.conf-dist"
|
2013-04-02 21:39:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|