diff options
Diffstat (limited to 'extra/dnsmasq/PKGBUILD')
-rw-r--r-- | extra/dnsmasq/PKGBUILD | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/extra/dnsmasq/PKGBUILD b/extra/dnsmasq/PKGBUILD index 4c4798ab2..68e1007dd 100644 --- a/extra/dnsmasq/PKGBUILD +++ b/extra/dnsmasq/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 173229 2012-12-14 17:31:42Z dreisner $ +# $Id: PKGBUILD 183176 2013-04-18 12:45:45Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> # Contributor: Paul Mattal <paul@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgname=dnsmasq -pkgver=2.65 +pkgver=2.66 pkgrel=1 pkgdesc="Lightweight, easy to configure DNS forwarder and DHCP server" url="http://www.thekelleys.org.uk/dnsmasq/doc.html" @@ -12,17 +12,20 @@ arch=('i686' 'x86_64' 'mips64el') license=('GPL') depends=('glibc' 'dbus-core') 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' +backup=('etc/dnsmasq.conf') +source=("http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.xz" + '0001-Fix-wrong-size-in-memset-call.patch' 'dnsmasq.service') -md5sums=('a91534a5d6f053d5c80f67ef502afa34' - '66479e99123faeab83ebaed709ef95b5' - '819fbdf6440d710616e6df5f8ca9cdba' +md5sums=('cd1c70dd66d2e3ad02b66ca6af4ebf20' + '05ccefefde68ebdebce5e40d2b3c78be' '7ac45726cabef4145db40d758cc7fedf') +prepare() { + cd "$pkgname-$pkgver" + + patch -Np1 <"$srcdir/0001-Fix-wrong-size-in-memset-call.patch" +} + build() { cd "$pkgname-$pkgver" @@ -30,7 +33,7 @@ build() { # compile time opts report properly on startup. yuck. sed -i '/^#ifdef DNSMASQ_COMPILE_OPTS/ i#define HAVE_DBUS' src/config.h - make + make "CFLAGS=$CPPFLAGS $CFLAGS" "LDFLAGS=$LDFLAGS" } package() { @@ -38,9 +41,6 @@ package() { make BINDIR=/usr/bin PREFIX=/usr DESTDIR="$pkgdir" install - 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"/usr/lib/systemd/system/dnsmasq.service |