mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
ce6d68dcc8
- Convert to USES=dos2unix [1] - Use option helper - Simplify do-install target using WWWDIR, COPYTREE_SHARE etc - Break lines around 80 characters PR: ports/187407 [1] Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> Approved by: maintainer timeout
93 lines
3.3 KiB
Makefile
93 lines
3.3 KiB
Makefile
# Created by: Munish Chopra <mchopra@engmail.uwaterloo.ca>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= awstats
|
|
PORTVERSION= 7.3
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF/${PORTNAME}/AWStats/${PORTVERSION}
|
|
|
|
MAINTAINER= samm@os2.kiev.ua
|
|
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= dos2unix perl5 shebangfix
|
|
|
|
SHEBANG_FILES= tools/*.pl wwwroot/cgi-bin/*.pl wwwroot/cgi-bin/plugins/*.pm
|
|
|
|
NO_BUILD= yes
|
|
USE_PERL5= run
|
|
DOS2UNIX_GLOB= 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
|
|
|
|
IPV6_RUN_DEPENDS= p5-Net-IP>=0:${PORTSDIR}/net-mgmt/p5-Net-IP \
|
|
p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
${WRKSRC}/tools/awstats_buildstaticpages.pl \
|
|
${WRKSRC}/tools/awstats_configure.pl \
|
|
${WRKSRC}/tools/awstats_updateall.pl \
|
|
${WRKSRC}/wwwroot/cgi-bin/awstats.pl
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/tools/webmin
|
|
(cd ${WRKSRC}/tools && ${INSTALL_SCRIPT} awstats_buildstaticpages.pl \
|
|
awstats_configure.pl awstats_exportlib.pl awstats_updateall.pl \
|
|
logresolvemerge.pl maillogconvert.pl urlaliasbuilder.pl \
|
|
${STAGEDIR}${WWWDIR}/tools)
|
|
(cd ${WRKSRC}/tools && ${COPYTREE_SHARE} xslt ${STAGEDIR}${WWWDIR}/tools)
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin
|
|
(cd ${WRKSRC}/wwwroot/cgi-bin && ${INSTALL_SCRIPT} awredir.pl awstats.pl \
|
|
awstats.model.conf ${STAGEDIR}${WWWDIR}/cgi-bin)
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin/lang/tooltips_f
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/tooltips_f/*.txt \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin/lang/tooltips_f
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin/lang/tooltips_m
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/tooltips_m/*.txt \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin/lang/tooltips_m
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin/lang/tooltips_w
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/tooltips_w/*.txt \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin/lang/tooltips_w
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/lang/*.txt \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin/lang
|
|
(cd ${WRKSRC}/wwwroot/cgi-bin && ${COPYTREE_SHARE} lib \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin)
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/cgi-bin/plugins
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/cgi-bin/plugins/*.pm \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin/plugins
|
|
(cd ${WRKSRC}/wwwroot/cgi-bin/plugins && ${COPYTREE_SHARE} example \
|
|
${STAGEDIR}${WWWDIR}/cgi-bin/plugins)
|
|
@${MKDIR} ${STAGEDIR}${WWWDIR}/classes
|
|
${INSTALL_DATA} ${WRKSRC}/wwwroot/classes/awgraphapplet.jar \
|
|
${STAGEDIR}${WWWDIR}/classes
|
|
(cd ${WRKSRC}/wwwroot && ${COPYTREE_SHARE} "js css" ${STAGEDIR}${WWWDIR})
|
|
(cd ${WRKSRC}/wwwroot/icon && ${COPYTREE_SHARE} "browser clock cpu \
|
|
flags mime os other" ${STAGEDIR}${WWWDIR}/icons)
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} images ${STAGEDIR}${DOCSDIR})
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.* ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} "* Use ${WWWDIR}/tools/awstats_configure.pl to setup your hosts."
|
|
@${ECHO_CMD} ""
|
|
|
|
.include <bsd.port.mk>
|