# Contributor: Natanael Copa # Maintainer: Timo Teräs pkgname=gdnsd pkgver=1.11.5 pkgrel=0 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="26453eff8db8025b51b5ddc5132dccee gdnsd-1.11.5.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="596f957acb1118fdddde0a3aba36139e79a69bebb9a5add9d91232f060361aa3 gdnsd-1.11.5.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="73997a95badef8a56857ac025c4eac8c3b4f0ccaceb1edcdb9fa7d2dd2e8b35a859202a836bc49996cfb2ea3791a2d211ba2eeb85940322d01a96e62c48b282a gdnsd-1.11.5.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"