summaryrefslogtreecommitdiff
path: root/net/dnsmasq/Makefile
diff options
context:
space:
mode:
authorroy <roy>2012-01-31 12:39:22 +0000
committerroy <roy>2012-01-31 12:39:22 +0000
commit61d957c7e73fb753edee0ad32e331d05127e1009 (patch)
tree0b8ec3e78b51551be0add02ab7f92b8a978cb644 /net/dnsmasq/Makefile
parentc15ee0af6595acc545ae5ffede529e8fec528bc6 (diff)
downloadpkgsrc-61d957c7e73fb753edee0ad32e331d05127e1009.tar.gz
Update to dnsmasq-2.59
When building DBus support, install the config file for DBus Notable Changes from 2.55: IPv6 interface fixes Fixed an invalid server id of 0.0.0.0 being sent in some situations Correctly return NODATA for an AAAA query to a CNAME with only an A Fixed a bug with some truncated TFTP files Support IPv6 scope ids in resolv.conf
Diffstat (limited to 'net/dnsmasq/Makefile')
-rw-r--r--net/dnsmasq/Makefile26
1 files changed, 23 insertions, 3 deletions
diff --git a/net/dnsmasq/Makefile b/net/dnsmasq/Makefile
index db3e78fc016..48b7072d8aa 100644
--- a/net/dnsmasq/Makefile
+++ b/net/dnsmasq/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2010/11/27 13:24:47 roy Exp $
+# $NetBSD: Makefile,v 1.16 2012/01/31 12:39:22 roy Exp $
#
-DISTNAME= dnsmasq-2.55
+DISTNAME= dnsmasq-2.59
CATEGORIES= net
MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/
@@ -14,8 +14,24 @@ CONF_FILES= ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \
${PKG_SYSCONFDIR}/dnsmasq.conf
PKG_DESTDIR_SUPPORT= user-destdir
+PKG_OPTIONS_VAR= PKG_OPTIONS.dnsmasq
+PKG_SUPPORTED_OPTIONS= dbus inet6
+PLIST_VARS+= dbus
-.include "options.mk"
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdbus)
+USE_TOOLS+= pkg-config
+CFLAGS+= -DHAVE_DBUS
+.include "../../sysutils/dbus/buildlink3.mk"
+CONF_FILES+= ${PREFIX}/share/examples/dnsmasq/dnsmasq-dbus.conf \
+ ${PKG_SYSCONFDIR}/dbus-1/system.d/dnsmasq-dbus.conf
+PLIST.dbus= yes
+.endif
+
+.if empty(PKG_OPTIONS:Minet6)
+CFLAGS+= -DNO_IPV6
+.endif
# Override the defaults
AUTO_MKDIRS=yes
@@ -32,5 +48,9 @@ INSTALL_MAKE_FLAGS+= AWK="${AWK}"
post-install:
${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example \
${DESTDIR}${PREFIX}/share/examples/dnsmasq/
+.if !empty(PKG_OPTIONS:Mdbus)
+ ${INSTALL_DATA} ${WRKSRC}/dbus/dnsmasq.conf \
+ ${DESTDIR}${PREFIX}/share/examples/dnsmasq/dnsmasq-dbus.conf
+.endif
.include "../../mk/bsd.pkg.mk"