wok-4.x view novnc/receipt @ rev 12072

fix tuxmath bdeps
author Antoine Bodin <gokhlayeh@slitaz.org>
date Fri Mar 09 05:03:33 2012 +0100 (2012-03-09)
parents 7ad949dccd95
children
line source
1 # SliTaz package receipt.
3 PACKAGE="novnc"
4 VERSION="201111004"
5 CATEGORY="network"
6 SHORT_DESC="VNC client in javascript."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://github.com/kanaka/noVNC"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WGET_URL="git|git://github.com/kanaka/noVNC.git"
12 DEPENDS="python python-numpy"
13 BUILD_DEPENDS="python python-pil openssl git"
14 SUGGESTED="pyopenssl openssl"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 mkdir -p $DESTDIR
21 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
22 IMAGE=/usr/share/images/slitaz-background.jpg
23 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
24 cp -a *.html images/favicon.ico utils include $DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/share/novnc
31 cp -a $_pkg/* $fs/usr/share/novnc
32 }
34 port_install()
35 {
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 $(. /etc/locale.conf ; echo ${LANG#*_})
40 $(cat /etc/TZ)
42 $(cat /etc/hostname)
46 EOT
47 }