diff --git a/www/librespeed/Makefile b/www/librespeed/Makefile index fbee48b3acc9..89d8975ac0d5 100644 --- a/www/librespeed/Makefile +++ b/www/librespeed/Makefile @@ -1,52 +1,55 @@ PORTNAME= librespeed DISTVERSION= 5.2.4 +PORTREVISION= 1 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_PHP= ctype json openssl pdo session + USE_GITHUB= YES GH_PROJECT= speedtest NO_ARCH= YES NO_BUILD= YES SUB_FILES= pkg-message PLIST_SUB= LIBRESPEED_USERNAME=${WWWOWN} 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 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 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 @@ -1,23 +1,24 @@ [ { type: install message: <