Bug 187239 - [patch] dns/unbound to add STAGE support + misc improvements
[patch] dns/unbound to add STAGE support + misc improvements
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Sergey Matveychuk
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-04 01:30 UTC by Ryan Steinmetz
Modified: 2014-03-04 16:00 UTC (History)
0 users

See Also:


Attachments
file.diff (5.02 KB, patch)
2014-03-04 01:30 UTC, Ryan Steinmetz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Steinmetz freebsd_committer 2014-03-04 01:30:00 UTC
- Add STAGE support
- Fix build with custom LOCALBASE/PREFIX
- Add ability to specify flags to unbound-anchor via unbound_anchorflags in rc.conf (useful for when /etc/resolv.conf only contains 127.0.0.1)
- Bump PORTREVISION

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2014-03-04 01:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sem

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2014-03-04 15:51:52 UTC
Author: zi
Date: Tue Mar  4 15:51:44 2014
New Revision: 347036
URL: http://svnweb.freebsd.org/changeset/ports/347036
QAT: https://qat.redports.org/buildarchive/r347036/

Log:
  - Add STAGE support
  - Fix build with custom LOCALBASE/PREFIX
  - Add ability to specify flags to unbound-anchor via unbound_anchorflags in rc.conf (useful for when /etc/resolv.conf only contains 127.0.0.1)
  - Bump PORTREVISION
  
  PR:		ports/187239
  Submitted by:	zi@
  Approved by:	sem@ (maintainer)

Modified:
  head/dns/unbound/Makefile
  head/dns/unbound/files/unbound.in
  head/dns/unbound/pkg-plist

Modified: head/dns/unbound/Makefile
==============================================================================
--- head/dns/unbound/Makefile	Tue Mar  4 15:44:33 2014	(r347035)
+++ head/dns/unbound/Makefile	Tue Mar  4 15:51:44 2014	(r347036)
@@ -3,7 +3,7 @@
 
 PORTNAME=	unbound
 PORTVERSION=	1.4.21
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	dns
 MASTER_SITES=	http://unbound.net/downloads/
 
@@ -16,7 +16,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 USE_GMAKE=	yes
 USE_OPENSSL=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE}
+CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE} --with-libexpat=${LOCALBASE}
 USE_LDCONFIG=	yes
 
 USERS=		${PORTNAME}
@@ -24,20 +24,6 @@ GROUPS=		${PORTNAME}
 
 USE_RC_SUBR=	unbound
 
-MAN1=		unbound-host.1
-MAN3=		libunbound.3 ub_cancel.3 ub_ctx.3 ub_ctx_add_ta.3 \
-		ub_ctx_add_ta_file.3 ub_ctx_async.3 ub_ctx_config.3 \
-		ub_ctx_create.3 ub_ctx_data_add.3 ub_ctx_data_remove.3 \
-		ub_ctx_debuglevel.3 ub_ctx_debugout.3 ub_ctx_delete.3 \
-		ub_ctx_get_option.3 ub_ctx_hosts.3 ub_ctx_print_local_zones.3 \
-		ub_ctx_resolvconf.3 ub_ctx_set_fwd.3 ub_ctx_set_option.3 \
-		ub_ctx_trustedkeys.3 ub_ctx_zone_add.3 ub_ctx_zone_remove.3 \
-		ub_fd.3 ub_poll.3 ub_process.3 ub_resolve.3 ub_resolve_async.3 \
-		ub_resolve_free.3 ub_result.3 ub_strerror.3 ub_wait.3
-MAN5=		unbound.conf.5
-MAN8=		unbound.8 unbound-anchor.8 unbound-control.8 \
-		unbound-checkconf.8 unbound-control-setup.8
-
 PORTDOCS=	CREDITS Changelog FEATURES LICENSE README README.svn \
 		README.tests TODO control_proto_spec.txt ietf67-design-02.odp \
 		ietf67-design-02.pdf requirements.txt
@@ -56,7 +42,6 @@ GOST_DESC=	Enable GOST support (requires
 ECDSA_DESC=	Enable ECDSA (elliptic curve) support (OpenSSL >= 1.0)
 MUNIN_DESC=	Install Munin plugin
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 LIB_DEPENDS+=	expat:${PORTSDIR}/textproc/expat2 \
@@ -119,13 +104,13 @@ post-patch:
 
 post-install:
 .if ${PORT_OPTIONS:MMUNIN}
-	@${MKDIR} ${PREFIX}/share/munin/plugins
-	@${MKDIR} ${PREFIX}/etc/munin/plugins
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/munin/plugins
 	@${INSTALL_SCRIPT} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_\
-		${PREFIX}/share/munin/plugins/
+		${STAGEDIR}${PREFIX}/share/munin/plugins/
 	@for i in ${MUNIN_ALL}; do\
 		${LN} -fs ${PREFIX}/share/munin/plugins/unbound_munin_\
-			${PREFIX}/etc/munin/plugins/unbound_munin_$$i ;\
+			${STAGEDIR}${PREFIX}/etc/munin/plugins/unbound_munin_$$i ;\
 	done
 	@${ECHO_MSG}
 	@${ECHO_MSG} "============================================================="
@@ -133,9 +118,9 @@ post-install:
 	@${ECHO_MSG} "============================================================="
 .endif
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}; \
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}; \
 	for f in ${PORTDOCS}; do \
-		cd ${WRKSRC}/doc && ${INSTALL_DATA} $${f} ${DOCSDIR}/; \
+		cd ${WRKSRC}/doc && ${INSTALL_DATA} $${f} ${STAGEDIR}${DOCSDIR}/; \
 	done
 .endif
 

Modified: head/dns/unbound/files/unbound.in
==============================================================================
--- head/dns/unbound/files/unbound.in	Tue Mar  4 15:44:33 2014	(r347035)
+++ head/dns/unbound/files/unbound.in	Tue Mar  4 15:51:44 2014	(r347036)
@@ -7,6 +7,9 @@
 # copy this to /etc/rc.d/unbound
 # and put unbound_enable="YES" into rc.conf
 #
+# unbound_anchorflags can be used to allow you to pass a custom flags to
+# unbound-anchor.  Examples include a custom resolv.conf (-f) or a custom
+# root.hints (-r).  Useful for when /etc/resolv.conf only contains 127.0.0.1
 
 # PROVIDE: unbound
 # REQUIRE: SERVERS cleanvar
@@ -26,12 +29,13 @@ load_rc_config $name
 
 pidfile=${unbound_pidfile:-"%%PREFIX%%/etc/unbound/unbound.pid"}
 unbound_enable=${unbound_enable:-"NO"}
+unbound_anchorflags=${unbound_anchorflags:-""}
 
 start_precmd()
 {
 	%%PREFIX%%/sbin/unbound-checkconf > /dev/null && \
 	echo -n "Obtaining a trust anchor:" && \
-	su -m unbound -c %%PREFIX%%/sbin/unbound-anchor && \
+	su -m unbound -c %%PREFIX%%/sbin/unbound-anchor ${unbound_anchorflags} && \
 	echo .
 }
 

Modified: head/dns/unbound/pkg-plist
==============================================================================
--- head/dns/unbound/pkg-plist	Tue Mar  4 15:44:33 2014	(r347035)
+++ head/dns/unbound/pkg-plist	Tue Mar  4 15:51:44 2014	(r347036)
@@ -4,6 +4,44 @@ lib/libunbound.so.4
 lib/libunbound.so
 lib/libunbound.la
 lib/libunbound.a
+man/man1/unbound-host.1.gz
+man/man3/libunbound.3.gz
+man/man3/ub_cancel.3.gz
+man/man3/ub_ctx.3.gz
+man/man3/ub_ctx_add_ta.3.gz
+man/man3/ub_ctx_add_ta_file.3.gz
+man/man3/ub_ctx_async.3.gz
+man/man3/ub_ctx_config.3.gz
+man/man3/ub_ctx_create.3.gz
+man/man3/ub_ctx_data_add.3.gz
+man/man3/ub_ctx_data_remove.3.gz
+man/man3/ub_ctx_debuglevel.3.gz
+man/man3/ub_ctx_debugout.3.gz
+man/man3/ub_ctx_delete.3.gz
+man/man3/ub_ctx_get_option.3.gz
+man/man3/ub_ctx_hosts.3.gz
+man/man3/ub_ctx_print_local_zones.3.gz
+man/man3/ub_ctx_resolvconf.3.gz
+man/man3/ub_ctx_set_fwd.3.gz
+man/man3/ub_ctx_set_option.3.gz
+man/man3/ub_ctx_trustedkeys.3.gz
+man/man3/ub_ctx_zone_add.3.gz
+man/man3/ub_ctx_zone_remove.3.gz
+man/man3/ub_fd.3.gz
+man/man3/ub_poll.3.gz
+man/man3/ub_process.3.gz
+man/man3/ub_resolve.3.gz
+man/man3/ub_resolve_async.3.gz
+man/man3/ub_resolve_free.3.gz
+man/man3/ub_result.3.gz
+man/man3/ub_strerror.3.gz
+man/man3/ub_wait.3.gz
+man/man5/unbound.conf.5.gz
+man/man8/unbound-anchor.8.gz
+man/man8/unbound-checkconf.8.gz
+man/man8/unbound-control-setup.8.gz
+man/man8/unbound-control.8.gz
+man/man8/unbound.8.gz
 sbin/unbound
 sbin/unbound-anchor
 sbin/unbound-checkconf
_______________________________________________
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 3 Ryan Steinmetz freebsd_committer 2014-03-04 15:52:24 UTC
State Changed
From-To: open->closed

Committed. Thanks!