Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d0b4e96e617b5b1fb07845e683adaf684af07b2d

commit d0b4e96e617b5b1fb07845e683adaf684af07b2d
Author: James Buren <[email protected]>
Date:   Thu Jul 12 17:27:56 2012 -0500

dnsmasq-2.62-1-x86_64
* convert to systemd schema
* now starts "out of the box" with default config, but not enabled by default.

diff --git a/source/network-extra/dnsmasq/FrugalBuild 
b/source/network-extra/dnsmasq/FrugalBuild
index 5965a48..519ed8b 100644
--- a/source/network-extra/dnsmasq/FrugalBuild
+++ b/source/network-extra/dnsmasq/FrugalBuild
@@ -3,30 +3,34 @@
# Contributor: DNAku <[email protected]>

pkgname=dnsmasq
-pkgver=2.61
+pkgver=2.62
pkgrel=1
pkgdesc="Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP 
server."
url="http://thekelleys.org.uk/dnsmasq/doc.html";
-depends=('systemd')
archs=('i686' 'x86_64')
backup=(etc/dnsmasq.conf)
groups=('network-extra')
up2date="lynx -dump http://www.thekelleys.org.uk/dnsmasq |grep 'LATEST'|sed 's/ 
//g'|sed 's/.].*//g'|sed 's/.*_//g'|sed -e '/^$/d'"
source=(http://thekelleys.org.uk/dnsmasq/$pkgname-$pkgver.tar.gz \
dnsmasq.conf makefile.patch)
-sha1sums=('d0a4a80a9b31681c824608302b04a4dd282d3958' \
-          'fd09fa99f453cf81e905e2de4da2137e8c3be3d4' \
-          '20b642a2b9f1dd36acac58ac3aae06513b19e31b')
+sha1sums=('c011531a8a92b35ede387525293bfdf93b201039' \
+          '0765e86572ba55d77b0550a96191495eac9a7133' \
+          'a926b52fe50b0f4c43b9bcd021f3e083039ffcf2')
+_F_systemd_units=(dnsmasq=)
+Finclude systemd
+
build()
{
Fcd
+       Fsed '-O2' "$CFLAGS" Makefile
Fsed 'nawk' 'awk' Makefile
Fbuild
-       cd contrib/systemd
-       Ffilerel /lib/systemd/system/dnsmasq.service
+       Ffilerel dbus/dnsmasq.conf /etc/dbus-1/system.d/dnsmasq.conf
+       Ffilerel contrib/systemd/dnsmasq.service 
/lib/systemd/system/dnsmasq.service
Ffile /etc/dnsmasq.conf
Fmkdir var/lib/misc
Fdoc $pkgname-$pkgver/*.html
+       Fgenscriptlet
}

# optimization OK
diff --git a/source/network-extra/dnsmasq/dnsmasq.conf 
b/source/network-extra/dnsmasq/dnsmasq.conf
index 3d33705..d53029d 100644
--- a/source/network-extra/dnsmasq/dnsmasq.conf
+++ b/source/network-extra/dnsmasq/dnsmasq.conf
@@ -10,6 +10,9 @@
# uneccessarily. If you have a dial-on-demand link they also stop
# these requests from bringing up the link uneccessarily.

+# enable dbus support by default. (needed to be started with systemd)
+enable-dbus
+
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
diff --git a/source/network-extra/dnsmasq/makefile.patch 
b/source/network-extra/dnsmasq/makefile.patch
index 4d5c517..7204d51 100644
--- a/source/network-extra/dnsmasq/makefile.patch
+++ b/source/network-extra/dnsmasq/makefile.patch
@@ -1,5 +1,24 @@
---- dnsmasq-2.61/Makefile      2012-05-25 21:00:30.000000000 +0200
-+++ dnsmasq-2.61-p/Makefile    2012-05-25 21:03:03.000000000 +0200
+diff -ur a/Makefile b/Makefile
+--- a/Makefile 2012-07-06 06:29:16.134865368 -0500
++++ b/Makefile 2012-07-12 17:17:00.939511695 -0500
+@@ -18,7 +18,7 @@
+
+ # Variables you may well want to override.
+
+-PREFIX        = /usr/local
++PREFIX        = /usr
+ BINDIR        = $(PREFIX)/sbin
+ MANDIR        = $(PREFIX)/share/man
+ LOCALEDIR     = $(PREFIX)/share/locale
+@@ -26,7 +26,7 @@
+ DESTDIR       =
+ CFLAGS        = -Wall -W -O2
+ LDFLAGS       =
+-COPTS         =
++COPTS         = -DHAVE_DBUS
+ RPM_OPT_FLAGS =
+ LIBS          =
+
@@ -81,7 +81,7 @@
rm -f *~ $(BUILDDIR)/*.mo contrib/*/*~ */*~ $(BUILDDIR)/*.pot
rm -f $(BUILDDIR)/*.o $(BUILDDIR)/dnsmasq.a $(BUILDDIR)/dnsmasq core */core
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to