mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
dec81534f1
ChangeLog: https://awstats.sourceforge.io/docs/awstats_changelog.txt * Add Windows 11 and Android 13 operating systems * Update Hungarian translation and migrate it to UTF-8. * fix cross site scripting * Replace hard coded text with $Message ( Monthly, Daily, Hourly ) * Android 11 + 12, MacOS 11 ( Big Sur ) + 12 ( Monterey ) * Catch up german translations * Change the substitution that replaces newlines with BR elements so that the syntax works for both HTML and XHTML. * Added a few robots and 1 phone browser. Also corrected some errors in devlop robots.pm * Only look for configuration in dedicated awstats directories * Unwrap SRS e-mail addresses * Fixes #195/CVE-2020-35176 * As geoip2_country doesn't have AddHTMLGraph_geoip2_country, it should only generate subpage for geoip2_city. * added support for HaikuOS and Safari based WebPositive browser * Adding missing td-tag opening * Tajik Language Support PR: 269051 Reported by: vidar@karlsen.tech (maintainer) MFH: 2023Q1 (security fixes) Security: CVE-2020-35176
92 lines
3.0 KiB
Makefile
92 lines
3.0 KiB
Makefile
PORTNAME= awstats
|
|
PORTVERSION= 7.9
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/AWStats/${PORTVERSION}
|
|
|
|
MAINTAINER= vidar@karlsen.tech
|
|
COMMENT= Free real-time logfile analyzer to get advanced web statistics
|
|
WWW= https://www.awstats.org/
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/docs/LICENSE.TXT
|
|
|
|
USES= cpe dos2unix perl5 shebangfix
|
|
CPE_VENDOR= laurent_destailleur
|
|
DOS2UNIX_GLOB= *.xml *.pm
|
|
USE_PERL5= run
|
|
|
|
SHEBANG_GLOB= *.pl *.pm
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
OPTIONS_DEFINE= DOCS GEOIPFREE IPV6
|
|
OPTIONS_DEFAULT= HOSTINFO
|
|
OPTIONS_GROUP= MODULES
|
|
|
|
OPTIONS_GROUP_MODULES= DECODEUTFKEYS HOSTINFO
|
|
DECODEUTFKEYS_DESC= DecodeUTFKeys (requires p5-URI)
|
|
GEOIPFREE_DESC= Country lookups via Geo::IPfree
|
|
HOSTINFO_DESC= HostInfo (requires p5-Net-XWhois)
|
|
MODULES_DESC= Plugin support not present in Perl CORE
|
|
DECODEUTFKEYS_RUN_DEPENDS= p5-URI>0:net/p5-URI
|
|
GEOIPFREE_RUN_DEPENDS= p5-Geo-IPfree>=0:net/p5-Geo-IPfree
|
|
HOSTINFO_RUN_DEPENDS= p5-Net-XWhois>=0:net/p5-Net-XWhois
|
|
IPV6_RUN_DEPENDS= p5-Net-IP>=0:net-mgmt/p5-Net-IP \
|
|
p5-Net-DNS>=0:dns/p5-Net-DNS
|
|
|
|
pre-patch:
|
|
# This file is so messed up, not even dos2unix can fix it
|
|
@fixme="${WRKSRC}/wwwroot/cgi-bin/plugins/export_to_csv.pm" && \
|
|
${TR} '\r' '\n' < $$fixme > $$fixme.new && \
|
|
${MV} $$fixme.new $$fixme
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -E -e 's|/usr/local/etc/awstats|${ETCDIR}|' \
|
|
-e 's|/etc/awstats/(awstats.model.conf)|${ETCDIR}/\1|' \
|
|
-e 's,/usr/(local|share)/awstats/wwwroot,${WWWDIR},' \
|
|
${WRKSRC}/tools/*.pl \
|
|
${WRKSRC}/tools/httpd_conf \
|
|
${WRKSRC}/tools/nginx/* \
|
|
${WRKSRC}/wwwroot/cgi-bin/*.pl \
|
|
${WRKSRC}/wwwroot/cgi-bin/*.conf
|
|
${REINPLACE_CMD} -e 's|/etc/awstats|${ETCDIR}|' \
|
|
${WRKSRC}/tools/awstats_updateall.pl
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
-e 's|%%WWWDIR%%|${WWWDIR}|' \
|
|
-e 's|AWSTATS_PATH/wwwroot|AWSTATS_PATH|' \
|
|
${WRKSRC}/tools/awstats_configure.pl
|
|
|
|
pre-install:
|
|
.for f in dolibarr httpd_conf nginx webmin
|
|
${MV} ${WRKSRC}/tools/$f ${WRKSRC}/docs
|
|
.endfor
|
|
${RM} ${WRKSRC}/docs/*.bak
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/tools
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin
|
|
.for f in awstats_buildstaticpages.pl awstats_configure.pl \
|
|
awstats_exportlib.pl awstats_updateall.pl geoip_generator.pl \
|
|
logresolvemerge.pl maillogconvert.pl urlaliasbuilder.pl
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/$f ${STAGEDIR}${WWWDIR}/tools
|
|
.endfor
|
|
.for f in awdownloadcsv.pl awredir.pl awstats.model.conf awstats.pl
|
|
${INSTALL_SCRIPT} ${WRKSRC}/wwwroot/cgi-bin/$f ${STAGEDIR}${WWWDIR}/cgi-bin
|
|
.endfor
|
|
(cd ${WRKSRC}/wwwroot/cgi-bin && ${COPYTREE_SHARE} "lang lib plugins" ${STAGEDIR}${WWWDIR}/cgi-bin)
|
|
(cd ${WRKSRC}/wwwroot && ${COPYTREE_SHARE} "css icon js" ${STAGEDIR}${WWWDIR})
|
|
(cd ${WRKSRC}/tools && ${COPYTREE_SHARE} xslt ${STAGEDIR}${WWWDIR}/tools)
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}/classes
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/classes/awgraphapplet.jar ${STAGEDIR}${WWWDIR}/classes
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|