PKGBUILDs/community/pdns/PKGBUILD

65 lines
2 KiB
Bash
Raw Normal View History

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
pkgver=3.2
2013-05-09 19:22:33 +00:00
pkgrel=6
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')
install="$pkgname.install"
options=('!makeflags' '!libtool')
backup=('etc/powerdns/pdns.conf')
source=("http://downloads.powerdns.com/releases/$pkgname-$pkgver.tar.gz"
'pdns.service'
'pdns.conf')
sha256sums=('d1895aba065446dc68e5d7cc792d5303626c71759f61a455531ed65d59c06572'
'2a60c4407bcfe19026ae77d3e3b7b477d5a0c6323c0bc78892e9d907003b442a'
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
cd "$srcdir/$pkgname-$pkgver"
CFLAGS=`echo $CFLAGS | sed -e 's/-O2/-O1/'` && CXXFLAGS="$CFLAGS"
touch AUTHORS NEWS
2013-05-09 19:22:33 +00:00
}
build() {
cd "$srcdir/$pkgname-$pkgver"
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 \
--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 -m644 "$srcdir/pdns.conf" "$pkgdir/etc/powerdns/"
install -Dm644 "$srcdir/pdns.service" \
"$pkgdir/usr/lib/systemd/system/pdns.service"
rm "$pkgdir/etc/powerdns/pdns.conf-dist"
}
# vim:set ts=2 sw=2 et: