wok-6.x view novnc/receipt @ rev 17699
Up marlin: edit last patch
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Feb 26 22:14:27 2015 -0300 (2015-02-26) |
parents | d51b2411e55e |
children | 9e01bc6321ea |
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 $(. /etc/locale.conf ; echo ${LANG#*_})
43 $(cat /etc/TZ)
45 $(cat /etc/hostname)
49 EOT
50 }