- Update distinfo

- Use DISTNAME
- Use WWWDIR instead of SPEEDTEST
- Provide correct pkg-message for users of non-default PREFIX or WWWDIR
- Use WWWDIR in pkg-plist (original pkg-plist is not WWWDIR-safe)

PR:		ports/154662 [1]
Submitted by:	Artem Naluzhnyy <Artem.Naluzhnyy@gmail.com> [1]
                sunpoet (myself)
Approved by:	Gritsuk Anton <gx@bsdplanet.ru> (maintainer)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-02-17 01:59:24 +00:00
parent 0548dcac41
commit 02729d45ee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269259
4 changed files with 42 additions and 48 deletions

View file

@ -7,30 +7,30 @@
PORTNAME= speedtest-mini PORTNAME= speedtest-mini
PORTVERSION= 2.1.5 PORTVERSION= 2.1.5
PORTREVISION= 1
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://files.speedtest.ookla.com/releases/ MASTER_SITES= http://files.speedtest.ookla.com/releases/
DISTFILES= mini${EXTRACT_SUFX} DISTNAME= mini
MAINTAINER= gx@bsdplanet.ru MAINTAINER= gx@bsdplanet.ru
COMMENT= Mini bandwidth speed test on your own server COMMENT= Mini bandwidth speed test on your own server
USE_ZIP= YES NO_BUILD= yes
NO_BUILD= YES SUB_FILES= pkg-message
USE_ZIP= yes
WRKSRC= ${WRKDIR} WRKSRC= ${WRKDIR}
SPEEDTEST?= www/speedtest-mini
pre-install: pre-install:
@cd ${WRKSRC}/ && \
if [ ! -f ${WRKSRC}/index-php.html ]; then ${CP} \ ${MV} pkg-message .pkg-message && \
${WRKSRC}/index-php.html ${WRKSRC}/index.html; fi [ -f index-php.html ] && ${CP} index-php.html index.html \
do-install: do-install:
@${MKDIR} ${PREFIX}/${SPEEDTEST} ${MKDIR} -m 755 ${WWWDIR}/
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${SPEEDTEST} ${CP} -pR ${WRKSRC}/* ${WWWDIR}/
@${CHMOD} 755 ${PREFIX}/${SPEEDTEST} ${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/
${CP} -R ${WRKSRC}/ ${PREFIX}/${SPEEDTEST}
post-install: post-install:
@${CAT} ${PKGMESSAGE} @${CAT} ${WRKSRC}/.pkg-message
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,2 @@
MD5 (mini.zip) = 1d4055b1917723e992d85d676368eeb3 SHA256 (mini.zip) = 1f13b07f6df95bbaab68a1ec54149a5808d84efcad578fd845daa72a577010c3
SHA256 (mini.zip) = df2e7fd634bffcbcbd3be3bd40b4a26a21344b2991ee8edba1fe660293433dc9 SIZE (mini.zip) = 98998550
SIZE (mini.zip) = 99038890

View file

@ -1,16 +1,16 @@
Speedtest Mini has been installed into: Speedtest Mini has been installed into:
${PREFIX}/www/speedtest-mini %%PREFIX%%/%%WWWDIR%%
Please edit php.ini to suit your needs. Please edit php.ini to suit your needs.
To make speedtest available through your web site, I suggest To make speedtest available through your web site, I suggest
that you add something like the following to httpd.conf: that you add something like the following to httpd.conf:
Alias /speedtest/ "/usr/local/www/speedtest-mini/" Alias /speedtest/ "%%PREFIX%%/%%WWWDIR%%/"
<Directory "/usr/local/www/speedtest-mini/"> <Directory "%%PREFIX%%/%%WWWDIR%%/">
Options none Options none
DirectoryIndex index.html DirectoryIndex index.html
AllowOverride All AllowOverride All

View file

@ -1,30 +1,25 @@
www/speedtest-mini/.PLIST.mktmp %%WWWDIR%%/crossdomain.xml
www/speedtest-mini/.build_done.speedtest-mini._usr_local %%WWWDIR%%/index-asp.html
www/speedtest-mini/.configure_done.speedtest-mini._usr_local %%WWWDIR%%/index-aspx.html
www/speedtest-mini/.extract_done.speedtest-mini._usr_local %%WWWDIR%%/index-jsp.html
www/speedtest-mini/.patch_done.speedtest-mini._usr_local %%WWWDIR%%/index-php.html
www/speedtest-mini/crossdomain.xml %%WWWDIR%%/speedtest.swf
www/speedtest-mini/index-asp.html %%WWWDIR%%/speedtest/latency.txt
www/speedtest-mini/index-aspx.html %%WWWDIR%%/speedtest/random1000x1000.jpg
www/speedtest-mini/index-jsp.html %%WWWDIR%%/speedtest/random1500x1500.jpg
www/speedtest-mini/index-php.html %%WWWDIR%%/speedtest/random2000x2000.jpg
www/speedtest-mini/speedtest.swf %%WWWDIR%%/speedtest/random2500x2500.jpg
www/speedtest-mini/speedtest/latency.txt %%WWWDIR%%/speedtest/random3000x3000.jpg
www/speedtest-mini/speedtest/random1000x1000.jpg %%WWWDIR%%/speedtest/random3500x3500.jpg
www/speedtest-mini/speedtest/random1500x1500.jpg %%WWWDIR%%/speedtest/random350x350.jpg
www/speedtest-mini/speedtest/random2000x2000.jpg %%WWWDIR%%/speedtest/random4000x4000.jpg
www/speedtest-mini/speedtest/random2500x2500.jpg %%WWWDIR%%/speedtest/random500x500.jpg
www/speedtest-mini/speedtest/random3000x3000.jpg %%WWWDIR%%/speedtest/random750x750.jpg
www/speedtest-mini/speedtest/random3500x3500.jpg %%WWWDIR%%/speedtest/swfobject.js
www/speedtest-mini/speedtest/random350x350.jpg %%WWWDIR%%/speedtest/upload.asp
www/speedtest-mini/speedtest/random4000x4000.jpg %%WWWDIR%%/speedtest/upload.aspx
www/speedtest-mini/speedtest/random500x500.jpg %%WWWDIR%%/speedtest/upload.jsp
www/speedtest-mini/speedtest/random750x750.jpg %%WWWDIR%%/speedtest/upload.php
www/speedtest-mini/speedtest/swfobject.js %%WWWDIR%%/troubleshooting.txt
www/speedtest-mini/speedtest/upload.asp @dirrm %%WWWDIR%%/speedtest
www/speedtest-mini/speedtest/upload.aspx @dirrm %%WWWDIR%%
www/speedtest-mini/speedtest/upload.jsp
www/speedtest-mini/speedtest/upload.php
www/speedtest-mini/troubleshooting.txt
@dirrm www/speedtest-mini/speedtest
@dirrm www/speedtest-mini