aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-10-01 20:35:50 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-10-01 20:35:50 +0000
commitd1d15590489ad2a791875ef200cef763d15b1317 (patch)
tree26318117d3eff8fdfce5d18e983a85267c141d02
parent4fc445c95abb6d24fba27b86b40c79adfe66523f (diff)
downloadaports-d1d15590489ad2a791875ef200cef763d15b1317.tar.bz2
aports-d1d15590489ad2a791875ef200cef763d15b1317.tar.xz
testing/gdnsd: upgrade to 2.2.4 and modernize
-rw-r--r--testing/gdnsd/APKBUILD40
1 files changed, 14 insertions, 26 deletions
diff --git a/testing/gdnsd/APKBUILD b/testing/gdnsd/APKBUILD
index 3985ce900a..5eef745835 100644
--- a/testing/gdnsd/APKBUILD
+++ b/testing/gdnsd/APKBUILD
@@ -1,56 +1,44 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=gdnsd
-pkgver=2.2.2
-pkgrel=3
+pkgver=2.2.4
+pkgrel=0
pkgdesc="Geographic Authoritative DNS server"
url="https://github.com/gdnsd/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="gdnsd-$pkgver.tar.gz::https://github.com/blblack/gdnsd/archive/v$pkgver.tar.gz
+source="gdnsd-$pkgver.tar.gz::https://github.com/gdnsd/gdnsd/archive/v$pkgver.tar.gz
gdnsd.initd"
-_builddir="$srcdir"/gdnsd-$pkgver
+builddir="$srcdir/$pkgname-$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
+ 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
+ --enable-fast-install
+ make
install -Dm755 "$srcdir"/gdnsd.initd \
- "$pkgdir"/etc/init.d/gdnsd || return 1
+ "$pkgdir"/etc/init.d/gdnsd
}
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="67714ffdd04c6c15bc5f9dc492794b80 gdnsd-2.2.2.tar.gz
-ddb2591fdeac1c0c0f04f6d7c6e0af2c gdnsd.initd"
-sha256sums="e951f29f2710886f2bec089a34acb2857c000eb90565a70b2b96b94534b9c3eb gdnsd-2.2.2.tar.gz
-f6304d3dc49cced580ad30f450887d3daaa98685b901332b62b8c6ec9798ce99 gdnsd.initd"
-sha512sums="056f4976fb5e0ae7b7cef649e0b7be43fbcf85331781240c63b508367aa71d32c2cd2e12075fd520738ab313366cdd3bf79edd86950993e8fa2274f6a3ee64b0 gdnsd-2.2.2.tar.gz
+sha512sums="618d5418b9e601d7ba256e4334425a41b5c39072b1d544d299b5698e81325fd5f33df564f0f0ff190d2728f6d44d29b566ebeb8b3b14b7bf1d9b8d812c9246fb gdnsd-2.2.4.tar.gz
9abfeb63156828f98b9a96ddb51c3828311331e56c98f17f0a3bdbd261d351549aef55c6cbcf351fdf2ac0a22f2be7b8e8930e3a0d89d74b6b5bec90bc422f16 gdnsd.initd"