1 # $Id: PKGBUILD 111081 2011-02-23 22:48:06Z paul $
2 # Maintainer: Dave Reisner <dreisner@archlinux.org>
3 # Contributor: Paul Mattal <paul@archlinux.org>
4 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
10 pkgdesc="Lightweight, easy to configure DNS forwarder and DHCP server"
11 url="http://www.thekelleys.org.uk/dnsmasq/doc.html"
12 arch=('i686' 'x86_64')
14 depends=('glibc' 'bash' 'dbus-core')
15 makedepends=('libcap>=2.16')
16 provides=("$_pkgname")
17 conflicts=("$_pkgname")
18 backup=('etc/dnsmasq.conf')
19 source=("http://www.thekelleys.org.uk/$_pkgname/$_pkgname-$pkgver.tar.gz")
20 md5sums=('d10faeb409717eae94718d7716ca63a4')
23 cd "$srcdir/$_pkgname-$pkgver"
26 echo '#define HAVE_DBUS' >> src/config.h
32 cd "$srcdir/$_pkgname-$pkgver"
34 make PREFIX=/usr DESTDIR="$pkgdir" install
36 install -dm755 "$pkgdir"/var/{db,lib/misc}
37 install -Dm644 "dbus/dnsmasq.conf" "$pkgdir/etc/dbus-1/system.d/dnsmasq.conf"
38 install -Dm644 'dnsmasq.conf.example' "$pkgdir/etc/dnsmasq.conf"
40 # enable dbus by default
41 printf '\n%s\n' 'enable-dbus' >> "$pkgdir/etc/dnsmasq.conf"
44 # vim: ts=2 sw=2 et ft=sh