summaryrefslogtreecommitdiff
path: root/www/awstats/Makefile
blob: 967c17b2481666be31c35ca2622c8a026c430f4f (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
40
# $NetBSD: Makefile,v 1.4 2004/01/12 23:53:50 xtraeme Exp $
#

DISTNAME=	awstats-5.9
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/awredir.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} -rwpppm . ${PREFIX}/awstats/
	cd ${WRKSRC}/docs && ${PAX} -rwpppm . ${PREFIX}/share/doc/html/awstats/

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