diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-03-07 18:10:48 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-03-07 18:10:48 +0100 |
commit | 61733e7ff1a756e9325154d9d52cdcdeb27d9097 (patch) | |
tree | a0f842807088c4986fb918be0de70bac3f18ea04 /extra/dnsmasq | |
parent | 42badd081241c57a3b9bbd7a18dec85e64038314 (diff) | |
parent | 5a680f7689b01b4b7a0bfade1a6c1f659f8cbed4 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/bin2iso/PKGBUILD
community/espeak/PKGBUILD
community/gnash/PKGBUILD
community/gtk2hs-buildtools/PKGBUILD
community/haskell-binary/PKGBUILD
community/haskell-dataenc/PKGBUILD
community/haskell-ghc-paths/PKGBUILD
community/haskell-haskeline/PKGBUILD
community/haskell-hslogger/PKGBUILD
community/haskell-tar/PKGBUILD
community/haskell-terminfo/PKGBUILD
community/haskell-utf8-string/PKGBUILD
community/haskell-x11-xft/PKGBUILD
community/kmess/PKGBUILD
community/libident/PKGBUILD
community/lwm/PKGBUILD
core/dialog/PKGBUILD
core/gcc/PKGBUILD
core/libtool/PKGBUILD
core/ppl/PKGBUILD
extra/boost/PKGBUILD
extra/dnsmasq/PKGBUILD
extra/ghc/PKGBUILD
extra/haskell-html/PKGBUILD
extra/haskell-http/PKGBUILD
extra/haskell-mtl/PKGBUILD
extra/haskell-network/PKGBUILD
extra/haskell-parsec/PKGBUILD
extra/haskell-quickcheck/PKGBUILD
extra/haskell-regex-base/PKGBUILD
extra/haskell-regex-compat/PKGBUILD
extra/haskell-regex-posix/PKGBUILD
extra/haskell-text/PKGBUILD
extra/haskell-transformers/PKGBUILD
extra/haskell-zlib/PKGBUILD
extra/liborigin2/PKGBUILD
extra/libpst/PKGBUILD
extra/mkvtoolnix/PKGBUILD
extra/pekwm/PKGBUILD
extra/soprano/PKGBUILD
extra/udisks/PKGBUILD
multilib-testing/lib32-libpciaccess/PKGBUILD
multilib/gcc-multilib/PKGBUILD
multilib/lib32-glibc/PKGBUILD
multilib/lib32-glibc/glibc-2.12.2-ignore-origin-of-privileged-program.patch
multilib/lib32-glibc/glibc-2.15-ifunc.patch
multilib/lib32-glibc/glibc-2.15-revert-netlink-cache.patch
multilib/lib32-glibc/glibc-2.15-scanf.patch
multilib/libtool-multilib/PKGBUILD
staging/kdeedu-kig/PKGBUILD
staging/kdeedu-rocs/PKGBUILD
testing/libpciaccess/PKGBUILD
testing/mkinitcpio-busybox/PKGBUILD
testing/xorg-server/PKGBUILD
Diffstat (limited to 'extra/dnsmasq')
-rw-r--r-- | extra/dnsmasq/PKGBUILD | 26 | ||||
-rw-r--r-- | extra/dnsmasq/dnsmasq.service | 4 | ||||
-rwxr-xr-x | extra/dnsmasq/rc.dnsmasq | 6 |
3 files changed, 19 insertions, 17 deletions
diff --git a/extra/dnsmasq/PKGBUILD b/extra/dnsmasq/PKGBUILD index d310e6c2a..dec627639 100644 --- a/extra/dnsmasq/PKGBUILD +++ b/extra/dnsmasq/PKGBUILD @@ -1,17 +1,16 @@ -# $Id: PKGBUILD 141089 2011-10-23 16:20:24Z dreisner $ +# $Id: PKGBUILD 152257 2012-03-06 04:01:25Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> # Contributor: Paul Mattal <paul@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgname=dnsmasq -pkgver=2.59 -pkgrel=2.1 +pkgver=2.60 +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' 'dbus-core') -makedepends=('libcap>=2.16') install=$pkgname.install backup=('etc/dnsmasq.conf' 'etc/conf.d/dnsmasq') @@ -19,24 +18,27 @@ source=("http://www.thekelleys.org.uk/$pkgname/$pkgname-$pkgver.tar.gz" 'dnsmasq.confd' 'rc.dnsmasq' 'dnsmasq.service') -md5sums=('b5757ef2d7b651748eeebb88af29d7d6' +md5sums=('5a09908e02724d759ac60d9cafd27de8' '66479e99123faeab83ebaed709ef95b5' - '9f180cc236808bbd02ca8652fd2e8217' - 'f329d86f8ba1cd85f9b6ee59e0ce3791') + '819fbdf6440d710616e6df5f8ca9cdba' + '631d8349acbed1b01d4e11d9f42fdb7d') build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" - # link against dbus - echo '#define HAVE_DBUS' >> src/config.h + # link against dbus. this ugliness is needed to ensure that the + # compile time opts report properly on startup. yuck. + sed -i '/^#ifdef DNSMASQ_COMPILE_OPTS/ { + i#define HAVE_DBUS + }' src/config.h make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" - make PREFIX=/usr DESTDIR="$pkgdir" install + 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" diff --git a/extra/dnsmasq/dnsmasq.service b/extra/dnsmasq/dnsmasq.service index b09cb24b9..05a1f0b69 100644 --- a/extra/dnsmasq/dnsmasq.service +++ b/extra/dnsmasq/dnsmasq.service @@ -4,8 +4,8 @@ Description=A lightweight DHCP and caching DNS server [Service] Type=dbus BusName=uk.org.thekelleys.dnsmasq -ExecStartPre=/usr/sbin/dnsmasq --test -ExecStart=/usr/sbin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file +ExecStartPre=/usr/bin/dnsmasq --test +ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file ExecReload=/bin/kill -HUP $MAINPID [Install] diff --git a/extra/dnsmasq/rc.dnsmasq b/extra/dnsmasq/rc.dnsmasq index 0ce736ba9..4030c2896 100755 --- a/extra/dnsmasq/rc.dnsmasq +++ b/extra/dnsmasq/rc.dnsmasq @@ -7,7 +7,7 @@ checkconfig() { local testout - if ! testout=$(/usr/sbin/dnsmasq --test 2>&1); then + if ! testout=$(/usr/bin/dnsmasq --test 2>&1); then echo "$testout" return 1 fi @@ -29,7 +29,7 @@ case $1 in start) stat_busy "Starting DNS/DHCP daemon" if [[ -z $PID ]] && checkconfig && - /usr/sbin/dnsmasq "--user=${DNSMASQ_USER:-nobody}" \ + /usr/bin/dnsmasq "--user=${DNSMASQ_USER:-nobody}" \ "--pid-file=$pidfile" \ "${DNSMASQ_OPTS[@]}"; then add_daemon dnsmasq @@ -56,7 +56,7 @@ case $1 in ;; checkconfig) # diagnostics will be printed, with zero/non-zero exit - /usr/sbin/dnsmasq --test + /usr/bin/dnsmasq --test ;; *) echo "usage: $0 <start|stop|restart|checkconfig>" |