Version 0.1, debian packaging, license text.
noVNC version 0.1 Add debian packaging directory loosely based on http://trac.zentyal.org/browser/trunk/extra/novnc/debian Show web root directory on startup (pulled from websockify f1c8223). Lintian fixups: - Some license text clarifications. - remove executable permission on utils/launch.sh and include/web-socket-js/web_socket.js - Add executable permission to utils/launch.sh
This commit is contained in:
parent
23c774fa57
commit
3122b5d70a
18
LICENSE.txt
18
LICENSE.txt
|
@ -1,5 +1,11 @@
|
|||
noVNC is licensed under the LGPL version 3 (see docs/LICENSE.GPL-3 and
|
||||
docs/LICENSE.LGPL-3) with the following exceptions:
|
||||
noVNC is Copyright (C) 2011 Joel Martin <github@martintribe.org>
|
||||
|
||||
Some portions of noVNC are copyright to their individual authors.
|
||||
Please refer to the individual source files and/or to the noVNC commit
|
||||
history: https://github.com/kanaka/noVNC/commits/master
|
||||
|
||||
noVNC is licensed under the LGPL (GNU Lesser General Public License)
|
||||
version 3 with the following exceptions:
|
||||
|
||||
include/input.js : LGPL-2 or any later version
|
||||
|
||||
|
@ -14,3 +20,11 @@ docs/LICENSE.LGPL-3) with the following exceptions:
|
|||
http://creativecommons.org/licenses/by-sa/3.0/
|
||||
Uses of the work must be attributed
|
||||
to the noVNC project.
|
||||
|
||||
The LGPL-3 license text is included at:
|
||||
docs/LICENSE.LGPL-3 and
|
||||
docs/LICENSE.GPL-3
|
||||
|
||||
Or alternatively the LGPL-3 license text may be found here:
|
||||
http://www.gnu.org/licenses/lgpl.html and
|
||||
http://www.gnu.org/licenses/gpl.html
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
novnc (0.1) maverick; urgency=low
|
||||
|
||||
* First upstream release
|
||||
|
||||
-- Joel Martin <github@martintribe.org> Tue, 05 Jul 2011 01:00:00 -0600
|
|
@ -0,0 +1 @@
|
|||
7
|
|
@ -0,0 +1,13 @@
|
|||
Source: novnc
|
||||
Section: web
|
||||
Priority: optional
|
||||
Maintainer: Joel Martin <github@martintribe.org>
|
||||
Build-Depends: debhelper (>= 7.0.0~)
|
||||
Standards-Version: 3.8.3
|
||||
Homepage: https://github.com/kanaka/noVNC/
|
||||
|
||||
Package: novnc
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.4)
|
||||
Description: HTML5 VNC client
|
||||
VNC client using HTML5 (WebSockets, Canvas) with encryption (wss://) support.
|
|
@ -0,0 +1,36 @@
|
|||
Upstream Project: https://github.com/kanaka/noVNC/
|
||||
|
||||
--------------------- Original LICENSE.txt ---------------------------
|
||||
|
||||
noVNC is Copyright (C) 2011 Joel Martin <github@martintribe.org>
|
||||
|
||||
Some portions of noVNC are copyright to their individual authors.
|
||||
Please refer to the individual source files and/or to the noVNC commit
|
||||
history: https://github.com/kanaka/noVNC/commits/master
|
||||
|
||||
noVNC is licensed under the LGPL (GNU Lesser General Public License)
|
||||
version 3 with the following exceptions:
|
||||
|
||||
include/input.js : LGPL-2 or any later version
|
||||
|
||||
include/base64.js : Dual GPL-2 or LGPL-2.1
|
||||
|
||||
incluee/des.js : Various BSD style licenses
|
||||
|
||||
include/web-socket-js/ : New BSD license. Source code at
|
||||
http://github.com/gimite/web-socket-js
|
||||
|
||||
images/ : Creative Commons Attribution-ShareAlike
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
||||
Uses of the work must be attributed
|
||||
to the noVNC project.
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
The LGPL-3 license text is located at:
|
||||
/usr/share/common-licenses/LGPL-3 and
|
||||
/usr/share/common-licenses/GPL-3
|
||||
|
||||
Or alternatively the LGPL-3 license text may be found here:
|
||||
http://www.gnu.org/licenses/lgpl.html and
|
||||
http://www.gnu.org/licenses/gpl.html
|
|
@ -0,0 +1,27 @@
|
|||
vnc.html /usr/share/novnc
|
||||
vnc_auto.html /usr/share/novnc
|
||||
README.md /usr/share/doc/novnc
|
||||
LICENSE.txt /usr/share/doc/novnc
|
||||
utils/Makefile /usr/share/novnc/utils
|
||||
utils/launch.sh /usr/share/novnc/utils
|
||||
utils/websocket.py /usr/share/novnc/utils
|
||||
utils/websockify /usr/share/novnc/utils
|
||||
utils/wsproxy.py /usr/share/novnc/utils
|
||||
utils/rebind.c /usr/share/novnc/utils
|
||||
utils/rebind.so /usr/share/novnc/utils
|
||||
images/favicon.ico /usr/share/novnc
|
||||
include/base64.js /usr/share/novnc/include
|
||||
include/black.css /usr/share/novnc/include
|
||||
include/des.js /usr/share/novnc/include
|
||||
include/display.js /usr/share/novnc/include
|
||||
include/input.js /usr/share/novnc/include
|
||||
include/logo.js /usr/share/novnc/include
|
||||
include/plain.css /usr/share/novnc/include
|
||||
include/playback.js /usr/share/novnc/include
|
||||
include/rfb.js /usr/share/novnc/include
|
||||
include/ui.js /usr/share/novnc/include
|
||||
include/util.js /usr/share/novnc/include
|
||||
include/vnc.js /usr/share/novnc/include
|
||||
include/websock.js /usr/share/novnc/include
|
||||
include/webutil.js /usr/share/novnc/include
|
||||
include/web-socket-js/* /usr/share/novnc/include/web-socket-js
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
clean:
|
||||
make -C utils clean
|
||||
dh clean
|
||||
|
||||
build:
|
||||
make -C utils rebind.so
|
||||
|
||||
%:
|
||||
dh ${@}
|
|
@ -0,0 +1 @@
|
|||
0.1
|
|
@ -0,0 +1,23 @@
|
|||
noVNC packaging steps for Debian/Ubuntu:
|
||||
|
||||
- Update the noVNC version in docs/VERSION and add a new entry for the
|
||||
version in debian/changelog
|
||||
|
||||
- Rename the novnc source directory to match the form "novnc-VERSION".
|
||||
|
||||
- In the novnc source directory, run the packaging command:
|
||||
|
||||
debuild -I -uc -us
|
||||
|
||||
- The -I option ignores the .git directory when generating the
|
||||
source tarball.
|
||||
- the -uc and -us may be omitted in order to create a signed
|
||||
package.
|
||||
|
||||
- Alternatively, use pbuilder instead of debuild in order to build
|
||||
for other distributions and to guarantee a sanitized package.
|
||||
|
||||
- Verify the package and then commit the changes to docs/VERSION and
|
||||
debian/changelog.
|
||||
|
||||
- Upload the new package file(s).
|
|
@ -124,7 +124,7 @@ Sec-WebSocket-Accept: %s\r
|
|||
self.listen_host, self.listen_port))
|
||||
print(" - Flash security policy server")
|
||||
if self.web:
|
||||
print(" - Web server")
|
||||
print(" - Web server. Web root: %s" % self.web)
|
||||
if ssl:
|
||||
if os.path.exists(self.cert):
|
||||
print(" - SSL/TLS support")
|
||||
|
@ -146,11 +146,14 @@ Sec-WebSocket-Accept: %s\r
|
|||
@staticmethod
|
||||
def socket(host, port=None, connect=False, prefer_ipv6=False):
|
||||
""" Resolve a host (and optional port) to an IPv4 or IPv6
|
||||
address. Create a socket. Bind to it if listen is set. Return
|
||||
a socket that is ready for listen or connect.
|
||||
address. Create a socket. Bind to it if listen is set,
|
||||
otherwise connect to it. Return the socket.
|
||||
"""
|
||||
flags = 0
|
||||
if host == '': host = None
|
||||
if host == '':
|
||||
host = None
|
||||
if connect and not port:
|
||||
raise Exception("Connect mode requires a port")
|
||||
if not connect:
|
||||
flags = flags | socket.AI_PASSIVE
|
||||
addrs = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM,
|
||||
|
|
Loading…
Reference in New Issue