wok-next view novnc/receipt @ rev 21715

Up cookutils (1146)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 28 07:53:22 2020 +0000 (2020-07-28)
parents 2949147cd6ec
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="novnc"
4 VERSION="1.0.0"
5 CATEGORY="network"
6 SHORT_DESC="VNC client using HTML5 (WebSockets, Canvas) with encryption (wss://) support"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="https://kanaka.github.io/noVNC/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/novnc/noVNC/archive/v$VERSION.tar.gz"
14 compile_rules() {
15 mkdir -p $install/usr/share/novnc/
16 # sed -i 's#bash#sh#; s#ps -p \([^ ]*\)#ps | grep "^ *\1 "#' utils/launch.sh
18 cp -r $src/* $install/usr/share/novnc/
20 install -Dm755 utils/launch.sh $install/usr/bin/novnc_server
22 find $install -type f \( -name 'README.md' -o -name '.*' -o -name Makefile \) -delete
23 rm -r $install/usr/share/novnc/docs/ $install/usr/share/novnc/utils/
25 cook_pick_docs README.md docs/
26 }
28 genpkg_rules() {
29 copy @std
30 DEPENDS="python-websockify net-tools"
31 SUGGESTED="openssl"
32 TAGS="vnc remote-desktop html5"
33 }
35 post_install() {
36 which openssl >/dev/null &&
37 openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
38 -out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
39 $(. "$1/etc/locale.conf"; echo ${LANG#*_})
40 $(cat "$1/etc/TZ")
42 $(cat "$1/etc/hostname")
46 EOT
47 }