freebsd-ports/www/awstats/Makefile

118 lines
5.8 KiB
Makefile
Raw Normal View History

# Created by: Munish Chopra <mchopra@engmail.uwaterloo.ca>
# $FreeBSD$
PORTNAME= awstats
PORTVERSION= 7.2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/AWStats/${PORTVERSION}
MAINTAINER= samm@os2.kiev.ua
2003-02-21 15:08:24 +01:00
COMMENT= Free real-time logfile analyzer to get advanced web statistics
LICENSE= GPLv2
RUN_DEPENDS= p5-Net-XWhois>=0:${PORTSDIR}/net/p5-Net-XWhois
USES= perl5 shebangfix
SHEBANG_FILES= tools/*.pl wwwroot/cgi-bin/*.pl wwwroot/cgi-bin/plugins/*.pm
NO_BUILD= yes
USE_PERL5= run
USE_DOS2UNIX= tools/*.pl \
wwwroot/cgi-bin/awstats.model.conf \
wwwroot/cgi-bin/*.pl \
wwwroot/cgi-bin/lang/tooltips_f/*.txt \
wwwroot/cgi-bin/lang/tooltips_m/*.txt \
wwwroot/cgi-bin/lang/tooltips_w/*.txt \
wwwroot/cgi-bin/lang/*.txt \
wwwroot/cgi-bin/lib/* \
wwwroot/cgi-bin/plugins/*.pm \
wwwroot/cgi-bin/plugins/example/* \
wwwroot/css/* \
wwwroot/js/*
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS IPV6
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MIPV6}
RUN_DEPENDS+= p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP
RUN_DEPENDS+= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/tools/awstats_buildstaticpages.pl
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/tools/awstats_configure.pl
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/tools/awstats_updateall.pl
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/wwwroot/cgi-bin/awstats.pl
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang/tooltips_f
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang/tooltips_m
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang/tooltips_w
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lib
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/plugins
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/plugins/example
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/classes
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/css
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/browser
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/clock
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/cpu
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/flags
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/mime
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/os
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/icons/other
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/js
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/tools
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/tools/webmin
@${MKDIR} ${STAGEDIR}${PREFIX}/www/awstats/tools/xslt
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_buildstaticpages.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_configure.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_exportlib.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_SCRIPT} ${WRKSRC}/tools/awstats_updateall.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_SCRIPT} ${WRKSRC}/tools/logresolvemerge.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_SCRIPT} ${WRKSRC}/tools/maillogconvert.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_SCRIPT} ${WRKSRC}/tools/urlaliasbuilder.pl ${STAGEDIR}${PREFIX}/www/awstats/tools
${INSTALL_DATA} ${WRKSRC}/tools/xslt/* ${STAGEDIR}${PREFIX}/www/awstats/tools/xslt
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/awredir.pl ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/awstats.model.conf ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/awstats.pl ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/tooltips_f/*.txt ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang/tooltips_f
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/tooltips_m/*.txt ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang/tooltips_m
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/tooltips_w/*.txt ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang/tooltips_w
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/*.txt ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lang
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lib/* ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/lib
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/*.pm ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/plugins
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/example/* ${STAGEDIR}${PREFIX}/www/awstats/cgi-bin/plugins/example
${INSTALL_DATA} ${WRKSRC}/wwwroot/classes/awgraphapplet.jar ${STAGEDIR}${PREFIX}/www/awstats/classes/awgraphapplet.jar
${INSTALL_DATA} ${WRKSRC}/wwwroot/css/* ${STAGEDIR}${PREFIX}/www/awstats/css
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/browser/* ${STAGEDIR}${PREFIX}/www/awstats/icons/browser
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/clock/* ${STAGEDIR}${PREFIX}/www/awstats/icons/clock
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/cpu/* ${STAGEDIR}${PREFIX}/www/awstats/icons/cpu
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/flags/* ${STAGEDIR}${PREFIX}/www/awstats/icons/flags
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/mime/* ${STAGEDIR}${PREFIX}/www/awstats/icons/mime
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/os/* ${STAGEDIR}${PREFIX}/www/awstats/icons/os
${INSTALL_DATA} ${WRKSRC}/wwwroot/icon/other/* ${STAGEDIR}${PREFIX}/www/awstats/icons/other
${INSTALL_DATA} ${WRKSRC}/wwwroot/js/* ${STAGEDIR}${PREFIX}/www/awstats/js
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
${INSTALL_DATA} ${WRKSRC}/docs/images/* ${STAGEDIR}${DOCSDIR}/images
${INSTALL_DATA} ${WRKSRC}/docs/*.* ${STAGEDIR}${DOCSDIR}
.endif
- Update to 6.9 Changes 6.9: New features/improvements: - With postfix that support DSN (Delivery Status Notifications) we exclude some lines to avoid counting mails twice in maillogconvert.pl script. - Logresolvemerge.pl support FreeRADIUS logs or anything else using (the fixed length!) ctime format timestamp. - Add option stoponfirsteof in logresolvemerge tool. - Add patch to support host_proxy tag in LogFormat (for Apache LogFormat containing %{X-Forwarded-For}i) - Renamed Add to favourites on "Hit on favicon". - Increase robots, search engines database (Added Google Chrome browser, better Vista, WII, detection, ...) - Update languages files. - Added a lot of patch from sourceforge. Fixes: - Fixed broken maxmind citi, org and isp plugins. - Remove &nbsp; in name html tag to have HtmlHeadSection first. - Fix: [ 2001151 ] Security fix. - Fix: [ 2038681 ] missing <br _/_> in plugins/geoip_org_maxmind.pm - Fix: [ 1921942 ] html footer is missing from the allextraN report. - Fix: [ 1943466 ] error geoip_city_maxmind Can't locate object method "record_ - Fix: [ 1808277 ] Incorrect function call in geoip_isp_maxmind.pm - Fix: Full list of extrasections was not ordered correctly - A lot of other fixes. - Added missing icons Other/Documentation: - None - Fix CVE-2008-3714 from the upstream (Sec: Enhance security of sanitizing parameters) http://awstats.cvs.sourceforge.net/viewvc/awstats/awstats/wwwroot/cgi-bin/awstats.pl?r1=1.925&r2=1.926 PR: ports/129957, ports/130143 Submitted by: Eygene Ryabinkin <rea-fbsd _at\ codelabs.ru>, Naram Qashat <cyberbotx -at\ cyberbotx.com> Approved by: Alex Samorukov (maintainer) Security: http://secunia.com/advisories/31519
2009-01-04 07:18:02 +01:00
@${ECHO_CMD} ""
@${ECHO_CMD} "* Use ${PREFIX}/www/awstats/tools/awstats_configure.pl to setup your hosts."
.if ${PORT_OPTIONS:MDOCS}
- Update to 6.9 Changes 6.9: New features/improvements: - With postfix that support DSN (Delivery Status Notifications) we exclude some lines to avoid counting mails twice in maillogconvert.pl script. - Logresolvemerge.pl support FreeRADIUS logs or anything else using (the fixed length!) ctime format timestamp. - Add option stoponfirsteof in logresolvemerge tool. - Add patch to support host_proxy tag in LogFormat (for Apache LogFormat containing %{X-Forwarded-For}i) - Renamed Add to favourites on "Hit on favicon". - Increase robots, search engines database (Added Google Chrome browser, better Vista, WII, detection, ...) - Update languages files. - Added a lot of patch from sourceforge. Fixes: - Fixed broken maxmind citi, org and isp plugins. - Remove &nbsp; in name html tag to have HtmlHeadSection first. - Fix: [ 2001151 ] Security fix. - Fix: [ 2038681 ] missing <br _/_> in plugins/geoip_org_maxmind.pm - Fix: [ 1921942 ] html footer is missing from the allextraN report. - Fix: [ 1943466 ] error geoip_city_maxmind Can't locate object method "record_ - Fix: [ 1808277 ] Incorrect function call in geoip_isp_maxmind.pm - Fix: Full list of extrasections was not ordered correctly - A lot of other fixes. - Added missing icons Other/Documentation: - None - Fix CVE-2008-3714 from the upstream (Sec: Enhance security of sanitizing parameters) http://awstats.cvs.sourceforge.net/viewvc/awstats/awstats/wwwroot/cgi-bin/awstats.pl?r1=1.925&r2=1.926 PR: ports/129957, ports/130143 Submitted by: Eygene Ryabinkin <rea-fbsd _at\ codelabs.ru>, Naram Qashat <cyberbotx -at\ cyberbotx.com> Approved by: Alex Samorukov (maintainer) Security: http://secunia.com/advisories/31519
2009-01-04 07:18:02 +01:00
@${ECHO_CMD} "* Documentation has been installed in ${PREFIX}/share/doc/awstats"
.endif
@${ECHO_CMD} ""
.include <bsd.port.post.mk>