2003-09-30 10:10:57 +02:00
|
|
|
# New ports collection makefile for: apachetop
|
2003-12-26 14:21:47 +01:00
|
|
|
# Date created: 30 Sep 2003
|
|
|
|
# Whom: Sebastian Yepes F. <esn@x123.info>
|
2003-09-30 10:10:57 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= apachetop
|
2006-04-21 16:46:42 +02:00
|
|
|
PORTVERSION= 0.12.6
|
2003-09-30 10:10:57 +02:00
|
|
|
CATEGORIES= sysutils
|
2006-04-21 16:46:42 +02:00
|
|
|
MASTER_SITES= http://www.webta.org/apachetop/
|
2003-09-30 10:10:57 +02:00
|
|
|
|
2005-11-27 05:17:17 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-09-30 10:10:57 +02:00
|
|
|
COMMENT= Apache RealTime log stats
|
|
|
|
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:259:env
|
2003-12-26 14:21:47 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-09-30 10:10:57 +02:00
|
|
|
|
2003-10-11 13:48:51 +02:00
|
|
|
MAN1= apachetop.1
|
2005-11-03 20:58:00 +01:00
|
|
|
PLIST_FILES= bin/apachetop
|
2003-10-11 13:48:51 +02:00
|
|
|
|
2004-09-16 04:27:05 +02:00
|
|
|
OPTIONS= ADNS "Asynchronous-capable DNS support" off \
|
|
|
|
FAM "File Alteration Monitor support" off \
|
|
|
|
PCRE "Perl Compatible Regular Expressions support" off
|
2003-09-30 10:10:57 +02:00
|
|
|
|
2004-09-16 04:27:05 +02:00
|
|
|
.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,@AUTOCONF@,${AUTOCONF},' \
|
|
|
|
-e 's,@AUTOHEADER@,${AUTOHEADER},' ${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|