aboutsummaryrefslogtreecommitdiffstats
path: root/extra/dnsmasq/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-27 14:40:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-27 14:40:32 +0000
commit174a39af8309302fcbb0432417af18d5568a2c57 (patch)
treeb9780aeda636b2822335cc0507ba2ffb022761d9 /extra/dnsmasq/APKBUILD
parent3630653b3a2e233c3b910ebe7788a76c6506c231 (diff)
downloadaports-174a39af8309302fcbb0432417af18d5568a2c57.tar.gz
aports-174a39af8309302fcbb0432417af18d5568a2c57.tar.bz2
aports-174a39af8309302fcbb0432417af18d5568a2c57.tar.xz
extra/dnsmasq: new aport
Dnsmasq a lightweight, caching DNS proxy with integrated DHCP server. http://www.thekelleys.org.uk/
Diffstat (limited to 'extra/dnsmasq/APKBUILD')
-rw-r--r--extra/dnsmasq/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/dnsmasq/APKBUILD b/extra/dnsmasq/APKBUILD
new file mode 100644
index 0000000000..a5ee1c9c93
--- /dev/null
+++ b/extra/dnsmasq/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dnsmasq
+pkgver=2.46
+pkgrel=0
+pkgdesc="Small forwarding DNS server"
+url="http://www.thekelleys.org.uk/dnsmasq/"
+license="GPL-2"
+depends="uclibc"
+subpackages="$pkgname-doc"
+source="http://www.thekelleys.org.uk/dnsmasq/$pkgname-$pkgver.tar.gz
+ $pkgname.initd
+ $pkgname.confd
+ "
+
+build() {
+ # src_unpack
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i -e 's/^AWK.*/AWK = awk/' Makefile
+ make PREFIX=/usr \
+ CFLAGS="$CFLAGS" \
+ DBUS_LIBS= \
+ DBUS_CFLAGS= \
+ DBUS_MINOR= \
+ all || return 1
+ make PREFIX=/usr \
+ DESTDIR="$pkgdir" \
+ DBUS_LIBS= \
+ DBUS_CFLAGS= \
+ DBUS_MINOR= \
+ install
+ install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -D -m644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ install dnsmasq.conf.example "$pkgdir"/etc/dnsmasq.conf
+}
+md5sums="79ec740d1a10ee75f13efa4ff36d0250 dnsmasq-2.46.tar.gz"