aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdnsd/APKBUILD
blob: 75d4850ec08f31d0fa884a040a2682cb031167a4 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=gdnsd
pkgver=1.9.0
pkgrel=2
pkgdesc="Geographic Authoritative DNS server"
url="https://github.com/blblack/gdnsd/"
arch="all"
license="GPL-3"
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="https://github.com/blblack/gdnsd/archive/v$pkgver.tar.gz
	0001-Fix-auth-section-of-ANY-query-on-CNAME.patch
	0001-Fix-ztree_txn_-API-to-work.patch
	0002-Impelement-loading-of-DJBDNS-zone-files.patch
	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
	./autogen.sh || return 1
}

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
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/gdnsd/*.la
        install -Dm755 "$srcdir"/gdnsd.initd \
		"$pkgdir"/etc/init.d/gdnsd || return 1
}

md5sums="17b5450d6b78f73bb3f47f7b2d1e5f0f  v1.9.0.tar.gz
c6229e37f4d3f9c2bec7f8e56ef93b0c  0001-Fix-auth-section-of-ANY-query-on-CNAME.patch
64b0232acbd664db83ff2ac800cb5459  0001-Fix-ztree_txn_-API-to-work.patch
bc54485f31d09b0c83eb78dee4cd7446  0002-Impelement-loading-of-DJBDNS-zone-files.patch
85f07d47b324a8913cb87a45067d4f44  gdnsd.initd"
sha256sums="955970ddd07c9926450a07877f106124a57dd56913f40e8fe2262287a2377db0  v1.9.0.tar.gz
459b8fab55c701ffa196e6838056322c60129ab3646eefac4dd4900df8300e2a  0001-Fix-auth-section-of-ANY-query-on-CNAME.patch
f42d30f3aa88d5fedcf1642de33132beafade609c041ed9f5943ba3da9d7c2fb  0001-Fix-ztree_txn_-API-to-work.patch
f78f0071812ef675e7b57cfa8d0edfcd00be84f6e320afedcf9352bc3a08a197  0002-Impelement-loading-of-DJBDNS-zone-files.patch
dd1ee7fa4063455f127c444b467625fd12cc51349858757614607cf367804a74  gdnsd.initd"
sha512sums="666cb34241fa3dd345d6dbde6d9166c691e8418eaf913dd2b1a7d1c3aa6b1a6f8d7d74b6f6e7804a989951b45d10e69f34bce647737b8460c5b0fc18e25150aa  v1.9.0.tar.gz
703ef89071a21db03f14efa1fc0d269fbd1d50cc6861cd9912cad1076d0cfe91e7cfc4760a6355cca91df1d58387431c3f53ffa8b19342bde54bc850ff80b278  0001-Fix-auth-section-of-ANY-query-on-CNAME.patch
c8a1a23a623dcacf3cd799929a974edbe29e0ab36ef85ada4047dd04726c96ff040eff733509f523b9982aa8956408b9a654f8c6c6c26e454773b3b81d4f49cb  0001-Fix-ztree_txn_-API-to-work.patch
c32e7bfd09006344cc53b32fe8597c5d9744d2d66723e0eea6ba4a5ec4db39c5700c844d880bacd41862126a21cdaaca276b8510a512e7f1b5ccdcfdb5ab1f1b  0002-Impelement-loading-of-DJBDNS-zone-files.patch
0e8263182bbfa52aa8176443373d5de8b05dfb3f6d4f3268e0deecaca24832125bb3fa59309a4880bd7ae76ffb612ecb61f6cf00732f0237a4de21fadae219b5  gdnsd.initd"