From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 2 19:50:03 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2922E106566C for ; Mon, 2 Jul 2012 19:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F41EE8FC15 for ; Mon, 2 Jul 2012 19:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q62Jo29l090734 for ; Mon, 2 Jul 2012 19:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q62Jo2de090733; Mon, 2 Jul 2012 19:50:02 GMT (envelope-from gnats) Resent-Date: Mon, 2 Jul 2012 19:50:02 GMT Resent-Message-Id: <201207021950.q62Jo2de090733@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joe Holden Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D73C21065674 for ; Mon, 2 Jul 2012 19:49:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BA92D8FC1A for ; Mon, 2 Jul 2012 19:49:16 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q62JnEGW059381 for ; Mon, 2 Jul 2012 19:49:14 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q62JnEMu059380; Mon, 2 Jul 2012 19:49:14 GMT (envelope-from nobody) Message-Id: <201207021949.q62JnEMu059380@red.freebsd.org> Date: Mon, 2 Jul 2012 19:49:14 GMT From: Joe Holden To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/169612: dns/powerdns: Fix botan/cryptopp dependency, make it configurable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2012 19:50:03 -0000 >Number: 169612 >Category: ports >Synopsis: dns/powerdns: Fix botan/cryptopp dependency, make it configurable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 02 19:50:02 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Joe Holden >Release: 9.0-RELEASE >Organization: Pseudo Networks Limited >Environment: FreeBSD abby.lhr1.as41113.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: This patch makes cryptopp and botan configurable as well as fixed the configure args, related botan patch in next pr. The patch should apply cleanly against the current version, was made some time ago. May need reviewing as the default options may not be a suitable default. >How-To-Repeat: >Fix: Patch attached with submission follows: --- Makefile.orig 2012-03-31 17:29:56.000000000 +0100 +++ Makefile 2012-04-29 00:32:44.000000000 +0100 @@ -16,10 +16,8 @@ MAINTAINER= tremere@cainites.net COMMENT= An advanced DNS server with multiple backends including SQL -BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam \ - ${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp -LIB_DEPENDS= botan.0:${PORTSDIR}/security/botan \ - boost_serialization.[4-9]:${PORTSDIR}/devel/boost-libs +BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam +LIB_DEPENDS= boost_serialization.[4-9]:${PORTSDIR}/devel/boost-libs USE_LUA= 5.1 LUA_COMPS= lua @@ -36,8 +34,6 @@ --with-dynmodules="pipe ${CONFIGURE_MODULES}" \ --sysconfdir="${PREFIX}/etc/pdns" \ --with-boost="${LOCALBASE}" \ - --enable-botan1.8 \ - --enable-cryptopp SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ CURDIR2="${.CURDIR}" \ MKDIR="${MKDIR}" \ @@ -48,15 +44,17 @@ SUB_FILES= pkg-message OPTIONS= PGSQL "PostgreSQL backend" on \ - PGSQL_LOCAL "RUN_DEPEND on PostgreSQL" off \ + PGSQL_LOCAL "RUN_DEPEND on PostgreSQL" off \ MYSQL "MySQL backend" off \ - MYSQL_LOCAL "RUN_DEPEND on MySQL server" off \ + MYSQL_LOCAL "RUN_DEPEND on MySQL server" off \ SQLITE "SQLite 2 backend" off \ SQLITE3 "SQLite 3 backend" off \ OPENDBX "OpenDBX backend" off \ OPENLDAP "OpenLDAP backend" off \ OPENLDAP_LOCAL "RUN_DEPEND on OpenLDAP server" off \ - GEO "Geo backend" off + GEO "Geo backend" off \ + BOTAN "Build with botan" off \ + CRYPTOPP "Build with cryptopp" on .include @@ -95,6 +93,22 @@ PLIST_SUB+= WITHMYSQL="@comment " .endif +.if defined(WITH_BOTAN) +LIB_DEPENDS+= botan.0:${PORTSDIR}/security/botan +CONFIGURE_ARGS+= --enable-botan1.8 +PLIST_SUB+= WITHBOTAN="" +.else +PLIST_SUB+= WITHBOTAN="@comment " +.endif + +.if defined(WITH_CRYPTOPP) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp +CONFIGURE_ARGS+= --enable-cryptopp +PLIST_SUB+= WITHCRYPTOPP="" +.else +PLIST_SUB+= WITHCRYPTOPP="@comment " +.endif + .if defined(WITH_OPENDBX) || defined(WITH_PGSQL) . if defined(WITH_PGSQL_LOCAL) USE_PGSQL?= YES >Release-Note: >Audit-Trail: >Unformatted: