Date: Mon, 4 May 2020 19:04:20 +0000 (UTC) From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533943 - in head/www: . librespeed Message-ID: <202005041904.044J4KKg003701@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arrowd Date: Mon May 4 19:04:20 2020 New Revision: 533943 URL: https://svnweb.freebsd.org/changeset/ports/533943 Log: www/librespeed: a very lightweight speed test. Submitted by: Dries Michiels <driesm.michiels@gmail.com> Differential Revision: https://reviews.freebsd.org/D23157 Added: head/www/librespeed/ head/www/librespeed/Makefile (contents, props changed) head/www/librespeed/distinfo (contents, props changed) head/www/librespeed/pkg-descr (contents, props changed) head/www/librespeed/pkg-message (contents, props changed) head/www/librespeed/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Mon May 4 18:57:34 2020 (r533942) +++ head/www/Makefile Mon May 4 19:04:20 2020 (r533943) @@ -300,6 +300,7 @@ SUBDIR += libnghttp2 SUBDIR += libnghttp3 SUBDIR += libresonic-standalone + SUBDIR += librespeed SUBDIR += librtcdcpp SUBDIR += libwpe SUBDIR += libwww Added: head/www/librespeed/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/librespeed/Makefile Mon May 4 19:04:20 2020 (r533943) @@ -0,0 +1,53 @@ +# $FreeBSD$ + +PORTNAME= librespeed +DISTVERSION= 5.2 +CATEGORIES= www net +PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX} + +MAINTAINER= driesm.michiels@gmail.com +COMMENT= Lightweight selfhosted speedtest + +LICENSE= LGPL3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= php:flavors,web + +USE_GITHUB= YES +GH_PROJECT= speedtest + +NO_BUILD= YES +NO_ARCH= YES + +PLIST_SUB= LIBRESPEED_USERNAME=${WWWOWN} + +OPTIONS_DEFINE= DOCS EXAMPLES + +OPTIONS_RADIO= BACKEND +OPTIONS_RADIO_BACKEND= MYSQL PGSQL SQLITE + +MYSQL_USE= PHP=mysqli +PGSQL_USE= PHP=pdo_pgsql +SQLITE_USE= PHP=pdo_sqlite + +do-install: + @${MKDIR} ${STAGEDIR}${WWWDIR} + ${CP} -a ${WRKSRC}/*.js ${WRKSRC}/favicon.ico ${STAGEDIR}${WWWDIR} + @${MKDIR} ${STAGEDIR}${WWWDIR}/backend + cd ${WRKSRC}/backend && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/backend + @${MKDIR} ${STAGEDIR}${WWWDIR}/results + cd ${WRKSRC}/results && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/results + ${INSTALL_DATA} ${WRKSRC}/results/telemetry_settings.php \ + ${STAGEDIR}${WWWDIR}/results/telemetry_settings.php.sample + ${INSTALL_DATA} ${WRKSRC}/backend/getIP_ipInfo_apikey.php \ + ${STAGEDIR}${WWWDIR}/backend/getIP_ipInfo_apikey.php.sample + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/doc.md ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${CP} -a ${WRKSRC}/*.html ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> Added: head/www/librespeed/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/librespeed/distinfo Mon May 4 19:04:20 2020 (r533943) @@ -0,0 +1,3 @@ +TIMESTAMP = 1586365635 +SHA256 (librespeed-speedtest-5.2_GH0.tar.gz) = 58f5ad5f56799156733c5461498fb4ccea0014334b49308d202945c4c3ea9853 +SIZE (librespeed-speedtest-5.2_GH0.tar.gz) = 2121672 Added: head/www/librespeed/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/librespeed/pkg-descr Mon May 4 19:04:20 2020 (r533943) @@ -0,0 +1,5 @@ +LibreSpeed is a very lightweight Speedtest. +LibreSpeed is implemented in Javascript, using XMLHttpRequest and Web Workers. +It can be self hosted with the option to store results in a backend database. + +WWW: https://github.com/librespeed/speedtest Added: head/www/librespeed/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/librespeed/pkg-message Mon May 4 19:04:20 2020 (r533943) @@ -0,0 +1,16 @@ +[ +{ type: install + message: <<EOM +You can mostly follow the guide on: https://fdossena.com/speedtest/qs_v5_ubuntu1904.webm +For more advanced docs: https://github.com/librespeed/speedtest/blob/master/doc.md + +Copy your prefered example from ${PREFIX}/share/examples/librespeed to ${PREFIX}/www/librespeed/index.html. +To use the backend feature, be sure to copy a -full example and rebuild the port with backend support. + + cd ${PREFIX}/share/examples/librespeed + cp -a example-singleServer-full.html ${PREFIX}/www/librespeed/index.html + +The next step is to install and setup a web server with PHP to serve the content. +EOM +} +] Added: head/www/librespeed/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/librespeed/pkg-plist Mon May 4 19:04:20 2020 (r533943) @@ -0,0 +1,29 @@ +%%PORTDOCS%%%%DOCSDIR%%/doc.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-multipleServers-full.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-multipleServers-pretty.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-basic.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-chart.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-customSettings.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-full.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-gauges.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-pretty.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-progressBar.html +@owner %%LIBRESPEED_USERNAME%% +@dir %%WWWDIR%%/backend +%%WWWDIR%%/backend/empty.php +%%WWWDIR%%/backend/garbage.php +%%WWWDIR%%/backend/getIP.php +@sample %%WWWDIR%%/backend/getIP_ipInfo_apikey.php.sample +@dir %%WWWDIR%%/results +%%WWWDIR%%/results/OpenSans-Light.ttf +%%WWWDIR%%/results/OpenSans-Semibold.ttf +%%WWWDIR%%/results/idObfuscation.php +%%WWWDIR%%/results/index.php +%%WWWDIR%%/results/stats.php +%%WWWDIR%%/results/telemetry.php +%%WWWDIR%%/results/telemetry_mysql.sql +%%WWWDIR%%/results/telemetry_postgresql.sql +@sample %%WWWDIR%%/results/telemetry_settings.php.sample +%%WWWDIR%%/favicon.ico +%%WWWDIR%%/speedtest.js +%%WWWDIR%%/speedtest_worker.js
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005041904.044J4KKg003701>