pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/dnsmasq Make it look for it's config file at the r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e25f872a3e4a
branches:  trunk
changeset: 547675:e25f872a3e4a
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Thu Sep 25 20:33:53 2008 +0000

description:
Make it look for it's config file at the right place.

diffstat:

 net/dnsmasq/Makefile         |   5 ++++-
 net/dnsmasq/distinfo         |   4 +++-
 net/dnsmasq/patches/patch-ab |  27 +++++++++++++++++++++++++++
 net/dnsmasq/patches/patch-ac |  10 ++++++++++
 4 files changed, 44 insertions(+), 2 deletions(-)

diffs (80 lines):

diff -r 9715338f60fe -r e25f872a3e4a net/dnsmasq/Makefile
--- a/net/dnsmasq/Makefile      Thu Sep 25 14:02:08 2008 +0000
+++ b/net/dnsmasq/Makefile      Thu Sep 25 20:33:53 2008 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 2008/07/23 23:46:08 tonnerre Exp $
+# $NetBSD: Makefile,v 1.6 2008/09/25 20:33:53 ahoka Exp $
 #
 
 DISTNAME=              dnsmasq-2.45
+PKGREVISION=           1
 CATEGORIES=            net
 MASTER_SITES=          http://www.thekelleys.org.uk/dnsmasq/
 
@@ -14,6 +15,8 @@
 RCD_SCRIPTS=   dnsmasq
 CONF_FILES=    ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \
                ${PKG_SYSCONFDIR}/dnsmasq.conf
+
+CFLAGS+=       -DCONFFILE=\"${PKG_SYSCONFDIR}/dnsmasq.conf\"
 post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dnsmasq
        ${INSTALL} ${WRKSRC}/dnsmasq.conf.example \
diff -r 9715338f60fe -r e25f872a3e4a net/dnsmasq/distinfo
--- a/net/dnsmasq/distinfo      Thu Sep 25 14:02:08 2008 +0000
+++ b/net/dnsmasq/distinfo      Thu Sep 25 20:33:53 2008 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2008/07/23 23:46:08 tonnerre Exp $
+$NetBSD: distinfo,v 1.5 2008/09/25 20:33:53 ahoka Exp $
 
 SHA1 (dnsmasq-2.45.tar.gz) = 12f8cffd657f674fbf4bf4f670a0dcb65ea4a5ae
 RMD160 (dnsmasq-2.45.tar.gz) = b8ebf9dfeff26c18664a917cd32cb9b6a53852cb
 Size (dnsmasq-2.45.tar.gz) = 380877 bytes
 SHA1 (patch-aa) = f6d1d9d80a283d4270950031ec67c0b4e37920d7
+SHA1 (patch-ab) = 7bb6cb585f813a5fe9eddfdedda71a14740d8c4d
+SHA1 (patch-ac) = a07c71502399a7835cbb8b8e5136553305113e6e
diff -r 9715338f60fe -r e25f872a3e4a net/dnsmasq/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dnsmasq/patches/patch-ab      Thu Sep 25 20:33:53 2008 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-ab,v 1.1 2008/09/25 20:33:53 ahoka Exp $
+
+--- src/config.h.orig  2008-07-20 20:26:32.000000000 +0200
++++ src/config.h
+@@ -38,17 +38,19 @@
+ #  define RESOLVFILE "/etc/resolv.conf"
+ #endif
+ #define RUNFILE "/var/run/dnsmasq.pid"
+-#if defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__DragonFly__)
++#if defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__DragonFly__) || defined(__NetBSD__)
+ #   define LEASEFILE "/var/db/dnsmasq.leases"
+ #elif defined(__sun__) || defined (__sun)
+ #   define LEASEFILE "/var/cache/dnsmasq.leases"
+ #else
+ #   define LEASEFILE "/var/lib/misc/dnsmasq.leases"
+ #endif
+-#if defined(__FreeBSD__)
++#ifndef CONFFILE
++# if defined(__FreeBSD__)
+ #   define CONFFILE "/usr/local/etc/dnsmasq.conf"
+-#else
++# else
+ #   define CONFFILE "/etc/dnsmasq.conf"
++# endif
+ #endif
+ #define DEFLEASE 3600 /* default lease time, 1 hour */
+ #define CHUSER "nobody"
diff -r 9715338f60fe -r e25f872a3e4a net/dnsmasq/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/dnsmasq/patches/patch-ac      Thu Sep 25 20:33:53 2008 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-ac,v 1.1 2008/09/25 20:33:53 ahoka Exp $
+
+--- bld/Makefile.orig  2008-07-20 20:26:07.000000000 +0200
++++ bld/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS = -Wall -W -O2
++CFLAGS += -Wall -W -O2
+ 
+ OBJS = cache.o rfc1035.o util.o option.o forward.o isc.o network.o \
+        dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o \



Home | Main Index | Thread Index | Old Index