updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / dnsmasq-dbus / PKGBUILD
blob01266a34d1517fd9c22e9f90c4417eaa90debc0b
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>
6 pkgname=dnsmasq-dbus
7 _pkgname=dnsmasq
8 pkgver=2.57
9 pkgrel=1
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')
13 license=('GPL')
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')
22 build() {
23   cd "$srcdir/$_pkgname-$pkgver"
25   # link against dbus
26   echo '#define HAVE_DBUS' >> src/config.h
28   make
31 package() {
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