# SliTaz package receipt. PACKAGE="novnc" VERSION="201111004" CATEGORY="network" SHORT_DESC="VNC client in javascript." MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://github.com/kanaka/noVNC" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="git|git://github.com/kanaka/noVNC.git" DEPENDS="python python-numpy" BUILD_DEPENDS="python python-pil openssl git" SUGGESTED="pyopenssl openssl" # Rules to configure and make the package. compile_rules() { cd $src mkdir -p $DESTDIR sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh IMAGE=/usr/share/images/slitaz-background.jpg [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js cp -a *.html images/favicon.ico utils include $DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/novnc cp -a $_pkg/* $fs/usr/share/novnc } port_install() { which openssl > /dev/null && openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \ -out $1/usr/share/novnc/self.pem -days 3650 -nodes <