[go: nahoru, domu]

Skip to content

Commit

Permalink
Version 0.1, debian packaging, license text.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kanaka committed Jul 14, 2011
1 parent 29c3cbe commit c0c143a
Show file tree
Hide file tree
Showing 12 changed files with 143 additions and 6 deletions.
18 changes: 16 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
13 changes: 13 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -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.
36 changes: 36 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions debian/novnc.install
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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 ${@}
1 change: 1 addition & 0 deletions docs/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1
23 changes: 23 additions & 0 deletions docs/packaging.txt
Original file line number Diff line number Diff line change
@@ -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).
Empty file modified include/web-socket-js/web_socket.js
100755 → 100644
Empty file.
Empty file modified utils/launch.sh
100644 → 100755
Empty file.
11 changes: 7 additions & 4 deletions utils/websocket.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(self, listen_host='', listen_port=None, source_is_ipv6=False,
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")
Expand All @@ -146,11 +146,14 @@ def __init__(self, listen_host='', listen_port=None, source_is_ipv6=False,
@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,
Expand Down

0 comments on commit c0c143a

Please sign in to comment.