wok-6.x view novnc/receipt @ rev 22625

updated cyrus-imapd and cyrus-impad-dev (2.4.17 -> 3.0.13)
author Hans-G?nter Theisgen
date Sun Jan 12 16:58:49 2020 +0100 (2020-01-12)
parents 9e01bc6321ea
children 8eaf1d9eb640
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="https://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 $(. "$1/etc/locale.conf" ; echo ${LANG#*_})
43 $(cat "$1/etc/TZ")
45 $(cat "$1/etc/hostname")
49 EOT
50 }