Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 02:55:39 GMT
From:      Allan Jude <ports@scaleengine.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183582: [maintainer][patch] Update dns/gdnsd to 1.10.1
Message-ID:  <201311020255.rA22tdlT056132@oldred.freebsd.org>
Resent-Message-ID: <201311020300.rA2300ml043588@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183582
>Category:       ports
>Synopsis:       [maintainer][patch] Update dns/gdnsd to 1.10.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 02 03:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Allan Jude
>Release:        9.2-RELEASE
>Organization:
ScaleEngine Inc.
>Environment:
FreeBSD Trooper.HML3.ScaleEngine.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Upgrade gdnsd to version 1.10.1

add staging support

add support for optional liburcu (userspace read-copy-update) for faster updating of zone files

move the .pid file to /var/run rather than /usr/local/var/run

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: dns/gdnsd/Makefile
===================================================================
--- dns/gdnsd/Makefile	(revision 332435)
+++ dns/gdnsd/Makefile	(working copy)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	gdnsd
-PORTVERSION=	1.10.0
+PORTVERSION=	1.10.1
 CATEGORIES=	dns
 MASTER_SITES=	http://downloads.gdnsd.net/ \
 		http://gdnsd.scaleengine.net/gdnsd/
@@ -14,36 +14,32 @@
 
 LIB_DEPENDS=	libev.so:${PORTSDIR}/devel/libev
 
-OPTIONS_DEFINE=	GEOIP
+GNU_CONFIGURE=		yes
+CONFIGURE_ARGS=		--localstatedir=/var
 
-GNU_CONFIGURE=	yes
+OPTIONS_DEFINE=	GEOIP URCU
+
+GEOIP_DESC=     	Enable GeoIP Support
+GEOIP_RUN_DEPENDS=	${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
+
+URCU_DESC=      	Read-Copy-Update Support (Faster Zone Parsing)
+URCU_CONFIGURE_WITH=	urcu
+URCU_LIB_DEPENDS=	liburcu.so:${PORTSDIR}/sysutils/liburcu
+CPPFLAGS+=		-I${LOCALBASE}/include -L${LOCALBASE}/lib
+
 USE_LDCONFIG=	yes
 USE_XZ=		yes
 USES=		pkgconfig
 
-MAN1=		gdnsd_geoip_test.1
-MAN3=		gdnsd-plugin-api.3
-MAN5=		gdnsd.config.5 gdnsd.zonefile.5
-MAN8=		gdnsd.8 gdnsd-plugin-simplefo.8 gdnsd-plugin-multifo.8 \
-		gdnsd-plugin-metafo.8 gdnsd-plugin-geoip.8 \
-		gdnsd-plugin-weighted.8 gdnsd-plugin-extmon.8
-MANCOMPRESSED=	no
-
 USE_RC_SUBR=	gdnsd
 
 USERS?=		gdnsd
 GROUPS?=	gdnsd
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MGEOIP}
-RUN_DEPENDS+=	${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
-.endif
-
 post-install:
-	${MKDIR} ${PREFIX}/var/run/gdnsd
-	${MKDIR} ${PREFIX}/etc/gdnsd/zones
-	${TOUCH} ${PREFIX}/etc/gdnsd/zones/.keep-me
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/zones
+	${TOUCH} ${STAGEDIR}${PREFIX}/etc/gdnsd/zones/.keep-me
 
 .include <bsd.port.mk>
Index: dns/gdnsd/distinfo
===================================================================
--- dns/gdnsd/distinfo	(revision 332435)
+++ dns/gdnsd/distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (gdnsd-1.10.0.tar.xz) = 43c1c50cf58bc7a5dacb7379bf39276c5f4ebb2b4697d25dba228953015db3af
-SIZE (gdnsd-1.10.0.tar.xz) = 622584
+SHA256 (gdnsd-1.10.1.tar.xz) = bd879d90f9c0c7695f6b46feb910a30beb904335b8c5c7d12d1f8d60a1140447
+SIZE (gdnsd-1.10.1.tar.xz) = 624772
Index: dns/gdnsd/pkg-plist
===================================================================
--- dns/gdnsd/pkg-plist	(revision 332435)
+++ dns/gdnsd/pkg-plist	(working copy)
@@ -69,9 +69,18 @@
 %%DOCSDIR%%/gdnsd_geoip_test.txt
 %%DOCSDIR%%/gdnsd_manual.pod
 %%DOCSDIR%%/gdnsd_manual.txt
+man/man1/gdnsd_geoip_test.1.gz
+man/man3/gdnsd-plugin-api.3.gz
+man/man5/gdnsd.config.5.gz
+man/man5/gdnsd.zonefile.5.gz
+man/man8/gdnsd-plugin-extmon.8.gz
+man/man8/gdnsd-plugin-geoip.8.gz
+man/man8/gdnsd-plugin-metafo.8.gz
+man/man8/gdnsd-plugin-multifo.8.gz
+man/man8/gdnsd-plugin-simplefo.8.gz
+man/man8/gdnsd-plugin-weighted.8.gz
+man/man8/gdnsd.8.gz
 @dirrm %%DOCSDIR%%
-@exec mkdir -p %D/var/run/gdnsd
-@dirrmtry var/run/gdnsd
 etc/gdnsd/zones/.keep-me
 @exec mkdir -p %D/%%ETCDIR%%/gdnsd/zones
 @dirrmtry etc/gdnsd/zones


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311020255.rA22tdlT056132>