aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gdnsd/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-13 15:28:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-13 15:28:16 +0000
commit5263b83fea44e653e1f1891b20a33abe5d8783d9 (patch)
tree8cebfc8d3df31da949d64bba817e20df8adeab68 /testing/gdnsd/APKBUILD
parent7d150858120a071a34c453866a1e747f9c2733a3 (diff)
downloadaports-5263b83fea44e653e1f1891b20a33abe5d8783d9.tar.bz2
aports-5263b83fea44e653e1f1891b20a33abe5d8783d9.tar.xz
testing/gdnsd: new aport
Geographic Authoritative DNS server http://code.google.com/p/gdnsd/
Diffstat (limited to 'testing/gdnsd/APKBUILD')
-rw-r--r--testing/gdnsd/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/gdnsd/APKBUILD b/testing/gdnsd/APKBUILD
new file mode 100644
index 0000000000..e353e12c69
--- /dev/null
+++ b/testing/gdnsd/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+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"