Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144250873
D23157.id71377.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D23157.id71377.diff
View Options
Index: head/www/Makefile
===================================================================
--- head/www/Makefile
+++ head/www/Makefile
@@ -300,6 +300,7 @@
SUBDIR += libnghttp2
SUBDIR += libnghttp3
SUBDIR += libresonic-standalone
+ SUBDIR += librespeed
SUBDIR += librtcdcpp
SUBDIR += libwpe
SUBDIR += libwww
Index: head/www/librespeed/Makefile
===================================================================
--- head/www/librespeed/Makefile
+++ head/www/librespeed/Makefile
@@ -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>
Index: head/www/librespeed/distinfo
===================================================================
--- head/www/librespeed/distinfo
+++ head/www/librespeed/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1586365635
+SHA256 (librespeed-speedtest-5.2_GH0.tar.gz) = 58f5ad5f56799156733c5461498fb4ccea0014334b49308d202945c4c3ea9853
+SIZE (librespeed-speedtest-5.2_GH0.tar.gz) = 2121672
Index: head/www/librespeed/pkg-descr
===================================================================
--- head/www/librespeed/pkg-descr
+++ head/www/librespeed/pkg-descr
@@ -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
Index: head/www/librespeed/pkg-message
===================================================================
--- head/www/librespeed/pkg-message
+++ head/www/librespeed/pkg-message
@@ -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
+}
+]
Index: head/www/librespeed/pkg-plist
===================================================================
--- head/www/librespeed/pkg-plist
+++ head/www/librespeed/pkg-plist
@@ -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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 3:26 AM (14 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28463468
Default Alt Text
D23157.id71377.diff (4 KB)
Attached To
Mode
D23157: New Port www/librespeed Lightweight (self)hosted speedtest
Attached
Detach File
Event Timeline
Log In to Comment