aboutsummaryrefslogtreecommitdiff
path: root/www/sqmgrlog/Makefile
blob: 97da23cd8c1aa1126ccb2de0948488a69bfc388d (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
# New ports collection makefile for:	sqmgrlog
# Date created:		Mon Feb  5 17:00:40 NOVT 2001
# Whom:			Dmitry Grigorovich <odip@bionet.nsc.ru>
#
# $FreeBSD$
#

PORTNAME=	sqmgrlog
PORTVERSION=	3.0.1
CATEGORIES=	www
MASTER_SITES=	http://web.onda.com.br/orso/

MAINTAINER=	ports@FreeBSD.org

PORTCOMMENT=	Squid log analyzer and HTML report generator

USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--enable-prefix=${PREFIX} --with-gcc

post-patch:
	@${REINPLACE_CMD} -e 's,LDFLAGS="-g",LDFLAGS="",' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's,/usr/local/etc/httpd/htdocs/,${PREFIX}/www/data/,; \
		s,mailx,mail,' ${WRKSRC}/sqmgrlog.conf ${WRKSRC}/log.c

post-install:
	@if [ ! -f ${PREFIX}/etc/sqmgrlog.conf ]; then \
		${INSTALL_DATA} ${WRKSRC}/sqmgrlog.conf ${PREFIX}/etc; \
	fi

.include <bsd.port.mk>