wok-next view novnc/receipt @ rev 11298
Fix: pidgin menu icon
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Nov 12 18:20:29 2011 +0000 (2011-11-12) |
parents | |
children | c380532e1854 |
line source
1 # SliTaz package receipt.
3 PACKAGE="novnc"
4 VERSION="20110901"
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.tgz"
11 DEPENDS="python python-numpy"
12 BUILD_DEPENDS="wget python python-pil openssl"
13 SUGGESTED="pyopenssl openssl"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -s $SOURCES_REPOSITORY/$_TARBALL ] ||
19 wget -O $SOURCES_REPOSITORY/$_TARBALL \
20 $WEB_SITE/tarball/7b10dc8a485079fdc34847140fb0c993265e3a1e
21 mkdir -p $src
22 cd $src
23 tar xzf $SOURCES_REPOSITORY/$_TARBALL
24 mkdir -p $DESTDIR
25 cd kanaka*
26 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh
27 IMAGE=/usr/share/images/slitaz-background.jpg
28 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js
29 cp -a *.html images/favicon.ico utils include $DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/novnc
36 cp -a $_pkg/* $fs/usr/share/novnc
37 }
39 port_install()
40 {
41 which openssl > /dev/null &&
42 openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \
43 -out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT
44 $(. /etc/locale.conf ; echo ${LANG#*_})
45 $(cat /etc/TZ)
47 $(cat /etc/hostname)
51 EOT
52 }