summaryrefslogtreecommitdiff
path: root/www/awstats/Makefile
blob: 007b3c462111dfbd86f3fff3eb74bdda9aae41a7 (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
36
37
38
39
# $NetBSD: Makefile,v 1.3 2003/09/10 13:07:20 seb Exp $
#

DISTNAME=	awstats-5.1
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=awstats/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	xtraeme@NetBSD.org
HOMEPAGE=	http://awstats.sourceforge.net/
COMMENT=	Free real-time logfile analyzer to get advanced web statistics

USE_BUILDLINK2=	YES
NO_BUILD=	YES
USE_PERL5=	run

REPLACE_PERL =						\
		tools/awstats_buildstaticpages.pl	\
		tools/awstats_updateall.pl		\
		tools/logresolvemerge.pl		\
		wwwroot/cgi-bin/awstats.pl

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/awstats
	${INSTALL_DATA_DIR} ${PREFIX}/awstats/bin
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/awstats
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/awstats
	${INSTALL_SCRIPT} ${WRKSRC}/tools/*.pl ${PREFIX}/awstats/bin
	${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/awstats.model.conf	\
		${PREFIX}/share/examples/awstats/awstats.conf
	${RM} ${WRKSRC}/wwwroot/cgi-bin/awstats.model.conf
	${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/example/example.pm \
		${PREFIX}/share/examples/awstats/example.pm
	${RM} -fr ${WRKSRC}/wwwroot/cgi-bin/plugins/example
	cd ${WRKSRC}/wwwroot && ${PAX} -rwp e . ${PREFIX}/awstats/
	cd ${WRKSRC}/docs && ${PAX} -rwp e . ${PREFIX}/share/doc/html/awstats/

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