Bug 184583 - [maintainer][patch] Update dns/gdnsd to 1.11.0
Summary: [maintainer][patch] Update dns/gdnsd to 1.11.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-07 21:00 UTC by Allan Jude
Modified: 2013-12-09 18:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.72 KB, patch)
2013-12-07 21:00 UTC, Allan Jude
no flags Details | Diff
ports_gdnsd_1.11.0_b.patch.txt (2.10 KB, text/plain; charset=windows-1252)
2013-12-09 01:48 UTC, Allan Jude
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Jude 2013-12-07 21:00:00 UTC
Upgrade gdnsd to version 1.11.0

Patches the Makefile to remove a check for the gdnsd user (too early) that breaks staging. Sadly his necessitates autotools

Fix: Patch attached with submission follows:
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-08 19:16:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2013-12-08 19:31:22 UTC
State Changed
From-To: open->feedback

Build fails, please see log: 
http://people.freebsd.org/~pawel/buildlogs/gdnsd-1.11.0.log
Comment 3 Allan Jude 2013-12-09 01:48:26 UTC
On 2013-12-08 14:31, pawel@FreeBSD.org wrote:
> Synopsis: [maintainer][patch] Update dns/gdnsd to 1.11.0
>
> State-Changed-From-To: open->feedback
> State-Changed-By: pawel
> State-Changed-When: Sun Dec 8 19:31:22 UTC 2013
> State-Changed-Why: 
> Build fails, please see log:
> http://people.freebsd.org/~pawel/buildlogs/gdnsd-1.11.0.log
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=184583

Attached find a new patch, patches Makefile.in instead of Makefile.am to
avoid autotools all together.

Also fixes some orphan directories
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-12-09 18:37:02 UTC
Author: pawel
Date: Mon Dec  9 18:36:54 2013
New Revision: 336012
URL: http://svnweb.freebsd.org/changeset/ports/336012

Log:
  - Update to version 1.11.0 [1]
  - Remove non needed directory creation in stage
  - Fix exec line in pkg-plist, ETCDIR already contains
    installation prefix and portname directory in etc
  
  PR:		ports/184583 [1]
  Submitted by:	maintainer

Added:
  head/dns/gdnsd/files/patch-Makefile.in   (contents, props changed)
Modified:
  head/dns/gdnsd/Makefile
  head/dns/gdnsd/distinfo
  head/dns/gdnsd/pkg-plist

Modified: head/dns/gdnsd/Makefile
==============================================================================
--- head/dns/gdnsd/Makefile	Mon Dec  9 17:59:17 2013	(r336011)
+++ head/dns/gdnsd/Makefile	Mon Dec  9 18:36:54 2013	(r336012)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	gdnsd
-PORTVERSION=	1.10.1
+PORTVERSION=	1.11.0
 CATEGORIES=	dns
 MASTER_SITES=	http://downloads.gdnsd.net/ \
 		http://gdnsd.scaleengine.net/gdnsd/
@@ -35,9 +35,4 @@ URCU_DESC=		Read-Copy-Update Support (Fa
 URCU_CONFIGURE_WITH=	urcu
 URCU_LIB_DEPENDS=	liburcu.so:${PORTSDIR}/sysutils/liburcu
 
-.include <bsd.port.options.mk>
-
-post-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/gdnsd/zones
-
 .include <bsd.port.mk>

Modified: head/dns/gdnsd/distinfo
==============================================================================
--- head/dns/gdnsd/distinfo	Mon Dec  9 17:59:17 2013	(r336011)
+++ head/dns/gdnsd/distinfo	Mon Dec  9 18:36:54 2013	(r336012)
@@ -1,2 +1,2 @@
-SHA256 (gdnsd-1.10.1.tar.xz) = bd879d90f9c0c7695f6b46feb910a30beb904335b8c5c7d12d1f8d60a1140447
-SIZE (gdnsd-1.10.1.tar.xz) = 624772
+SHA256 (gdnsd-1.11.0.tar.xz) = 45c60d3c739d3b4e25777edc3d552b093275b20226e610cbacbb143300412c94
+SIZE (gdnsd-1.11.0.tar.xz) = 627912

Added: head/dns/gdnsd/files/patch-Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/dns/gdnsd/files/patch-Makefile.in	Mon Dec  9 18:36:54 2013	(r336012)
@@ -0,0 +1,15 @@
+--- Makefile.in.orig	2013-12-08 20:39:14.439782160 -0500
++++ Makefile.in	2013-12-08 20:39:28.762789130 -0500
+@@ -942,12 +942,6 @@
+ @HAS_DEF_ROOTDIR_FALSE@	$(MKDIR_P) "$(DESTDIR)$(sysconfdir)/gdnsd/zones";
+ @HAS_DEF_ROOTDIR_FALSE@	$(MKDIR_P) "$(DESTDIR)$(sysconfdir)/gdnsd/geoip";
+ @HAS_DEF_ROOTDIR_FALSE@	$(MKDIR_P) "$(DESTDIR)$(GDNSD_SYSRUNDIR)/gdnsd";
+-	@id gdnsd >/dev/null 2>&1; if test $$? -ne 0; then \
+-		echo; \
+-		echo === READ ME ===; \
+-		echo The default user \"gdnsd\" \(for privdrop when executed as root\) does not seem to exist yet!; \
+-		echo; \
+-	fi
+ 
+ .pod.8:
+ 	$(AM_V_GEN)$(POD2MAN) --section=8 --release="$(PACKAGE_NAME) $(VERSION)" --center=$(PACKAGE_NAME) $< $@

Modified: head/dns/gdnsd/pkg-plist
==============================================================================
--- head/dns/gdnsd/pkg-plist	Mon Dec  9 17:59:17 2013	(r336011)
+++ head/dns/gdnsd/pkg-plist	Mon Dec  9 18:36:54 2013	(r336012)
@@ -81,6 +81,8 @@ 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/%%ETCDIR%%/gdnsd/zones
+@exec mkdir -p %%ETCDIR%%/zones
+@unexec rmdir >/dev/null 2>&1 /var/run/gdnsd || :
 @dirrmtry etc/gdnsd/zones
+@dirrmtry etc/gdnsd/geoip
 @dirrmtry etc/gdnsd
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Pawel Pekala freebsd_committer freebsd_triage 2013-12-09 18:37:32 UTC
State Changed
From-To: feedback->closed

Committed, with minor changes. Thanks!