2002-05-14 07:08:19 +00:00
|
|
|
# New ports collection makefile for: awstats
|
|
|
|
# Date created: May 13, 2002
|
|
|
|
# Whom: Munish Chopra <mchopra@engmail.uwaterloo.ca>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= awstats
|
2004-01-23 20:54:25 +00:00
|
|
|
PORTVERSION= 6.0
|
2004-01-26 22:06:00 +00:00
|
|
|
PORTREVISION= 1
|
2002-05-14 07:08:19 +00:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2004-01-24 21:30:41 +00:00
|
|
|
MAINTAINER= webmaster@lightningfire.net
|
2003-02-21 14:08:24 +00:00
|
|
|
COMMENT= Free real-time logfile analyzer to get advanced web statistics
|
2002-05-14 07:08:19 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2002-11-17 22:24:46 +00:00
|
|
|
USE_PERL5_RUN= yes
|
2004-01-25 00:49:28 +00:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/Net/XWhois.pm:${PORTSDIR}/net/p5-Net-XWhois
|
2002-11-15 18:23:52 +00:00
|
|
|
|
2002-05-14 07:08:19 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/www/cgi-bin/lang
|
2002-07-14 17:53:29 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/cgi-bin/lib
|
2002-11-15 18:23:52 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/cgi-bin/plugins
|
|
|
|
@${MKDIR} ${PREFIX}/www/cgi-bin/plugins/example
|
2003-07-13 06:49:52 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/css
|
2002-05-14 07:08:19 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/icons/browser
|
|
|
|
@${MKDIR} ${PREFIX}/www/icons/clock
|
|
|
|
@${MKDIR} ${PREFIX}/www/icons/cpu
|
|
|
|
@${MKDIR} ${PREFIX}/www/icons/flags
|
2003-04-25 19:04:39 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/icons/mime
|
2002-05-14 07:08:19 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/icons/os
|
|
|
|
@${MKDIR} ${PREFIX}/www/icons/other
|
2003-07-13 06:49:52 +00:00
|
|
|
@${MKDIR} ${PREFIX}/www/js
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_buildstaticpages.pl ${PREFIX}/bin
|
2003-04-25 19:04:39 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_exportlib.pl ${PREFIX}/bin
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_updateall.pl ${PREFIX}/bin
|
2004-01-23 20:54:25 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/configure.pl ${PREFIX}/bin/awstats_configure.pl
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/logresolvemerge.pl ${PREFIX}/bin/awstats_logresolvemerge.pl
|
2003-07-13 06:49:52 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/maillogconvert.pl ${PREFIX}/bin/awstats_maillogconvert.pl
|
2003-04-25 19:04:39 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/urlaliasbuilder.pl ${PREFIX}/bin/awstats_urlaliasbuilder.pl
|
2004-01-23 20:54:25 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/webmin/awstats-1.21.wbm ${PREFIX}/bin/awstats-1.21.wbm
|
2003-09-10 03:32:18 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/awredir.pl ${PREFIX}/www/cgi-bin
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/awstats.model.conf ${PREFIX}/www/cgi-bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/awstats.pl ${PREFIX}/www/cgi-bin
|
2002-05-14 07:08:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/* ${PREFIX}/www/cgi-bin/lang
|
2002-07-14 17:53:29 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lib/* ${PREFIX}/www/cgi-bin/lib
|
2004-01-23 20:54:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/decodeutfkeys.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-02-05 18:01:33 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/geoip.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-07-13 06:49:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/geoipfree.pm ${PREFIX}/www/cgi-bin/plugins
|
2004-01-23 20:54:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/graphapplet.pm ${PREFIX}/www/cgi-bin/plugins
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/hashfiles.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-09-10 03:32:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/hostinfo.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-07-13 06:49:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/ipv6.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-09-10 03:32:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/rawlog.pm ${PREFIX}/www/cgi-bin/plugins
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/timehires.pm ${PREFIX}/www/cgi-bin/plugins
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/timezone.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-04-25 19:04:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/tooltips.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-02-05 18:01:33 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/urlalias.pm ${PREFIX}/www/cgi-bin/plugins
|
2003-07-13 06:49:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/userinfo.pm ${PREFIX}/www/cgi-bin/plugins
|
2002-11-15 18:23:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/example/* ${PREFIX}/www/cgi-bin/plugins/example
|
2003-07-13 06:49:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/css/* ${PREFIX}/www/css
|
2002-05-14 07:08:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/browser/* ${PREFIX}/www/icons/browser
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/clock/* ${PREFIX}/www/icons/clock
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/cpu/* ${PREFIX}/www/icons/cpu
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/flags/* ${PREFIX}/www/icons/flags
|
2003-04-25 19:04:39 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/mime/* ${PREFIX}/www/icons/mime
|
2002-05-14 07:08:19 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/os/* ${PREFIX}/www/icons/os
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/other/* ${PREFIX}/www/icons/other
|
2003-07-13 06:49:52 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/js/* ${PREFIX}/www/js
|
2002-05-14 07:08:19 +00:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${ECHO_CMD} "* Rename ${PREFIX}/www/cgi-bin/awstats.model.conf to awstats.conf to set up AWStats"
|
|
|
|
@${ECHO_CMD} "* Documentation has been installed in ${PREFIX}/share/doc/awstats"
|
2002-11-15 18:23:52 +00:00
|
|
|
@${ECHO_CMD} ""
|
|
|
|
|
2002-05-14 07:08:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-07-14 17:53:29 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/images
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/images/* ${DOCSDIR}/images
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.* ${DOCSDIR}
|
2002-05-14 07:08:19 +00:00
|
|
|
.endif
|
|
|
|
|
2003-10-16 08:02:00 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|