From 5263b83fea44e653e1f1891b20a33abe5d8783d9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 13 Feb 2012 15:28:16 +0000 Subject: testing/gdnsd: new aport Geographic Authoritative DNS server http://code.google.com/p/gdnsd/ --- testing/gdnsd/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++ testing/gdnsd/gdnsd.pre-install | 5 +++++ 2 files changed, 48 insertions(+) create mode 100644 testing/gdnsd/APKBUILD create mode 100644 testing/gdnsd/gdnsd.pre-install (limited to 'testing') diff --git a/testing/gdnsd/APKBUILD b/testing/gdnsd/APKBUILD new file mode 100644 index 000000000..e353e12c6 --- /dev/null +++ b/testing/gdnsd/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +pkgname=gdnsd +pkgver=1.6.2 +pkgrel=0 +pkgdesc="Geographic Authoritative DNS server" +url="http://code.google.com/p/gdnsd/" +arch="all" +license="GPL-3" +depends="" +depends_dev="" +makedepends="libev-dev libcap-dev" +install="$pkgname.pre-install" +subpackages="$pkgname-dev $pkgname-doc" +source="http://gdnsd.googlecode.com/files/gdnsd-$pkgver.tar.xz" + +_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 +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la \ + "$pkgdir"/usr/lib/gdnsd/*.la +} + +md5sums="082f874d24cdc7073950ed6294f8d39b gdnsd-1.6.2.tar.xz" diff --git a/testing/gdnsd/gdnsd.pre-install b/testing/gdnsd/gdnsd.pre-install new file mode 100644 index 000000000..66de81a2e --- /dev/null +++ b/testing/gdnsd/gdnsd.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +addgroup gdnsd 2>/dev/null +adduser -S -H -h /dev/null -s /bin/false -D -G gdnsd gdnsd 2>/dev/null +exit 0 -- cgit v1.2.3