aboutsummaryrefslogblamecommitdiffstats
path: root/extra/dnsmasq/APKBUILD
blob: a5ee1c9c9364fcc983504b3c44cf54506ecdad98 (plain) (tree)


































                                                                               
# 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"