# $Id: PKGBUILD 137814 2011-09-11 16:06:30Z dreisner $ # Maintainer: Dave Reisner # Contributor: Paul Mattal # Contributor: Tom Newsom pkgname=dnsmasq pkgver=2.58 pkgrel=2 pkgdesc="Lightweight, easy to configure DNS forwarder and DHCP server" url="http://www.thekelleys.org.uk/dnsmasq/doc.html" arch=('i686' 'x86_64' 'mips64el') license=('GPL') depends=('glibc' 'bash' 'dbus-core') makedepends=('libcap>=2.16') install=$pkgname.install backup=('etc/dnsmasq.conf' 'etc/conf.d/dnsmasq') source=("http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.gz" 'dnsmasq.confd' 'rc.dnsmasq' 'dnsmasq.service') md5sums=('14c5c81debb324adc261db971730f4c6' '66479e99123faeab83ebaed709ef95b5' '818c122ea4d81868a75afad109411170' 'f329d86f8ba1cd85f9b6ee59e0ce3791') build() { cd "$srcdir/$pkgname-$pkgver" # link against dbus echo '#define HAVE_DBUS' >> src/config.h make } package() { cd "$srcdir/$pkgname-$pkgver" make PREFIX=/usr DESTDIR="$pkgdir" install install -dm755 "$pkgdir"/var/{db,lib/misc} install -Dm755 "$srcdir"/rc.dnsmasq "$pkgdir"/etc/rc.d/dnsmasq install -Dm644 "$srcdir"/dnsmasq.confd "$pkgdir/etc/conf.d/dnsmasq" install -Dm644 "dbus/dnsmasq.conf" "$pkgdir"/etc/dbus-1/system.d/dnsmasq.conf install -Dm644 "dnsmasq.conf.example" "$pkgdir"/etc/dnsmasq.conf install -Dm644 "$srcdir/dnsmasq.service" "$pkgdir"/lib/systemd/system/dnsmasq.service } # vim: ts=2 sw=2 et ft=sh