aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2021-06-29 21:47:59 +0000
committerDan Langille <dvl@FreeBSD.org>2021-06-30 00:46:35 +0000
commite34785f48f2eac31014d722e58fa7e84e031245d (patch)
tree66d7a5ff103110e7d51d8cfff10c3ec29758a1a5
parent995bdac5ba682c4e7381abcb516a7113369e3cdf (diff)
downloadports-e34785f48f2eac31014d722e58fa7e84e031245d.tar.gz
ports-e34785f48f2eac31014d722e58fa7e84e031245d.zip
www/librespeed: add missing dependencies
Add some PHP dependencies required by this port. Tweak the pkg-message output to hint that telemetry requires configuration settings at build time. PR: 256891 Reported by: dvl (cherry picked from commit 0bf5aa7c48694c5d7bfe3855685791d354370813)
-rw-r--r--www/librespeed/Makefile5
-rw-r--r--www/librespeed/files/pkg-message.in3
2 files changed, 6 insertions, 2 deletions
diff --git a/www/librespeed/Makefile b/www/librespeed/Makefile
index b5e540c39736..ada87ee1ca5f 100644
--- a/www/librespeed/Makefile
+++ b/www/librespeed/Makefile
@@ -1,6 +1,7 @@
PORTNAME= librespeed
DISTVERSION= 5.2.4
+PORTREVISION= 1
CATEGORIES= www net
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
@@ -12,6 +13,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= php:flavors,web
+USE_PHP= ctype json openssl pdo session
+
USE_GITHUB= YES
GH_PROJECT= speedtest
@@ -26,7 +29,7 @@ OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_RADIO= BACKEND
OPTIONS_RADIO_BACKEND= MYSQL PGSQL SQLITE
-MYSQL_USE= PHP=mysqli
+MYSQL_USE= PHP=pdo_mysql
PGSQL_USE= PHP=pdo_pgsql
SQLITE_USE= PHP=pdo_sqlite
diff --git a/www/librespeed/files/pkg-message.in b/www/librespeed/files/pkg-message.in
index c7f741ff23af..2f5c6db4e0ee 100644
--- a/www/librespeed/files/pkg-message.in
+++ b/www/librespeed/files/pkg-message.in
@@ -5,7 +5,8 @@ You can mostly follow the guide on: https://fdossena.com/speedtest/qs_v5_ubuntu1
For more advanced docs: https://github.com/librespeed/speedtest/blob/master/doc.md
Copy your preferred 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.
+To use the backend (i.e. telemetry) 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