wok-current annotate novnc/receipt @ rev 15712
connman: use pidof string if no .pid file
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Dec 23 22:28:27 2013 +0000 (2013-12-23) |
parents | d1b6fe8c8301 |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@11212 | 1 # SliTaz package receipt. |
pascal@11212 | 2 |
pascal@11212 | 3 PACKAGE="novnc" |
gokhlayeh@11575 | 4 VERSION="201111004" |
pascal@11212 | 5 CATEGORY="network" |
pascal@14850 | 6 SHORT_DESC="VNC client in HTML5/javascript." |
pascal@11212 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14850 | 8 LICENSE="MPL2" |
pascal@11212 | 9 WEB_SITE="http://github.com/kanaka/noVNC" |
gokhlayeh@11575 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
gokhlayeh@11575 | 11 WGET_URL="git|git://github.com/kanaka/noVNC.git" |
pascal@14854 | 12 TAGS="vnc remote-desktop html5" |
pascal@11212 | 13 |
pascal@11212 | 14 DEPENDS="python python-numpy" |
gokhlayeh@11575 | 15 BUILD_DEPENDS="python python-pil openssl git" |
pascal@11212 | 16 SUGGESTED="pyopenssl openssl" |
pascal@11212 | 17 |
pascal@11212 | 18 # Rules to configure and make the package. |
pascal@11212 | 19 compile_rules() |
pascal@11212 | 20 { |
pascal@11212 | 21 cd $src |
pascal@11212 | 22 mkdir -p $DESTDIR |
pascal@11212 | 23 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' utils/launch.sh |
pascal@11212 | 24 IMAGE=/usr/share/images/slitaz-background.jpg |
pascal@11212 | 25 [ -s $IMAGE ] && utils/img2js.py $IMAGE noVNC_logo > include/logo.js |
pascal@11212 | 26 cp -a *.html images/favicon.ico utils include $DESTDIR |
pascal@11212 | 27 } |
pascal@11212 | 28 |
pascal@11212 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11212 | 30 genpkg_rules() |
pascal@11212 | 31 { |
pascal@11212 | 32 mkdir -p $fs/usr/share/novnc |
pascal@14850 | 33 cp -a $install/* $fs/usr/share/novnc |
pascal@11212 | 34 } |
pascal@11212 | 35 |
pascal@14850 | 36 post_install() |
pascal@11212 | 37 { |
pascal@11212 | 38 which openssl > /dev/null && |
pascal@11212 | 39 openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \ |
pascal@11212 | 40 -out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT |
pascal@11212 | 41 $(. /etc/locale.conf ; echo ${LANG#*_}) |
pascal@11212 | 42 $(cat /etc/TZ) |
pascal@11212 | 43 |
pascal@11212 | 44 $(cat /etc/hostname) |
pascal@11212 | 45 |
pascal@11212 | 46 |
pascal@11212 | 47 |
pascal@11212 | 48 EOT |
pascal@11212 | 49 } |