wok view novnc/receipt @ rev 15120

splashutils: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 22:02:02 2013 +0000 (2013-08-14)
parents d1b6fe8c8301
children d51b2411e55e
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"
14 DEPENDS="python python-numpy"
15 BUILD_DEPENDS="python python-pil openssl git"
16 SUGGESTED="pyopenssl openssl"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 mkdir -p $DESTDIR
23 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
24 IMAGE=/usr/share/images/slitaz-background.jpg
25 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
26 cp -a *.html images/favicon.ico utils include $DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share/novnc
33 cp -a $install/* $fs/usr/share/novnc
34 }
36 post_install()
37 {
38 which openssl > /dev/null &&
39 openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \
40 -out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT
41 $(. /etc/locale.conf ; echo ${LANG#*_})
42 $(cat /etc/TZ)
44 $(cat /etc/hostname)
48 EOT
49 }