1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Update to version 7.3 [1]

- 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
This commit is contained in:
Pawel Pekala 2014-03-25 19:19:44 +00:00
parent f58cdc1501
commit ce6d68dcc8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349170
3 changed files with 64 additions and 77 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= awstats
PORTVERSION= 7.2
PORTREVISION= 1
PORTVERSION= 7.3
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/AWStats/${PORTVERSION}
@ -15,13 +14,13 @@ LICENSE= GPLv2
RUN_DEPENDS= p5-Net-XWhois>=0:${PORTSDIR}/net/p5-Net-XWhois
USES= perl5 shebangfix
USES= dos2unix 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 \
DOS2UNIX_GLOB= tools/*.pl \
wwwroot/cgi-bin/awstats.model.conf \
wwwroot/cgi-bin/*.pl \
wwwroot/cgi-bin/lang/tooltips_f/*.txt \
@ -38,80 +37,56 @@ 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
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
@${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
@${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}${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
@${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}
.endif
@${ECHO_CMD} ""
@${ECHO_CMD} "* Use ${PREFIX}/www/awstats/tools/awstats_configure.pl to setup your hosts."
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_CMD} "* Documentation has been installed in ${PREFIX}/share/doc/awstats"
.endif
@${ECHO_CMD} "* Use ${WWWDIR}/tools/awstats_configure.pl to setup your hosts."
@${ECHO_CMD} ""
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (awstats-7.2.tar.gz) = 740cb46ac5a7befb72ff0b80d0e53c6fe3560700208bce18f4fb5b2b5e275791
SIZE (awstats-7.2.tar.gz) = 1274635
SHA256 (awstats-7.3.tar.gz) = 642da01c4482c99f68076c02b9a6e0c6de803303597be4ee4d0c8fce69bd1ad4
SIZE (awstats-7.3.tar.gz) = 2897463

View File

@ -21,17 +21,25 @@
%%PORTDOCS%%%%DOCSDIR%%/awstats_webmin.html
%%PORTDOCS%%%%DOCSDIR%%/awstats_what.html
%%PORTDOCS%%%%DOCSDIR%%/images/awstats.ico
%%PORTDOCS%%%%DOCSDIR%%/images/awstats.svg
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_250x250.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_ban_460x270.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_ban_800x160.svg
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_ban_960x540.jpg
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_ban_960x540.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_ban_960x540.svg
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo1.gif
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo1.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo2.gif
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo2.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo3.gif
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo3.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo4.gif
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo4.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo5.gif
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo5.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo6.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo7.jpg
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo7.png
%%PORTDOCS%%%%DOCSDIR%%/images/awstats_logo7.svg
%%PORTDOCS%%%%DOCSDIR%%/images/license_chart.png
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_1.gif
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_1.jpg
@ -40,6 +48,7 @@
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_3.png
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_4.png
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_5.png
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_960x540.png
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_large_1.jpg
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_large_2.jpg
%%PORTDOCS%%%%DOCSDIR%%/images/screen_shot_large_3.jpg
@ -700,6 +709,8 @@ www/awstats/icons/os/webtv.png
www/awstats/icons/os/wii.png
www/awstats/icons/os/win.png
www/awstats/icons/os/win7.png
www/awstats/icons/os/win8.1.png
www/awstats/icons/os/win8.png
www/awstats/icons/os/win16.png
www/awstats/icons/os/win2000.png
www/awstats/icons/os/win2003.png
@ -710,6 +721,7 @@ www/awstats/icons/os/wince.png
www/awstats/icons/os/winlong.png
www/awstats/icons/os/winme.png
www/awstats/icons/os/winnt.png
www/awstats/icons/os/winphone.png
www/awstats/icons/os/winunknown.png
www/awstats/icons/os/winvista.png
www/awstats/icons/os/winxp.png