wok-6.x view novnc/receipt @ rev 24960
updated ncurses packages (6.2 -> 6.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 17:46:30 2022 +0100 (2022-04-23) |
parents | ac8ca9758df1 |
children | 3f8793537981 |
line source
1 # SliTaz package receipt.
3 PACKAGE="novnc"
4 VERSION="201111004"
5 CATEGORY="network"
6 SHORT_DESC="VNC client in HTML5/javascript."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MPL2"
9 WEB_SITE="https://github.com/kanaka/noVNC"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="git|git://github.com/kanaka/noVNC.git"
12 TAGS="vnc remote-desktop html5"
13 #HOST_ARCH="any"
15 DEPENDS="python python-numpy"
16 BUILD_DEPENDS="python python-pil openssl git"
17 SUGGESTED="pyopenssl openssl"
19 current_version()
20 {
21 wget -O - https://github.com/novnc/noVNC/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $DESTDIR
29 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
30 IMAGE=/usr/share/images/slitaz-background.jpg
31 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
32 cp -a *.html images/favicon.ico utils include $DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/novnc
39 cp -a $install/* $fs/usr/share/novnc
40 }
42 post_install()
43 {
44 which openssl > /dev/null &&
45 openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
46 -out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
47 $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
48 $(cat "$1/etc/TZ")
50 $(cat "$1/etc/hostname")
54 EOT
55 }