1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

www/librespeed: Improve pkg-message

PR:		247203
Submitted by:	Dries Michiels <driesm.michiels@gmail.com> (maintainer)
This commit is contained in:
Koichiro Iwao 2020-06-16 01:51:41 +00:00
parent 2cc4b6dd75
commit a6980ca763
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=539310
3 changed files with 24 additions and 16 deletions

View File

@ -20,6 +20,7 @@ NO_BUILD= YES
NO_ARCH= YES
PLIST_SUB= LIBRESPEED_USERNAME=${WWWOWN}
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS EXAMPLES

View File

@ -0,0 +1,23 @@
[
{ 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 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.
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
}
{ type: remove
message: <<EOM
If you are uninstalling librespeed permanently,
and you do *NOT* want to retain the configured landing page and config files,
you should manually remove %%WWWDIR%%.
EOM
}
]

View File

@ -1,16 +0,0 @@
[
{ 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
}
]