aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdnsd/APKBUILD
blob: b0a4b16348b3879742b417024d1aee6c24332d2b (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=gdnsd
pkgver=2.2.2
pkgrel=2
pkgdesc="Geographic Authoritative DNS server"
url="https://github.com/gdnsd/gdnsd/"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="userspace-rcu-dev libev-dev libcap-dev ragel autoconf automake libtool"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="gdnsd-$pkgver.tar.gz::https://github.com/blblack/gdnsd/archive/v$pkgver.tar.gz
	gdnsd.initd"

_builddir="$srcdir"/gdnsd-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf -vif
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-fast-install \
		|| return 1
	make || return 1
	install -Dm755 "$srcdir"/gdnsd.initd \
		"$pkgdir"/etc/init.d/gdnsd || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        install -Dm755 "$srcdir"/gdnsd.initd \
		"$pkgdir"/etc/init.d/gdnsd || return 1
}
md5sums="67714ffdd04c6c15bc5f9dc492794b80  gdnsd-2.2.2.tar.gz
ddb2591fdeac1c0c0f04f6d7c6e0af2c  gdnsd.initd"
sha256sums="e951f29f2710886f2bec089a34acb2857c000eb90565a70b2b96b94534b9c3eb  gdnsd-2.2.2.tar.gz
f6304d3dc49cced580ad30f450887d3daaa98685b901332b62b8c6ec9798ce99  gdnsd.initd"
sha512sums="056f4976fb5e0ae7b7cef649e0b7be43fbcf85331781240c63b508367aa71d32c2cd2e12075fd520738ab313366cdd3bf79edd86950993e8fa2274f6a3ee64b0  gdnsd-2.2.2.tar.gz
9abfeb63156828f98b9a96ddb51c3828311331e56c98f17f0a3bdbd261d351549aef55c6cbcf351fdf2ac0a22f2be7b8e8930e3a0d89d74b6b5bec90bc422f16  gdnsd.initd"