wok-current annotate novnc/receipt @ rev 11212
Add from wok-undigest: sdcc fbvnc novnc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Nov 03 16:33:16 2011 +0100 (2011-11-03) |
parents | |
children | c380532e1854 |
rev | line source |
---|---|
pascal@11212 | 1 # SliTaz package receipt. |
pascal@11212 | 2 |
pascal@11212 | 3 PACKAGE="novnc" |
pascal@11212 | 4 VERSION="20110901" |
pascal@11212 | 5 CATEGORY="network" |
pascal@11212 | 6 SHORT_DESC="VNC client in javascript." |
pascal@11212 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@11212 | 8 WEB_SITE="http://github.com/kanaka/noVNC" |
pascal@11212 | 9 _TARBALL="$PACKAGE-$VERSION.tgz" |
pascal@11212 | 10 |
pascal@11212 | 11 DEPENDS="python python-numpy" |
pascal@11212 | 12 BUILD_DEPENDS="wget python python-pil openssl" |
pascal@11212 | 13 SUGGESTED="pyopenssl openssl" |
pascal@11212 | 14 |
pascal@11212 | 15 # Rules to configure and make the package. |
pascal@11212 | 16 compile_rules() |
pascal@11212 | 17 { |
pascal@11212 | 18 [ -s $SOURCES_REPOSITORY/$_TARBALL ] || |
pascal@11212 | 19 wget -O $SOURCES_REPOSITORY/$_TARBALL \ |
pascal@11212 | 20 $WEB_SITE/tarball/7b10dc8a485079fdc34847140fb0c993265e3a1e |
pascal@11212 | 21 mkdir -p $src |
pascal@11212 | 22 cd $src |
pascal@11212 | 23 tar xzf $SOURCES_REPOSITORY/$_TARBALL |
pascal@11212 | 24 mkdir -p $DESTDIR |
pascal@11212 | 25 cd kanaka* |
pascal@11212 | 26 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh |
pascal@11212 | 27 IMAGE=/usr/share/images/slitaz-background.jpg |
pascal@11212 | 28 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js |
pascal@11212 | 29 cp -a *.html images/favicon.ico utils include $DESTDIR |
pascal@11212 | 30 } |
pascal@11212 | 31 |
pascal@11212 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11212 | 33 genpkg_rules() |
pascal@11212 | 34 { |
pascal@11212 | 35 mkdir -p $fs/usr/share/novnc |
pascal@11212 | 36 cp -a $_pkg/* $fs/usr/share/novnc |
pascal@11212 | 37 } |
pascal@11212 | 38 |
pascal@11212 | 39 port_install() |
pascal@11212 | 40 { |
pascal@11212 | 41 which openssl > /dev/null && |
pascal@11212 | 42 openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \ |
pascal@11212 | 43 -out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT |
pascal@11212 | 44 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@11212 | 45 $(cat /etc/TZ) |
pascal@11212 | 46 |
pascal@11212 | 47 $(cat /etc/hostname) |
pascal@11212 | 48 |
pascal@11212 | 49 |
pascal@11212 | 50 |
pascal@11212 | 51 EOT |
pascal@11212 | 52 } |