ports/71437: [PATCH] sysutils/apachetop: unbreak and apply OPTIONS

Yen-Ming Lee leeym at FreeBSD.org
Mon Sep 6 17:00:55 UTC 2004


>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 at 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 <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.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, at AUTOCONF@,${AUTOCONF},' \
+		-e 's, at AUTOHEADER@,${AUTOHEADER},' ${WRKSRC}/Makefile.in
+
+.include <bsd.port.post.mk>
--- apachetop-0.12.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list