# Contributor: Natanael Copa # Maintainer: Timo Teräs pkgname=gdnsd pkgver=1.11.3 pkgrel=0 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="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 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="c5a96b0a487c9bc5574bdb5be52dca9d gdnsd-1.11.3.tar.gz 64b0232acbd664db83ff2ac800cb5459 0001-Fix-ztree_txn_-API-to-work.patch 87aaa21fb7c4f1b84f27e120db39b722 0002-Impelement-loading-of-DJBDNS-zone-files.patch 85f07d47b324a8913cb87a45067d4f44 gdnsd.initd" sha256sums="9c3ad455c4b33bc5897f43ed389b011730edfc17acfc5225a2daa3789303a5a0 gdnsd-1.11.3.tar.gz f42d30f3aa88d5fedcf1642de33132beafade609c041ed9f5943ba3da9d7c2fb 0001-Fix-ztree_txn_-API-to-work.patch 445fc93fdacf8f320b1a3bf21c9458df1426437fae588e4f53ae808a35f719ac 0002-Impelement-loading-of-DJBDNS-zone-files.patch dd1ee7fa4063455f127c444b467625fd12cc51349858757614607cf367804a74 gdnsd.initd" sha512sums="b61eb9f49b4aa99eb88537f6c0a367e25d8b0f75280f9d9a89458120a9ca0bace27bf206a8d372b02763814879e271db8bfe3027372523cdb1ed9eff739e9730 gdnsd-1.11.3.tar.gz c8a1a23a623dcacf3cd799929a974edbe29e0ab36ef85ada4047dd04726c96ff040eff733509f523b9982aa8956408b9a654f8c6c6c26e454773b3b81d4f49cb 0001-Fix-ztree_txn_-API-to-work.patch 338ccd7ae56cd099d38c63db98a11ae05c2750ce795d2513a04ebbdbb6dda89e123bde0844b52adef5de4ec99ebf7c2ab77f4672b99a3b00398b45df1d601215 0002-Impelement-loading-of-DJBDNS-zone-files.patch 0e8263182bbfa52aa8176443373d5de8b05dfb3f6d4f3268e0deecaca24832125bb3fa59309a4880bd7ae76ffb612ecb61f6cf00732f0237a4de21fadae219b5 gdnsd.initd"