From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 6 17:00:55 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 834BB16A4CE for ; Mon, 6 Sep 2004 17:00:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E97D43D3F for ; Mon, 6 Sep 2004 17:00:55 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i86H0tec050378 for ; Mon, 6 Sep 2004 17:00:55 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i86H0tp9050377; Mon, 6 Sep 2004 17:00:55 GMT (envelope-from gnats) Resent-Date: Mon, 6 Sep 2004 17:00:55 GMT Resent-Message-Id: <200409061700.i86H0tp9050377@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, Yen-Ming Lee Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 297E816A4CE for ; Mon, 6 Sep 2004 16:56:40 +0000 (GMT) Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id D139143D46 for ; Mon, 6 Sep 2004 16:56:39 +0000 (GMT) (envelope-from leeym@utopia.leeym.com) Received: from localhost (localhost [127.0.0.1]) by utopia.leeym.com (Postfix) with ESMTP id E2DEB3EADBB; Tue, 7 Sep 2004 00:56:38 +0800 (CST) Received: from utopia.leeym.com ([127.0.0.1]) by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 33014-04; Tue, 7 Sep 2004 00:56:35 +0800 (CST) Received: by utopia.leeym.com (Postfix, from userid 1000) id D94883EADB9; Tue, 7 Sep 2004 00:56:35 +0800 (CST) Message-Id: <20040906165635.D94883EADB9@utopia.leeym.com> Date: Tue, 7 Sep 2004 00:56:35 +0800 (CST) From: Yen-Ming Lee To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: esn@x123.info Subject: ports/71437: [PATCH] sysutils/apachetop: unbreak and apply OPTIONS X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2004 17:00:55 -0000 >Number: 71437 >Category: ports >Synopsis: [PATCH] sysutils/apachetop: unbreak and apply OPTIONS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 06 17:00:54 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 5.3-BETA3 i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD utopia.leeym.com 5.3-BETA3 FreeBSD 5.3-BETA3 #1: Sun Sep 5 01:06:46 CST >Description: - unbreak this port. - apply OPTIONS for optional ADNS/FAM/PCRE supports. Port maintainer (esn@x123.info) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/i386-5-latest/apachetop-0.12.log >Fix: --- apachetop-0.12.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/sysutils/apachetop/Makefile,v retrieving revision 1.12 diff -u -u -r1.12 Makefile --- Makefile 1 Jul 2004 17:06:40 -0000 1.12 +++ Makefile 6 Sep 2004 16:54:34 -0000 @@ -21,10 +21,33 @@ MAN1= apachetop.1 PLIST_FILES= sbin/apachetop -post-configure: - ${REINPLACE_CMD} \ - -e 's/--run autoconf$$/--run $${AUTOCONF}/' \ - -e 's/--run autoheader$$/--run $${AUTOHEADER}/' \ - ${WRKSRC}/Makefile +OPTIONS= ADNS "Asynchronous-capable DNS support" off \ + FAM "File Alteration Monitor support" off \ + PCRE "Perl Compatible Regular Expressions support" off -.include +.include + +.if defined(WITH_ADNS) +LIB_DEPENDS+= adns.1:${PORTSDIR}/dns/adns +CONFIGURE_ARGS+=--with-adns=${LOCALBASE} +.endif + +.if defined(WITH_FAM) +LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam +CONFIGURE_ARGS+=--with-fam=${LOCALBASE} +.endif + +.if defined(WITH_PCRE) +LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre +CONFIGURE_ARGS+=--with-pcre=${LOCALBASE} +.endif + +post-patch: + @${REINPLACE_CMD} -E -e 's,struct (circle_struct),\1,g' \ + ${WRKSRC}/src/hits_circle.* + @${REINPLACE_CMD} -E -e 's,enum (adns_queryflags),\1,g' \ + ${WRKSRC}/src/log.* + @${REINPLACE_CMD} -e 's,@AUTOCONF@,${AUTOCONF},' \ + -e 's,@AUTOHEADER@,${AUTOHEADER},' ${WRKSRC}/Makefile.in + +.include --- apachetop-0.12.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: