wok view novnc/receipt @ rev 19704

Up lz4c, lz4-dev, lz4-lib (1.7.5)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 14 15:01:40 2017 +0100 (2017-02-14)
parents afac960ce4cf
children a78610b2eb47
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="http://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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 mkdir -p $DESTDIR
24 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
25 IMAGE=/usr/share/images/slitaz-background.jpg
26 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
27 cp -a *.html images/favicon.ico utils include $DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/novnc
34 cp -a $install/* $fs/usr/share/novnc
35 }
37 post_install()
38 {
39 which openssl > /dev/null &&
40 openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
41 -out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
42 $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
43 $(cat "$1/etc/TZ")
45 $(cat "$1/etc/hostname")
49 EOT
50 }