From owner-svn-ports-all@FreeBSD.ORG Tue Mar 4 15:51:45 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF585771; Tue, 4 Mar 2014 15:51:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BC12F694; Tue, 4 Mar 2014 15:51:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s24FpjRr079386; Tue, 4 Mar 2014 15:51:45 GMT (envelope-from zi@svn.freebsd.org) Received: (from zi@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s24FpjAk079383; Tue, 4 Mar 2014 15:51:45 GMT (envelope-from zi@svn.freebsd.org) Message-Id: <201403041551.s24FpjAk079383@svn.freebsd.org> From: Ryan Steinmetz Date: Tue, 4 Mar 2014 15:51:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347036 - in head/dns/unbound: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2014 15:51:46 -0000 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 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