summaryrefslogtreecommitdiff
path: root/www/squidanalyzer/Makefile
blob: b784a5ce4c63c11fa69552779566cfb9c36a0d6b (plain)
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
# $NetBSD: Makefile,v 1.7 2015/02/25 11:43:54 adam Exp $

DISTNAME=	squidanalyzer-6.2-1
PKGNAME=	squidanalyzer-6.2.1
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=squid-report/}

MAINTAINER=	adam@NetBSD.org
HOMEPAGE=	http://squidanalyzer.darold.net/
COMMENT=	Squid proxy native log analyser and reports generator
LICENSE=	gnu-gpl-v3

DEPENDS+=	p5-GD-Graph3d>=0.63:../../graphics/p5-GD-Graph3d

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV:R}

USE_LANGUAGES=		# empty
USE_TOOLS+=		perl:run
REPLACE_PERL+=		squid-analyzer

BUILD_DEFS+=		VARBASE
PERL5_PACKLIST=		auto/SquidAnalyzer/.packlist
MAKE_PARAMS+=		BINDIR=${PREFIX}/bin
MAKE_PARAMS+=		CONFDIR=${EGDIR}
MAKE_PARAMS+=		DESTDIR=${DESTDIR}
MAKE_PARAMS+=		ETCDIR=${PKG_SYSCONFDIR}
MAKE_PARAMS+=		HTMLDIR=${PREFIX}/share/squidanalyzer
MAKE_PARAMS+=		LOGFILE=${VARBASE}/squid/access.log
MAKE_PARAMS+=		MANDIR=${PREFIX}/${PKGMANDIR}/man3

EGDIR=		${PREFIX}/share/examples/squidanalyzer
CONF_FILES=	${EGDIR}/squidanalyzer.conf ${PKG_SYSCONFDIR}/squidanalyzer.conf

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"