PKGBUILDs/extra/dnsmasq/PKGBUILD
2009-10-09 21:23:22 -05:00

44 lines
1.3 KiB
Bash

# $Id: PKGBUILD 50876 2009-09-02 15:23:44Z paul $
# Maintainer: Paul Mattal <paul@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=dnsmasq
pkgver=2.50
pkgrel=1
pkgdesc="Lightweight, easy to configure DNS forwarder and DHCP server"
url="http://www.thekelleys.org.uk/dnsmasq/doc.html"
arch=('i686' 'x86_64')
license=('GPL')
depends=('glibc' 'bash')
makedepends=('libcap>=2.16')
backup=('etc/dnsmasq.conf')
install=$pkgname.install
source=("http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.gz" \
'rc.dnsmasq' "$pkgname-capability-config.patch")
md5sums=('f7b1e17c590e493039537434c57c9de7' 'e956eee1ec24212a3254d2b168187495'\
'ef61cd6c3ce1fd0767a98b02975c9c9c')
build() {
cd $srcdir/$pkgname-$pkgver
# Patch to add a Note about Capability Module in the Config File
patch -Np0 -i ../$pkgname-capability-config.patch || return 1
# Build
make || return 1
# Install
install -d $pkgdir/etc/rc.d || return 1
make PREFIX=/usr DESTDIR=$pkgdir install || return 1
install -D -m755 \
$srcdir/rc.dnsmasq $pkgdir/etc/rc.d/dnsmasq || return 1
install -D -m644 \
dnsmasq.conf.example $pkgdir/etc/dnsmasq.conf || return 1
# Make the Required Directories for DHCP Server Default Directories
install -d $pkgdir/var/db || return 1
install -d $pkgdir/var/lib/misc || return 1
}
# vim: ts=2 sw=2 et ft=sh