View | Details | Raw Unified | Return to bug 242968 | Differences between
and this patch

Collapse All | Expand All

(-)www/Makefile (+1 lines)
Lines 296-301 Link Here
296
    SUBDIR += libmicrohttpd
296
    SUBDIR += libmicrohttpd
297
    SUBDIR += libnghttp2
297
    SUBDIR += libnghttp2
298
    SUBDIR += libresonic-standalone
298
    SUBDIR += libresonic-standalone
299
    SUBDIR += librespeed
299
    SUBDIR += libwpe
300
    SUBDIR += libwpe
300
    SUBDIR += libwww
301
    SUBDIR += libwww
301
    SUBDIR += lightsquid
302
    SUBDIR += lightsquid
(-)www/librespeed/Makefile (+53 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	librespeed
4
DISTVERSION=	5.1
5
CATEGORIES=	www net
6
PKGNAMESUFFIX=  ${PHP_PKGNAMESUFFIX}
7
8
MAINTAINER=	driesm.michiels@gmail.com
9
COMMENT=	Lightweight (self)hosted speedtest
10
11
LICENSE=	LGPL3
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
14
USES=	php:flavors,web
15
16
USE_GITHUB=	YES
17
GH_PROJECT=	speedtest
18
19
NO_BUILD=	YES
20
NO_ARCH=	YES
21
22
PLIST_SUB=	LIBRESPEED_USERNAME=${WWWOWN}
23
24
OPTIONS_DEFINE=	DOCS EXAMPLES
25
26
OPTIONS_RADIO=	BACKEND
27
OPTIONS_RADIO_BACKEND=	MYSQL PGSQL SQLITE
28
29
MYSQL_USE=	PHP=mysqli
30
PGSQL_USE=	PHP=pdo_pgsql
31
SQLITE_USE=	PHP=pdo_sqlite
32
33
do-install:
34
	@${MKDIR} ${STAGEDIR}${WWWDIR}
35
	${CP} -a ${WRKSRC}/*.js ${WRKSRC}/favicon.ico ${STAGEDIR}${WWWDIR}
36
	@${MKDIR} ${STAGEDIR}${WWWDIR}/backend
37
	cd ${WRKSRC}/backend && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/backend
38
	@${MKDIR} ${STAGEDIR}${WWWDIR}/results
39
	cd ${WRKSRC}/results && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/results
40
	${INSTALL_DATA} ${WRKSRC}/results/telemetry_settings.php \
41
		${STAGEDIR}${WWWDIR}/results/telemetry_settings.php.sample
42
	${INSTALL_DATA} ${WRKSRC}/backend/getIP_ipInfo_apikey.php \
43
		${STAGEDIR}${WWWDIR}/backend/getIP_ipInfo_apikey.php.sample
44
45
post-install-DOCS-on:
46
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
47
	${INSTALL_MAN} ${WRKSRC}/doc.md ${STAGEDIR}${DOCSDIR}
48
49
post-install-EXAMPLES-on:
50
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
51
	${CP} -a ${WRKSRC}/*.html ${STAGEDIR}${EXAMPLESDIR}
52
53
.include <bsd.port.mk>
(-)www/librespeed/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1577644470
2
SHA256 (librespeed-speedtest-5.1_GH0.tar.gz) = 8fd410e190acce7a8b169e3ae3610c38d8af50beea11215a060787a06b5fb929
3
SIZE (librespeed-speedtest-5.1_GH0.tar.gz) = 2120414
(-)www/librespeed/pkg-descr (+5 lines)
Line 0 Link Here
1
LibreSpeed is a very lightweight Speedtest.
2
LibreSpeed is implemented in Javascript, using XMLHttpRequest and Web Workers.
3
It can be self hosted with the option to store results in a backend database.
4
5
WWW: https://github.com/librespeed/speedtest
(-)www/librespeed/pkg-message (+16 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
You can mostly follow the guide on: https://fdossena.com/speedtest/qs_v5_ubuntu1904.webm
5
For more advanced docs: https://github.com/librespeed/speedtest/blob/master/doc.md
6
7
Copy your prefered example from ${PREFIX}/share/examples/librespeed to ${PREFIX}/www/librespeed/index.html.
8
To use the backend feature, be sure to copy a -full example and rebuild the port with backend support.
9
10
	cd ${PREFIX}/share/examples/librespeed
11
	cp -a example-singleServer-full.html ${PREFIX}/www/librespeed/index.html
12
13
The next step is to install and setup a web server with PHP to serve the content.
14
EOM
15
}
16
]
(-)www/librespeed/pkg-plist (+29 lines)
Line 0 Link Here
1
%%PORTDOCS%%%%DOCSDIR%%/doc.md
2
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-multipleServers-full.html
3
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-multipleServers-pretty.html
4
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-basic.html
5
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-chart.html
6
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-customSettings.html
7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-full.html
8
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-gauges.html
9
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-pretty.html
10
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example-singleServer-progressBar.html
11
@owner %%LIBRESPEED_USERNAME%%
12
@dir %%WWWDIR%%/backend
13
%%WWWDIR%%/backend/empty.php
14
%%WWWDIR%%/backend/garbage.php
15
%%WWWDIR%%/backend/getIP.php
16
@sample %%WWWDIR%%/backend/getIP_ipInfo_apikey.php.sample
17
@dir %%WWWDIR%%/results
18
%%WWWDIR%%/results/OpenSans-Light.ttf
19
%%WWWDIR%%/results/OpenSans-Semibold.ttf
20
%%WWWDIR%%/results/idObfuscation.php
21
%%WWWDIR%%/results/index.php
22
%%WWWDIR%%/results/stats.php
23
%%WWWDIR%%/results/telemetry.php
24
%%WWWDIR%%/results/telemetry_mysql.sql
25
%%WWWDIR%%/results/telemetry_postgresql.sql
26
@sample %%WWWDIR%%/results/telemetry_settings.php.sample
27
%%WWWDIR%%/favicon.ico
28
%%WWWDIR%%/speedtest.js
29
%%WWWDIR%%/speedtest_worker.js

Return to bug 242968