aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdnsd/APKBUILD
blob: 175d1f6123207b9a7142d57e74d5e06c9e8264b8 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=gdnsd
pkgver=1.11.4
pkgrel=1
pkgdesc="Geographic Authoritative DNS server"
url="https://github.com/blblack/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="saveas-https://github.com/blblack/gdnsd/archive/v$pkgver.tar.gz/gdnsd-$pkgver.tar.gz
	0001-Fix-ztree_txn_-API-to-work.patch
	0002-Impelement-loading-of-DJBDNS-zone-files.patch
	0003-fix-djbdns-text-parsing.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
        install -Dm755 "$srcdir"/gdnsd.initd \
		"$pkgdir"/etc/init.d/gdnsd || return 1
}

md5sums="de1884fea487a9ee85f7e49f12142761  gdnsd-1.11.4.tar.gz
64b0232acbd664db83ff2ac800cb5459  0001-Fix-ztree_txn_-API-to-work.patch
87aaa21fb7c4f1b84f27e120db39b722  0002-Impelement-loading-of-DJBDNS-zone-files.patch
311085266e946c6f9057f69e549df46d  0003-fix-djbdns-text-parsing.patch
60810c3e123347a4f6ea2b705f69f813  gdnsd.initd"
sha256sums="51a1697a5ffe896b3600f902509ed1ba1a512f0ce6c2444d147a6364261c7af3  gdnsd-1.11.4.tar.gz
f42d30f3aa88d5fedcf1642de33132beafade609c041ed9f5943ba3da9d7c2fb  0001-Fix-ztree_txn_-API-to-work.patch
445fc93fdacf8f320b1a3bf21c9458df1426437fae588e4f53ae808a35f719ac  0002-Impelement-loading-of-DJBDNS-zone-files.patch
591e2a8b1e06a47b37255c9bc0b47ada914fd2079f9e3e5cd609e755ec033597  0003-fix-djbdns-text-parsing.patch
deefe0da6aef63a501b289b0b109f8b67cf21a697724bab477477e9a0e54efdc  gdnsd.initd"
sha512sums="01d84e90f71ffd9ceec31ae233032550c16e6e15fe710ad5edd18e884aba8ef8b98467e9b4f6b07aace9e738f326de262252b825e715b8ec09c1b6d72af32e30  gdnsd-1.11.4.tar.gz
c8a1a23a623dcacf3cd799929a974edbe29e0ab36ef85ada4047dd04726c96ff040eff733509f523b9982aa8956408b9a654f8c6c6c26e454773b3b81d4f49cb  0001-Fix-ztree_txn_-API-to-work.patch
338ccd7ae56cd099d38c63db98a11ae05c2750ce795d2513a04ebbdbb6dda89e123bde0844b52adef5de4ec99ebf7c2ab77f4672b99a3b00398b45df1d601215  0002-Impelement-loading-of-DJBDNS-zone-files.patch
965d5791c883d0ad10bf64ef2b1b67f6ffab87a1cad0be0366f0cf6e26491061481aaa2d00f90c0465250980d227a277e2d2bda20e6b7e4ad94150debed619bf  0003-fix-djbdns-text-parsing.patch
27b6ed95452072ddbf767c87202bde8f70fb5272395a599ad6fec1bd5d0eaf1cefc217abf08531e5e0c0d7846018e31ffd215c0f8e92b151fc0e419cdc81e3f1  gdnsd.initd"