wok view novnc/receipt @ rev 13487
up git (1.7.12.3)
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Thu Oct 11 23:34:50 2012 +0000 (2012-10-11) |
parents | c380532e1854 |
children | d1b6fe8c8301 |
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"
11 TAGS="vnc remote-desktop"
13 DEPENDS="python python-numpy"
14 BUILD_DEPENDS="python python-pil openssl git"
15 SUGGESTED="pyopenssl openssl"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 mkdir -p $DESTDIR
22 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
23 IMAGE=/usr/share/images/slitaz-background.jpg
24 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
25 cp -a *.html images/favicon.ico utils include $DESTDIR
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/novnc
32 cp -a $_pkg/* $fs/usr/share/novnc
33 }
35 port_install()
36 {
37 which openssl > /dev/null &&
38 openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \
39 -out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT
40 $(. /etc/locale.conf ; echo ${LANG#*_})
41 $(cat /etc/TZ)
43 $(cat /etc/hostname)
47 EOT
48 }