From owner-svn-ports-head@freebsd.org Tue Jan 10 13:34:43 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6850CCA9836; Tue, 10 Jan 2017 13:34:43 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 223081B78; Tue, 10 Jan 2017 13:34:43 +0000 (UTC) (envelope-from zi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0ADYgMU093784; Tue, 10 Jan 2017 13:34:42 GMT (envelope-from zi@FreeBSD.org) Received: (from zi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0ADYgqO093783; Tue, 10 Jan 2017 13:34:42 GMT (envelope-from zi@FreeBSD.org) Message-Id: <201701101334.v0ADYgqO093783@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zi set sender to zi@FreeBSD.org using -f From: Ryan Steinmetz Date: Tue, 10 Jan 2017 13:34:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431082 - head/dns/getdns X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2017 13:34:43 -0000 Author: zi Date: Tue Jan 10 13:34:42 2017 New Revision: 431082 URL: https://svnweb.freebsd.org/changeset/ports/431082 Log: - Add OPTION (default to off) to install diagnostic tool(s) - Do not bump PORTREVISION as this is a noop PR: 215937 Requested by: pi@ Modified: head/dns/getdns/Makefile Modified: head/dns/getdns/Makefile ============================================================================== --- head/dns/getdns/Makefile Tue Jan 10 12:30:02 2017 (r431081) +++ head/dns/getdns/Makefile Tue Jan 10 13:34:42 2017 (r431082) @@ -21,7 +21,7 @@ LIB_DEPENDS= libexpat.so:textproc/expat2 libldns.so:dns/ldns \ libunbound.so:dns/unbound -USES= libtool pathfix +USES= libtool pathfix ssl USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libidn=${LOCALBASE} --docdir=${DOCSDIR} \ @@ -31,8 +31,9 @@ PLIST_SUB+= PORTVERSION="${PORTVERSION}" SUB_FILES+= pkg-message OPTIONS_SUB= yes -OPTIONS_DEFINE= EXAMPLES DOCS LIBEV LIBUV LIBEVENT +OPTIONS_DEFINE= DOCS DIAGS EXAMPLES LIBEV LIBUV LIBEVENT +DIAGS_DESC= Build diagnostic tools LIBEV_DESC= Build with libev extension LIBUV_DESC= Build with libuv extension LIBEVENT_DESC= Build with libevent extension @@ -43,6 +44,13 @@ LIBUV_LIB_DEPENDS= libuv.so:devel/libuv LIBUV_CONFIGURE_WITH= libuv LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent2 LIBEVENT_CONFIGURE_WITH=libevent +DIAGS_VARS= PLIST_FILES+=bin/${PORTNAME}_query + +do-build-DIAGS-on: + (cd ${WRKSRC}/src/test && ${MAKE}) + +do-install-DIAGS-on: + (cd ${WRKSRC}/src/test && ${MAKE} DESTDIR=${STAGEDIR} install) post-patch: ${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \ @@ -51,6 +59,9 @@ post-patch: post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetdns.so.* +post-install-DIAGS-on: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getdns_query + post-install-EXAMPLES-on: (cd ${WRKSRC}/spec/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)