aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-10-27 06:11:35 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-10-27 06:11:46 +0000
commita274400e95b3ef7c072496be2eb36c553af52b4c (patch)
tree168934571b22897822b251f0d77867ae2a632d5b /main
parent2726f89ea59c3e67c75e16c0d982de3c0697015d (diff)
downloadaports-a274400e95b3ef7c072496be2eb36c553af52b4c.tar.bz2
aports-a274400e95b3ef7c072496be2eb36c553af52b4c.tar.xz
main/gdnsd: upgrade to 2.2.2, modernize
Diffstat (limited to 'main')
-rw-r--r--main/gdnsd/APKBUILD58
1 files changed, 20 insertions, 38 deletions
diff --git a/main/gdnsd/APKBUILD b/main/gdnsd/APKBUILD
index 852f31c1e9..e5b2f8bd27 100644
--- a/main/gdnsd/APKBUILD
+++ b/main/gdnsd/APKBUILD
@@ -1,69 +1,51 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=gdnsd
-pkgver=1.11.5
-pkgrel=3
+pkgver=2.2.2
+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"
+makedepends="userspace-rcu-dev libev-dev libcap-dev libmaxminddb-dev ragel autoconf automake libtool"
+checkdepends="perl perl-libwww perl-socket6 perl-io-socket-inet6 perl-http-daemon perl-test-harness perl-test-harness-utils"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="gdnsd-$pkgver.tar.gz::https://github.com/blblack/gdnsd/archive/v$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
+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
+ default_prepare
+ autoreconf -vif
}
build() {
- cd "$_builddir"
+ 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
+ --enable-fast-install
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/gdnsd.initd \
- "$pkgdir"/etc/init.d/gdnsd || return 1
+ "$pkgdir"/etc/init.d/gdnsd
}
-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
+sha512sums="056f4976fb5e0ae7b7cef649e0b7be43fbcf85331781240c63b508367aa71d32c2cd2e12075fd520738ab313366cdd3bf79edd86950993e8fa2274f6a3ee64b0 gdnsd-2.2.2.tar.gz
27b6ed95452072ddbf767c87202bde8f70fb5272395a599ad6fec1bd5d0eaf1cefc217abf08531e5e0c0d7846018e31ffd215c0f8e92b151fc0e419cdc81e3f1 gdnsd.initd"