wok-6.x annotate novnc/receipt @ rev 25565
Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue May 09 17:24:00 2023 +0000 (20 months ago) |
parents | 51ef9f5adf6d |
children |
rev | line source |
---|---|
pascal@11212 | 1 # SliTaz package receipt. |
pascal@11212 | 2 |
pascal@11212 | 3 PACKAGE="novnc" |
Hans-G?nter@25133 | 4 VERSION="0.5.1" |
pascal@11212 | 5 CATEGORY="network" |
Hans-G?nter@25133 | 6 TAGS="vnc remote-desktop html5" |
pascal@14850 | 7 SHORT_DESC="VNC client in HTML5/javascript." |
pascal@11212 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14850 | 9 LICENSE="MPL2" |
Hans-G?nter@25133 | 10 WEB_SITE="https://github.com/novnc/noVNC" |
Hans-G?nter@25133 | 11 |
Hans-G?nter@25133 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25133 | 13 WGET_URL="https://github.com/$PACKAGE/noVNC/archive/v$VERSION.tar.gz" |
Hans-G?nter@25133 | 14 |
Hans-G?nter@25133 | 15 SUGGESTED="pyopenssl openssl" |
Hans-G?nter@25133 | 16 DEPENDS="python python-numpy" |
Hans-G?nter@25133 | 17 BUILD_DEPENDS="python python-pil openssl" |
Hans-G?nter@25133 | 18 |
pankso@16349 | 19 #HOST_ARCH="any" |
pascal@11212 | 20 |
pascal@24139 | 21 current_version() |
pascal@24139 | 22 { |
pascal@24302 | 23 wget -O - https://github.com/novnc/noVNC/releases 2>/dev/null | \ |
pascal@24139 | 24 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24139 | 25 } |
pascal@24139 | 26 |
pascal@11212 | 27 # Rules to configure and make the package. |
pascal@11212 | 28 compile_rules() |
pascal@11212 | 29 { |
Hans-G?nter@25133 | 30 sed -i 's/bash/sh/;s/ps -p \([^ ]*\)/ps | grep "^ *\1 "/' \ |
Hans-G?nter@25133 | 31 utils/launch.sh |
Hans-G?nter@25133 | 32 |
Hans-G?nter@25133 | 33 IMAGE=/usr/share/images/slitaz-background.jpg |
Hans-G?nter@25133 | 34 [ -s $IMAGE ] && |
Hans-G?nter@25133 | 35 utils/img2js.py $IMAGE noVNC_logo > include/logo.js |
Hans-G?nter@25133 | 36 |
pascal@11212 | 37 mkdir -p $DESTDIR |
Hans-G?nter@25133 | 38 cp -a *.html $DESTDIR |
Hans-G?nter@25133 | 39 cp -a images $DESTDIR |
Hans-G?nter@25133 | 40 cp -a utils $DESTDIR |
Hans-G?nter@25133 | 41 cp -a include $DESTDIR |
pascal@11212 | 42 } |
pascal@11212 | 43 |
pascal@11212 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11212 | 45 genpkg_rules() |
pascal@11212 | 46 { |
pascal@11212 | 47 mkdir -p $fs/usr/share/novnc |
Hans-G?nter@25133 | 48 cp -a $install/* $fs/usr/share/novnc |
pascal@11212 | 49 } |
pascal@11212 | 50 |
pascal@14850 | 51 post_install() |
pascal@11212 | 52 { |
pascal@11212 | 53 which openssl > /dev/null && |
Hans-G?nter@25133 | 54 openssl req \ |
Hans-G?nter@25133 | 55 -new \ |
Hans-G?nter@25133 | 56 -x509 \ |
Hans-G?nter@25133 | 57 -keyout "$1/usr/share/novnc/self.pem" \ |
Hans-G?nter@25133 | 58 -out "$1/usr/share/novnc/self.pem" \ |
Hans-G?nter@25133 | 59 -days 3650 \ |
Hans-G?nter@25133 | 60 -nodes <<EOT |
pascal@18730 | 61 $(. "$1/etc/locale.conf" ; echo ${LANG#*_}) |
pascal@18730 | 62 $(cat "$1/etc/TZ") |
pascal@11212 | 63 |
pascal@18730 | 64 $(cat "$1/etc/hostname") |
pascal@11212 | 65 |
pascal@11212 | 66 |
pascal@11212 | 67 |
pascal@11212 | 68 EOT |
pascal@11212 | 69 } |