Sync from SUSE:SLFO:Main novnc revision 558e01e41e8362ef128f14f80a0aeb13

This commit is contained in:
Adrian Schröter 2024-05-03 17:05:10 +02:00
commit 86f8bb2b92
6 changed files with 390 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
noVNC-1.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

84
novnc-0.3-manpage.patch Normal file
View File

@ -0,0 +1,84 @@
From 42d5fa61a47fb156bf4e6bea7051c9198f8fb938 Mon Sep 17 00:00:00 2001
From: Adam Young <ayoung@redhat.com>
Date: Fri, 8 Jun 2012 10:34:38 -0400
Subject: [PATCH] added Man pages.
---
docs/nova-novncproxy.1 | 35 +++++++++++++++++++++++++++++++++++
docs/novnc_server.1 | 22 ++++++++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 docs/nova-novncproxy.1
create mode 100644 docs/novnc_server.1
diff --git a/docs/nova-novncproxy.1 b/docs/nova-novncproxy.1
new file mode 100644
index 0000000..198b634
--- /dev/null
+++ b/docs/nova-novncproxy.1
@@ -0,0 +1,35 @@
+.TH nova-novncproxy 1 "June 8, 2012" "version 0.3" "USER COMMANDS"
+
+.SH NAME
+nova-novncproxy | noVNC proxy for Openstack Nova
+.SH SYNOPSIS
+.B nova-novncproxy [options]
+
+.SH OPTIONS
+.TP
+record : Record sessions to FILE.[session_number]
+.TP
+daemon : Become a daemon (background process)
+.TP
+ssl_only : Disallow non-encrypted connections'),
+.TP
+source_is_ipv6 : Source is ipv6
+.TP
+cert : SSL certificate file
+.TP
+key : SSL key file (if separate from cert)
+.TP
+web : Run webserver on same port. Serve files from DIR.
+.TP
+novncproxy_host : Host on which to listen for incoming requests.
+ defaults to ='0.0.0.0'
+.TP
+novncproxy_port: Port on which to listen for incoming requests
+ defaults to 6080
+
+
+.SH AUTHOR
+Joel Martin (github@martintribe.org)
+
+.SH SEE ALSO
+websockify(1)
diff --git a/docs/novnc_server.1 b/docs/novnc_server.1
new file mode 100644
index 0000000..5bcbd1b
--- /dev/null
+++ b/docs/novnc_server.1
@@ -0,0 +1,22 @@
+.TH novnc_server 1 "June 8, 2012" "version 0.3" "USER COMMANDS"
+
+.SH NAME
+novnc_server | noVNC proxy server
+.SH SYNOPSIS
+.B novnc_server [--listen PORT] [--vnc VNC_HOST:PORT] [--cert CERT]
+
+Starts the WebSockets proxy and a mini-webserver and
+provides a cut-and-paste URL to go to.
+
+ --listen PORT Port for proxy/webserver to listen on
+ Default: 6080
+ --vnc VNC_HOST:PORT VNC server host:port proxy target
+ Default: localhost:5900
+ --cert CERT Path to combined cert/key file
+ Default: self.pem
+
+.SH AUTHOR
+Joel Martin (github@martintribe.org)
+
+.SH SEE ALSO
+websockify(1)
--
1.7.10.2

View File

@ -0,0 +1,17 @@
From: kberger@suse.com
Date: Mon Jun 25 17:05:16 UTC 2018
Subject: [PATCH] changed interpreter to resolve rpmlint error.
Upstream: no
---
Index: utils/novnc_proxy
===================================================================
--- a/utils/novnc_proxy
+++ b/utils/novnc_proxy
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
# Copyright (C) 2018 The noVNC Authors
# Licensed under MPL 2.0 or any later version (see LICENSE.txt)

191
novnc.changes Normal file
View File

@ -0,0 +1,191 @@
-------------------------------------------------------------------
Thu Jan 26 15:52:16 UTC 2023 - Manu Maier <mmanu84@outlook.de>
- Update to 1.4.0
Library:
* Secure context (https) is now required
* Added support for the ZRLE encoding
* Added support for RealVNC's JPEG encoding
* Added support for Apple Remote Desktop's authentication
* Added support for RealVNC's RSA-AES authentication
* Added support for UltraVNC's MSLogonII authentication
- Renamed to patch novnc-1.3.0-fix-interpreter.patch to novnc-1.4.0-fix-interpreter.patch
-------------------------------------------------------------------
Sat Oct 29 09:31:34 UTC 2022 - Software System <opensuse@wolke7.net>
- add "Requires: which" in case of missing running requirements
in container environment.
see https://github.com/novnc/noVNC/blob/f59be0586f675394514003784b7ffffbb845cc2b/utils/novnc_proxy#L170
-------------------------------------------------------------------
Fri Oct 22 14:28:42 UTC 2021 - Manu Maier <mmanu84@outlook.de>
- Update to 1.3.0
Application:
* Added French and Portuguese (Brazil) translations
* The novnc_proxy command (earlier launch.sh) is now able to interface better
towards Websockify and now has it's own man page
Library:
* RTCDataChannel is now supported as a communication channel, an alternative
to WebSockets
* Resizes of the viewport are handled in a more modern way. This allows our
library to not only react on browser window changes, but to size changes of
the screen element as well
* Fixed a bug with the Alt key on Firefox
* Fixed a disconnect that happened when using some VNC servers. The error
displayed in this case was "Error decoding rect: TypeError"
* Plain authentication passwords now support longer passwords, which can be
useful if you're using a password manager
* Support for Internet Explorer has been dropped. This made it possible to use
more modern features and clean up a large number of workarounds
- python3-websockify >= 0.9.0 is necessary
https://github.com/novnc/noVNC/issues/1276#issuecomment-521174077
- Fix patch novnc-1.1.0-fix-interpreter.patch
* Renamed to patch novnc-1.3.0-fix-interpreter.patch
-------------------------------------------------------------------
Tue Jul 14 15:28:30 UTC 2020 - Manu Maier <mmanu84@outlook.de>
- Update to 1.2.0:
* Quality and compression hints can now be modified dynamically
* Added touch gestures to emulate common mouse actions
* Support for full Unicode in clipboard
* Support for VeNCrypt Plain authentication
* Support for TightVNC Unix authentication
* Support for alpha cursors
* The session name is now updated whilst connected
-------------------------------------------------------------------
Sat Jul 20 20:26:55 UTC 2019 - Manu Maier <mmanu84@outlook.de>
- Fix patch novnc-1.0.0-fix-interpreter.patch
* Renamed to patch novnc-1.1.0-fix-interpreter.patch
- Update to 1.1.0:
Application:
* New translations for Russian, Korean, Czech and Chinese (traditional) languages
* Fixed an issue where you didn't get scrollbars in your browser on Windows if
you had a touch screen.
* Added the Super/Windows key to the toolbar.
* Added an option to show a dot when there otherwise wouldn't be a visible
cursor.
* View drag is no longer available when in scaling mode.
Library:
* A large number of coding style changes has been made to make the code easier
to read and better to work with.
* Many keyboard issues has been fixed.
* Local cursor is now available on all platforms.
* Fixed a number of crashes related to clipboard.
* Fixed issues that occurred if data from the server was being received slowly.
* A problem has been fixed where the display module would incorrectly handle
high DPI systems causing scrollbars to show when they shouldn't.
-------------------------------------------------------------------
Wed Jan 2 15:21:40 UTC 2019 - Dirk Mueller <dmueller@suse.com>
- require python3-websockify for recent distros (bsc#1119737)
-------------------------------------------------------------------
Wed Jun 20 14:20:37 UTC 2018 - kberger@suse.com
Fixes bugs bsc#1052286 and bsc#1077940
- Update to 1.0.0:
_The first official stable release of noVNC is finally here._
Lots of changes have been made since the last release, both in terms of features and bug fixes.
Some of the more notable changes since the last release are:
Application:
Heavily revamped interface
Everything is translated
Automatic reconnect on disconnects
Better handling of on screen keyboards
Support for VNC "bell" sound
Library:
Cleaned up, official and stable API
Converted to ES6 modules
Much improved keyboard handling
Support for QEMU's raw keyboard extension
Support for continuous updates extension
Proper handling of machines with both touch and mouse/trackpad
Better handling of mouse wheels
More responsive and performant panning
Colour map mode is no longer supported
- Add novnc-0.3-manpage.patch
novnc-0.3-manpage.patch: add manpage.
- Add novnc-1.0.0-fix-interpreter.patch
novnc-1.0.0-fix-interpreter.patch: change shebang path from env to bash.
-------------------------------------------------------------------
Sat Jul 22 08:11:49 UTC 2017 - dmueller@suse.com
- Update to 0.6.2:
_This is a vulnerability fix release._
Fixes a XSS issue in which the remote VNC server could inject
arbitrary HTML into the noVNC web page via the messages propagated
to the status field, such as the VNC server name.
This affects users of vnc_auto.html and vnc.html, as well as any
users of include/ui.js.
-------------------------------------------------------------------
Mon Dec 7 16:42:51 UTC 2015 - dvaleev@suse.com
- Package is definetely noarch. Mark as such
-------------------------------------------------------------------
Mon Feb 16 23:59:26 UTC 2015 - vuntz@suse.com
- Update to 0.5.1:
+ Improved keyboard support via use of keysyms.js
+ Fix HEXTILE "blank" tile support
+ lower minimum width to accommodate smaller screens
+ Fix issue causing true-color cursors to not be changed
+ Fix subprotocol support for the TIGHT encoding
- Changes from 0.5.0:
+ General Fixes/Improvements:
- Use Object.defineProperty on Array prototype to prevent
issues with enumeration
- Internal Refactor for improved testability
- Improved parsing of query string parameters
- Support container page scrolling
- Fixed IE10 keyboard support
- Fixes for mobile keyboards (Android and iOS)
- Improved foreign keyboard support
- dynamic script loading without document.write
+ Protocol Support:
- TightVNC support (we support choosing the NOTUNNEL type if
tunnels are requested)
- XVP Support
- Update license tag to "MPL-2.0; LGPL-3.0", following relicensing.
- Drop novnc-0.3-call-websockify.patch,
novnc-0.3-nova-wsproxy.patch: not needed anymore.
-------------------------------------------------------------------
Tue Sep 24 19:38:06 UTC 2013 - dmueller@suse.com
- update to 0.4:
* Clarify permissive licenses of HTML, CSS, images.
* Use render queue and requestAnimationFrame
* UltraVNC repeater support
-------------------------------------------------------------------
Tue Mar 19 00:01:00 UTC 2013 - berendt@b1-systems.de
- removed openstack-nova-novncproxy
-------------------------------------------------------------------
Wed Oct 10 00:01:00 UTC 2012 - berendt@b1-systems.de
- make it buildable for SLES11 SP2
- import from Fedora 18

72
novnc.spec Normal file
View File

@ -0,0 +1,72 @@
#
# spec file for package novnc
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: novnc
Version: 1.4.0
Release: 0
Summary: VNC client using HTML5 (Web Sockets, Canvas) with encryption support
License: LGPL-3.0-only AND MPL-2.0
Group: System/Daemons
URL: https://github.com/novnc/noVNC
Source0: noVNC-%{version}.tar.gz
Patch1: novnc-0.3-manpage.patch
Patch2: novnc-1.4.0-fix-interpreter.patch
Requires: python3-websockify >= 0.9.0
Requires: which
BuildArch: noarch
%description
This package provides a Websocket implementation of the VNC client.
It is used by OpenStack Horizon to provide a console view of running
instances.
%prep
%setup -q -n noVNC-%{version}
%autopatch -p1
%build
%install
mkdir -p %{buildroot}/%{_usr}/share/novnc/utils
install -m 444 *html %{buildroot}/%{_usr}/share/novnc
install -m 444 vnc.html %{buildroot}/%{_usr}/share/novnc/index.html
install -m 444 vnc_lite.html %{buildroot}/%{_usr}/share/novnc/vnc_auto.html
mkdir -p %{buildroot}/%{_usr}/share/novnc/app/
cp -rp app %{buildroot}/%{_usr}/share/novnc
mkdir -p %{buildroot}/%{_usr}/share/novnc/core
cp -rp core %{buildroot}/%{_usr}/share/novnc
mkdir -p %{buildroot}/%{_usr}/share/novnc/vendor
cp -rp vendor %{buildroot}/%{_usr}/share/novnc
mkdir -p %{buildroot}/%{_bindir}
install utils/novnc_proxy %{buildroot}/%{_bindir}/novnc_server
mkdir -p %{buildroot}%{_mandir}/man1/
install -m 444 docs/novnc_server.1 %{buildroot}%{_mandir}/man1/
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/novnc_server
%{_datadir}/novnc/
%{_mandir}/man1/novnc_server.1%{?ext_man}
%changelog