summaryrefslogtreecommitdiff
path: root/sysutils/apachetop/Makefile
blob: 2653f8ce99a753c3f8088206af2219d09dd62e66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Created by: Sebastian Yepes F. <esn@x123.info>
# $FreeBSD$

PORTNAME=	apachetop
PORTVERSION=	0.12.6
PORTREVISION=	4
CATEGORIES=	sysutils
MASTER_SITES=	http://www.webta.org/apachetop/

MAINTAINER=	admin@mjbrune.org
COMMENT=	Apache RealTime log stats


GNU_CONFIGURE=	yes

MAN1=		apachetop.1
PLIST_FILES=	bin/apachetop

OPTIONS_DEFINE=	ADNS FAM PCRE
ADNS_DESC=	Asynchronous-capable DNS support

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MADNS}
LIB_DEPENDS+=	adns.1:${PORTSDIR}/dns/adns
CONFIGURE_ARGS+=--with-adns=${LOCALBASE}
.endif

.if ${PORT_OPTIONS:MFAM}
LIB_DEPENDS+=	fam.0:${PORTSDIR}/devel/fam
CONFIGURE_ARGS+=--with-fam=${LOCALBASE}
.endif

.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+=	pcre.3:${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.*
	@cd ${WRKSRC} && ${TOUCH} -r configure.ac aclocal.m4 stamp-h.in

.include <bsd.port.mk>