blob: 0b36adeddab45af081038c4f8b851d807f795cc9 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=pdns
pkgver=4.0.3
pkgrel=0
pkgdesc="PowerDNS Authoritative Server"
url="http://www.powerdns.com/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev boost-dev lua-dev openldap-dev mariadb-dev
postgresql-dev sqlite-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc
$pkgname-backend-bind:backend_bind
$pkgname-backend-ldap:backend_ldap
$pkgname-backend-mysql:backend_mysql
$pkgname-backend-pgsql:backend_pgsql
$pkgname-backend-pipe:backend_pipe
$pkgname-backend-sqlite3:backend_sqlite3"
pkgusers="pdns"
pkggroups="pdns"
source="http://downloads.powerdns.com/releases/pdns-$pkgver.tar.bz2
pdns.initd
pdns.conf"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure --prefix=/usr \
--sysconfdir=/etc/$pkgname \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--libdir=/usr/lib/pdns \
--with-modules="" \
--with-dynmodules="bind ldap gmysql gpgsql pipe gsqlite3" \
--disable-static \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
rm "$pkgdir"/etc/$pkgname/$pkgname.conf-dist
install -m600 -D "$srcdir"/$pkgname.conf \
"$pkgdir"/etc/$pkgname/$pkgname.conf || return 1
chown pdns:pdns "$pkgdir"/etc/$pkgname/$pkgname.conf || return 1
}
backend_bind() { _mv_backend bind; }
backend_ldap() { _mv_backend ldap; }
backend_mysql() { _mv_backend gmysql; }
backend_pgsql() { _mv_backend gpgsql; }
backend_pipe() { _mv_backend pipe; }
backend_sqlite3() { _mv_backend gsqlite3 sqlite; }
_mv_backend() {
local backend=$1
pkgdesc="${backend} backend module for PowerDNS"
depends="$pkgname ${2:-}"
mkdir -p "$subpkgdir"/usr/lib/pdns/pdns || return 1
mv "$pkgdir"/usr/lib/pdns/pdns/lib${backend}backend.so \
"$subpkgdir"/usr/lib/pdns/pdns/ || return 1
}
sha512sums="58d33ac6cf457a916bae6abd8d2dc17f76fbcd1bd9e649948584dd669f5596b43e3e4d91841700ea1ea2cd1ac102749e503cd9075273540f33a2321e20d8bfc2 pdns-4.0.3.tar.bz2
71257be925fe57b15ebf29a7810cd70581cb867416ab9562300a1bbc3eb94fcb92ea2eb95f15e3ee3bd409468911077c50f90a2501801b0c8c49ed979f41f3a4 pdns.initd
acde76a5a51232dbd2b1b9fed95328f5bb59e33718338ffaa47618806588a9c3c8691c7e7270944d9e2f40b1fb69fc33e204e2fdfbc9546ab723fc428d2a7955 pdns.conf"
|