wok-next annotate novnc/receipt @ rev 21195

updated scrollz (2.2.3 -> 2.3)
author Hans-G?nter Theisgen
date Thu Oct 03 15:54:27 2019 +0100 (2019-10-03)
parents 2949147cd6ec
children
rev   line source
al@20513 1 # SliTaz package receipt v2.
pascal@11212 2
pascal@11212 3 PACKAGE="novnc"
al@20978 4 VERSION="1.0.0"
pascal@11212 5 CATEGORY="network"
al@20978 6 SHORT_DESC="VNC client using HTML5 (WebSockets, Canvas) with encryption (wss://) support"
pascal@11212 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14850 8 LICENSE="MPL2"
al@20978 9 WEB_SITE="https://kanaka.github.io/noVNC/"
al@20513 10
al@20978 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20978 12 WGET_URL="https://github.com/novnc/noVNC/archive/v$VERSION.tar.gz"
pascal@11212 13
al@20513 14 compile_rules() {
al@20978 15 mkdir -p $install/usr/share/novnc/
al@20978 16 # sed -i 's#bash#sh#; s#ps -p \([^ ]*\)#ps | grep "^ *\1 "#' utils/launch.sh
al@20513 17
al@20978 18 cp -r $src/* $install/usr/share/novnc/
al@20978 19
al@20978 20 install -Dm755 utils/launch.sh $install/usr/bin/novnc_server
al@20978 21
al@20978 22 find $install -type f \( -name 'README.md' -o -name '.*' -o -name Makefile \) -delete
al@20978 23 rm -r $install/usr/share/novnc/docs/ $install/usr/share/novnc/utils/
al@20978 24
al@20978 25 cook_pick_docs README.md docs/
pascal@11212 26 }
pascal@11212 27
al@20513 28 genpkg_rules() {
al@20513 29 copy @std
al@21020 30 DEPENDS="python-websockify net-tools"
al@21020 31 SUGGESTED="openssl"
al@21020 32 TAGS="vnc remote-desktop html5"
pascal@11212 33 }
pascal@11212 34
al@20513 35 post_install() {
al@20513 36 which openssl >/dev/null &&
pascal@18730 37 openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
pascal@18730 38 -out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
al@21020 39 $(. "$1/etc/locale.conf"; echo ${LANG#*_})
pascal@18730 40 $(cat "$1/etc/TZ")
pascal@11212 41
pascal@18730 42 $(cat "$1/etc/hostname")
pascal@11212 43
pascal@11212 44
pascal@11212 45
pascal@11212 46 EOT
pascal@11212 47 }