blob: cafcdb009d963b3a48417ace4c42ae70d936dbc5 (
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
79
80
81
82
83
84
85
86
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Contributor: Daniel Isaksen <d@duniel.no>
# Contributor: Fabian Zoske <fabian@zoske.it>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=pdns
pkgver=4.1.0
pkgrel=0
pkgdesc="PowerDNS Authoritative Server"
url="https://www.powerdns.com/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev boost-dev lua-dev openldap-dev mariadb-dev
postgresql-dev sqlite-dev geoip-dev yaml-cpp-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
$pkgname-backend-geoip:backend_geoip"
pkgusers="pdns"
pkggroups="pdns"
source="http://downloads.powerdns.com/releases/pdns-$pkgver.tar.bz2
pdns.initd
pdns.conf"
builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 4.0.5-r0:
# - CVE-2017-15091
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 geoip" \
--disable-static
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
rm "$pkgdir"/etc/$pkgname/$pkgname.conf-dist
install -m600 -D "$srcdir"/$pkgname.conf \
"$pkgdir"/etc/$pkgname/$pkgname.conf
chown pdns:pdns "$pkgdir"/etc/$pkgname/$pkgname.conf
}
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; }
backend_geoip() { _mv_backend geoip geoip; }
_mv_backend() {
local backend=$1
pkgdesc="${backend} backend module for PowerDNS"
depends="$pkgname ${2:-}"
mkdir -p "$subpkgdir"/usr/lib/pdns/pdns
mv "$pkgdir"/usr/lib/pdns/pdns/lib${backend}backend.so \
"$subpkgdir"/usr/lib/pdns/pdns/
}
sha512sums="4b2b42f4893f8aac3cf07a6c8a3c999cb728a5907a710f1a5c9c8d08377ecb63e202e5eececbefc069c8f1d97a29b2aa607da7cf2bcc6335a72222418e409e77 pdns-4.1.0.tar.bz2
3f5b202c56408168ddbf81b47f5c48ca65de91ada88751213a06a1096334b89176c5a6a58f3c6a893a2d15b51ece9f2a64d7d2ea836220a3e45fe362969c6cfa pdns.initd
c8f8d152c4d29660aa56a9dbfd0d268474f9bd26993ad9e7d8ef54725d02a02e27c1a11adc67bf40f5dd871a677648d45fa76222a063907e0dfb2420111d5dc8 pdns.conf"
|