ports/190192: [patch] [maintainer] upgrade dns/gdnsd to 1.11.3
Allan Jude
allanjude at freebsd.org
Sun May 25 03:20:00 UTC 2014
>Number: 190192
>Category: ports
>Synopsis: [patch] [maintainer] upgrade dns/gdnsd to 1.11.3
>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: Sun May 25 03:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Allan Jude
>Release: 9.2-RELEASE-p5
>Organization:
ScaleEngine Inc.
>Environment:
9.2-RELEASE-p5
>Description:
Update dns/gdnsd to 1.11.3 (resolves a few minor memory leaks)
turn GeoIP on by default (gdnsd is not very useful without it)
many portlint and staging fixes
update maintainer email address
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: dns/gdnsd/Makefile
===================================================================
--- dns/gdnsd/Makefile (revision 355075)
+++ dns/gdnsd/Makefile (working copy)
@@ -1,16 +1,13 @@
-# Created by: Allan Jude <ports at scaleengine.com>
+# Created by: Allan Jude <allanjude at freebsd.org>
# $FreeBSD$
PORTNAME= gdnsd
-PORTVERSION= 1.11.1
-PORTREVISION= 1
+PORTVERSION= 1.11.3
CATEGORIES= dns
MASTER_SITES= https://github.com/blblack/gdnsd/releases/download/v${PORTVERSION}/ \
http://gdnsd.scaleengine.net/gdnsd/
-FETCH_ARGS= -Fpr
-
-MAINTAINER= ports at scaleengine.com
+MAINTAINER= allanjude at freebsd.org
COMMENT= Authoritative-only GeoIP-aware DNS server
LICENSE= GPLv3
@@ -17,11 +14,12 @@
LIB_DEPENDS= libev.so:${PORTSDIR}/devel/libev
+FETCH_ARGS= -Fpr
+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var --with-rootdir=${LOCALBASE}/etc/gdnsd
USE_LDCONFIG= yes
-USE_XZ= yes
-USES= pkgconfig
+USES= pkgconfig libtool tar:xz
CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
USE_RC_SUBR= gdnsd
@@ -30,6 +28,7 @@
GROUPS?= gdnsd
OPTIONS_DEFINE= DOCS GEOIP URCU
+OPTIONS_DEFAULT= GEOIP
GEOIP_DESC= Enable GeoIP Support
GEOIP_RUN_DEPENDS= ${LOCALBASE}/share/GeoIP/GeoIP.dat:${PORTSDIR}/net/GeoIP
@@ -38,4 +37,21 @@
URCU_CONFIGURE_WITH= urcu
URCU_LIB_DEPENDS= liburcu.so:${PORTSDIR}/sysutils/liburcu
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libgdnsd.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_extmon.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_geoip.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_http_status.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_metafo.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_multifo.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_null.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_reflect.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_simplefo.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_static.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_tcp_connect.so
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/plugin_weighted.so
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/geoip
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/zones
+ ${MKDIR} ${STAGEDIR}/var/run/gdnsd
+
.include <bsd.port.mk>
Index: dns/gdnsd/distinfo
===================================================================
--- dns/gdnsd/distinfo (revision 355075)
+++ dns/gdnsd/distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (gdnsd-1.11.1.tar.xz) = 5c560753e9c07631904fad84b422797e520079b989f6b5d912057bc2ca81e7e5
-SIZE (gdnsd-1.11.1.tar.xz) = 629060
+SHA256 (gdnsd-1.11.3.tar.xz) = 43bdf602e042a969158d040b26131f880453efa69dc771dc26596c311d9f8e39
+SIZE (gdnsd-1.11.3.tar.xz) = 634156
Index: dns/gdnsd/pkg-plist
===================================================================
--- dns/gdnsd/pkg-plist (revision 355075)
+++ dns/gdnsd/pkg-plist (working copy)
@@ -1,5 +1,4 @@
bin/gdnsd_geoip_test
-etc/rc.d/gdnsd
include/gdnsd/compiler.h
include/gdnsd/dmn.h
include/gdnsd/dname.h
@@ -12,29 +11,17 @@
include/gdnsd/plugin.h
include/gdnsd/stats.h
include/gdnsd/vscf.h
-lib/gdnsd/libgdnsd.la
lib/gdnsd/libgdnsd.so
-lib/gdnsd/plugin_extmon.la
lib/gdnsd/plugin_extmon.so
-lib/gdnsd/plugin_geoip.la
lib/gdnsd/plugin_geoip.so
-lib/gdnsd/plugin_http_status.la
lib/gdnsd/plugin_http_status.so
-lib/gdnsd/plugin_metafo.la
lib/gdnsd/plugin_metafo.so
-lib/gdnsd/plugin_multifo.la
lib/gdnsd/plugin_multifo.so
-lib/gdnsd/plugin_null.la
lib/gdnsd/plugin_null.so
-lib/gdnsd/plugin_reflect.la
lib/gdnsd/plugin_reflect.so
-lib/gdnsd/plugin_simplefo.la
lib/gdnsd/plugin_simplefo.so
-lib/gdnsd/plugin_static.la
lib/gdnsd/plugin_static.so
-lib/gdnsd/plugin_tcp_connect.la
lib/gdnsd/plugin_tcp_connect.so
-lib/gdnsd/plugin_weighted.la
lib/gdnsd/plugin_weighted.so
libexec/gdnsd/gdnsd_extmon_helper
man/man1/gdnsd_geoip_test.1.gz
@@ -78,12 +65,13 @@
%%PORTDOCS%%%%DOCSDIR%%/gdnsd_geoip_test.txt
%%PORTDOCS%%%%DOCSDIR%%/gdnsd_manual.pod
%%PORTDOCS%%%%DOCSDIR%%/gdnsd_manual.txt
+ at exec mkdir -p %%ETCDIR%%/geoip
@exec mkdir -p %%ETCDIR%%/zones
@unexec rmdir "/var/run/gdnsd" >/dev/null 2>&1 || :
-%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+ at dirrmtry %%ETCDIR%%/geoip
+ at dirrmtry %%ETCDIR%%/zones
+ at dirrmtry %%ETCDIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry libexec/gdnsd
@dirrmtry lib/gdnsd
@dirrmtry include/gdnsd
- at dirrmtry etc/gdnsd/zones
- at dirrmtry etc/gdnsd/geoip
- at dirrmtry etc/gdnsd
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list