Skip to contentSkip to conversation

turbovnc: new package

PATCH Superseded Stefan Fröberg 2 participants 3 messages Oct 30, 2017 – Oct 31, 2017 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 turbovnc: new package

TurboVNC, a high-performance VNC.

---
 package/Config.in              |  1 +
 package/turbovnc/Config.in     | 16 ++++++++++++++++
 package/turbovnc/turbovnc.hash |  5 +++++
 package/turbovnc/turbovnc.mk   | 21 +++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 100644 package/turbovnc/Config.in
 create mode 100644 package/turbovnc/turbovnc.hash
 create mode 100644 package/turbovnc/turbovnc.mk
package/Config.in +1 -0
index dbfb288..2ab14bf 100644
@@ -330,6 +330,7 @@ comment "X applications"
 	source "package/qt-webkit-kiosk/Config.in"
 	source "package/rdesktop/Config.in"
 	source "package/synergy/Config.in"
+	source "package/turbovnc/Config.in"
 	source "package/wmctrl/Config.in"
 	source "package/x11vnc/Config.in"
 	source "package/xdotool/Config.in"
package/turbovnc/Config.in new file +16 -0
new file mode 100644
index 0000000..6ea2882
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_TURBOVNC
+	bool "turbovnc"
+	help
+	  TurboVNC is a high-performance, enterprise-quality version 
+	  of VNC based on TightVNC, TigerVNC, and X.org.
+	  It contains a variant of Tight encoding that is tuned for
+	  maximum performance and compression with 3D applications
+	  (VirtualGL), video, and other image-intensive workloads.
+	  TurboVNC, in combination with VirtualGL, provides a 
+	  complete solution for remotely displaying 3D applications
+	  with interactive performance. TurboVNC's high-speed encoding
+	  methods have been adopted by TigerVNC and libvncserver,
+	  and TurboVNC is also compatible with any other TightVNC
+	  derivative.
+
+	  https://turbovnc.org
package/turbovnc/turbovnc.hash new file +5 -0
new file mode 100644
index 0000000..0cad264
@@ -0,0 +1,5 @@
+# From https://sourceforge.net/projects/turbovnc/files/2.1.2/
+md5	9d04b26d40664d0d8072e8b1828f69c4  turbovnc-2.1.2.tar.gz
+sha1	cd99a27cee86f0680410133beb25da1d6f35a3ea  turbovnc-2.1.2.tar.gz
+# Locally computed
+sha256	2389f76eafc48412b980a61280ffb8d111dacd9e51d5e3df2112f505558b48d4  turbovnc-2.1.2.tar.gz
package/turbovnc/turbovnc.mk new file +21 -0
new file mode 100644
index 0000000..a861f78
@@ -0,0 +1,21 @@
+################################################################################
+#
+# turbovnc
+#
+################################################################################
+
+TURBOVNC_VERSION = 2.1.2
+TURBOVNC_SOURCE = turbovnc-$(TURBOVNC_VERSION).tar.gz
+TURBOVNC_SITE = https://downloads.sourceforge.net/project/turbovnc/$(TURBOVNC_VERSION)
+TURBOVNC_DEPENDENCIES = jpeg-turbo linux-pam openssl perl xfont_font-misc-misc xlib_libICE xlib_libSM xlib_libX11 \
+			xlib_libXext xlib_libXau xlib_libXdmcp 
+TURBOVNC_LICENSE = GPL-2.0, MIT (putty), Dual FTL/GPL-2.0+ (freetype) \
+		   bzip2 license (bzip2)
+TURBOVNC_LICENSE_FILES = doc/LICENSE.txt doc/LICENSE-PuTTY.txt \
+			 unix/Xvnc/extras/freetype2/doc/LICENSE.txt \
+			 unix/Xvnc/lib/bzip2/LICENSE
+
+# Build just server
+TURBOVNC_CONF_OPTS += -DTVNC_BUILDJAVA=0 -DTVNC_BUILDNATIVE=0
+
+$(eval $(cmake-package))
Signature · 1 line
2.7.3
#1 lore raw

PATCH 1/1 turbovnc: new package

Hi Stefan,

Quoted 65 lines · Stefan Fr?berg

TurboVNC, a high-performance VNC.

---
 package/Config.in              |  1 +
 package/turbovnc/Config.in     | 16 ++++++++++++++++
 package/turbovnc/turbovnc.hash |  5 +++++
 package/turbovnc/turbovnc.mk   | 21 +++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 100644 package/turbovnc/Config.in
 create mode 100644 package/turbovnc/turbovnc.hash
 create mode 100644 package/turbovnc/turbovnc.mk
package/Config.in +1 -0
index dbfb288..2ab14bf 100644
@@ -330,6 +330,7 @@ comment "X applications"
 	source "package/qt-webkit-kiosk/Config.in"
 	source "package/rdesktop/Config.in"
 	source "package/synergy/Config.in"
+	source "package/turbovnc/Config.in"
 	source "package/wmctrl/Config.in"
 	source "package/x11vnc/Config.in"
 	source "package/xdotool/Config.in"
package/turbovnc/Config.in new file +16 -0
new file mode 100644
index 0000000..6ea2882
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_TURBOVNC
+	bool "turbovnc"
+	help
+	  TurboVNC is a high-performance, enterprise-quality version 
+	  of VNC based on TightVNC, TigerVNC, and X.org.
+	  It contains a variant of Tight encoding that is tuned for
+	  maximum performance and compression with 3D applications
+	  (VirtualGL), video, and other image-intensive workloads.
+	  TurboVNC, in combination with VirtualGL, provides a 
+	  complete solution for remotely displaying 3D applications
+	  with interactive performance. TurboVNC's high-speed encoding
+	  methods have been adopted by TigerVNC and libvncserver,
+	  and TurboVNC is also compatible with any other TightVNC
+	  derivative.
+
+	  https://turbovnc.org
package/turbovnc/turbovnc.hash new file +5 -0
new file mode 100644
index 0000000..0cad264
@@ -0,0 +1,5 @@
+# From https://sourceforge.net/projects/turbovnc/files/2.1.2/
+md5	9d04b26d40664d0d8072e8b1828f69c4  turbovnc-2.1.2.tar.gz
+sha1	cd99a27cee86f0680410133beb25da1d6f35a3ea  turbovnc-2.1.2.tar.gz
+# Locally computed
+sha256	2389f76eafc48412b980a61280ffb8d111dacd9e51d5e3df2112f505558b48d4  turbovnc-2.1.2.tar.gz
package/turbovnc/turbovnc.mk new file +1 -0
new file mode 100644
index 0000000..a861f78
@@ -0,0 +1,21 @@
+################################################################################

package/turbovnc/turbovnc.mk line 11

Quoted 10 lines
package/turbovnc/turbovnc.mk new file +10 -0
+#
+# turbovnc
+#
+################################################################################
+
+TURBOVNC_VERSION = 2.1.2
+TURBOVNC_SOURCE = turbovnc-$(TURBOVNC_VERSION).tar.gz
+TURBOVNC_SITE = https://downloads.sourceforge.net/project/turbovnc/$(TURBOVNC_VERSION)
+TURBOVNC_DEPENDENCIES = jpeg-turbo linux-pam openssl perl xfont_font-misc-misc xlib_libICE xlib_libSM xlib_libX11 \
+			xlib_libXext xlib_libXau xlib_libXdmcp 

You need to select these dependencies in Config.in to make sure that they actually get built. Don't forget to propagate their dependencies as well. As far as I can see perl is a run-time only dependency, so there is no need to list it here, since build order doesn't matter. Same goes for xfont_font-misc-misc, I guess.

unix/Xvnc/README indicates that linux-pam is an optional dependency. Having linux-pam optional would allow building turbovnc with musl libc.

package/turbovnc/turbovnc.mk line 13

Quoted 2 lines
package/turbovnc/turbovnc.mk new file +2 -0
+TURBOVNC_LICENSE = GPL-2.0, MIT (putty), Dual FTL/GPL-2.0+ (freetype) \
+		   bzip2 license (bzip2)

The README.txt file mentions also the zlib license.

package/turbovnc/turbovnc.mk line 16

Quoted 3 lines
package/turbovnc/turbovnc.mk new file +3 -0
+TURBOVNC_LICENSE_FILES = doc/LICENSE.txt doc/LICENSE-PuTTY.txt \
+			 unix/Xvnc/extras/freetype2/doc/LICENSE.txt \
+			 unix/Xvnc/lib/bzip2/LICENSE

README.txt should also be here. Adding hashes for these files would also be nice.

package/turbovnc/turbovnc.mk line 21

Quoted 4 lines
package/turbovnc/turbovnc.mk new file +4 -0
+# Build just server
+TURBOVNC_CONF_OPTS += -DTVNC_BUILDJAVA=0 -DTVNC_BUILDNATIVE=0
+
+$(eval $(cmake-package))

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#3 lore raw

PATCH 1/1 turbovnc: new package

In reply to a message not in the archive

Hi Stefan,

Please keep the list on Cc.

Quoted 2 lines · Stefan Fr?berg

Oh, so I should put like select BR2_PACKAGE_OPENSSL, etc ... into Config.in ?

Yes.

Quoted 8 lines

(been so very long from my last time of adding new package to buildroot).

Yes, you are right, perl is needed for just vncserver script that is nothing more than messy
wrapper for TurboVNC version of Xvnc binary.
And if I remember correctly, the vncserver script complained about missing xfont.

Quoted 7 lines

I will make the changes.

BTW, there is also init script included but god it looks messy and complicated
(allkind of stuff like handling Gnome 3 and KDE and so on, things that
buildroot not yet have in package list) ....
Should I make my own, simpler init script ?

This script (unix/vncserver.init.in) also requires bash. So unless you make bash a run-time dependency, you'll need to provide a simpler script, or none. An init script is not a hard requirement.

Quoted 7 lines

Also, for some strange reason, TurboVNC has hardcoded xstartup.turbovnc while other
VNC implementations use just xstartup and all the docs in the Net tell that you should add
your window/desktop/etc whatever you want to start, into $HOME/.vnc/xstartup file like this for example:

Quoted 8 lines

#!/bin/sh
exec startfluxbox

Should I do a patch that would keep TurboVNC behavior in sync with other VNCs ? Or maybe just add switch to
vncserver script in the init file? (I think there was something like -xstartup or something that could
be given to specify xstartup file name)

Buildroot generally does not make changes to upstream package behaviour.

baruch

Quoted 101 lines

31.10.2017, 6:58, Baruch Siach kirjoitti:

Quoted 100 lines · Stefan Fr?berg
Quoted 65 lines

TurboVNC, a high-performance VNC.

---
  package/Config.in              |  1 +
  package/turbovnc/Config.in     | 16 ++++++++++++++++
  package/turbovnc/turbovnc.hash |  5 +++++
  package/turbovnc/turbovnc.mk   | 21 +++++++++++++++++++++
  4 files changed, 43 insertions(+)

create mode 100644 package/turbovnc/Config.in create mode 100644 package/turbovnc/turbovnc.hash create mode 100644 package/turbovnc/turbovnc.mk

package/Config.in +1 -0
index dbfb288..2ab14bf 100644
@@ -330,6 +330,7 @@ comment "X applications"
  	source "package/qt-webkit-kiosk/Config.in"
  	source "package/rdesktop/Config.in"
  	source "package/synergy/Config.in"
+	source "package/turbovnc/Config.in"
  	source "package/wmctrl/Config.in"
  	source "package/x11vnc/Config.in"
  	source "package/xdotool/Config.in"
package/turbovnc/Config.in new file +16 -0
new file mode 100644
index 0000000..6ea2882
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_TURBOVNC
+	bool "turbovnc"
+	help
+	  TurboVNC is a high-performance, enterprise-quality version
+	  of VNC based on TightVNC, TigerVNC, and X.org.
+	  It contains a variant of Tight encoding that is tuned for
+	  maximum performance and compression with 3D applications
+	  (VirtualGL), video, and other image-intensive workloads.
+	  TurboVNC, in combination with VirtualGL, provides a
+	  complete solution for remotely displaying 3D applications
+	  with interactive performance. TurboVNC's high-speed encoding
+	  methods have been adopted by TigerVNC and libvncserver,
+	  and TurboVNC is also compatible with any other TightVNC
+	  derivative.
+
+	  https://turbovnc.org
package/turbovnc/turbovnc.hash new file +5 -0
new file mode 100644
index 0000000..0cad264
@@ -0,0 +1,5 @@
+# From https://sourceforge.net/projects/turbovnc/files/2.1.2/
+md5	9d04b26d40664d0d8072e8b1828f69c4  turbovnc-2.1.2.tar.gz
+sha1	cd99a27cee86f0680410133beb25da1d6f35a3ea  turbovnc-2.1.2.tar.gz
+# Locally computed
+sha256	2389f76eafc48412b980a61280ffb8d111dacd9e51d5e3df2112f505558b48d4  turbovnc-2.1.2.tar.gz
package/turbovnc/turbovnc.mk new file +1 -0
new file mode 100644
index 0000000..a861f78
@@ -0,0 +1,21 @@
+################################################################################

package/turbovnc/turbovnc.mk line 11

Quoted 10 lines
package/turbovnc/turbovnc.mk new file +10 -0
+#
+# turbovnc
+#
+################################################################################
+
+TURBOVNC_VERSION = 2.1.2
+TURBOVNC_SOURCE = turbovnc-$(TURBOVNC_VERSION).tar.gz
+TURBOVNC_SITE = https://downloads.sourceforge.net/project/turbovnc/$(TURBOVNC_VERSION)
+TURBOVNC_DEPENDENCIES = jpeg-turbo linux-pam openssl perl xfont_font-misc-misc xlib_libICE xlib_libSM xlib_libX11 \
+			xlib_libXext xlib_libXau xlib_libXdmcp

You need to select these dependencies in Config.in to make sure that they actually get built. Don't forget to propagate their dependencies as well. As far as I can see perl is a run-time only dependency, so there is no need to list it here, since build order doesn't matter. Same goes for xfont_font-misc-misc, I guess.

unix/Xvnc/README indicates that linux-pam is an optional dependency. Having linux-pam optional would allow building turbovnc with musl libc.

package/turbovnc/turbovnc.mk line 13

Quoted 2 lines
package/turbovnc/turbovnc.mk new file +2 -0
+TURBOVNC_LICENSE = GPL-2.0, MIT (putty), Dual FTL/GPL-2.0+ (freetype) \
+		   bzip2 license (bzip2)

The README.txt file mentions also the zlib license.

package/turbovnc/turbovnc.mk line 16

Quoted 3 lines
package/turbovnc/turbovnc.mk new file +3 -0
+TURBOVNC_LICENSE_FILES = doc/LICENSE.txt doc/LICENSE-PuTTY.txt \
+			 unix/Xvnc/extras/freetype2/doc/LICENSE.txt \
+			 unix/Xvnc/lib/bzip2/LICENSE

README.txt should also be here. Adding hashes for these files would also be nice.

package/turbovnc/turbovnc.mk line 21

Quoted 4 lines
package/turbovnc/turbovnc.mk new file +4 -0
+# Build just server
+TURBOVNC_CONF_OPTS += -DTVNC_BUILDJAVA=0 -DTVNC_BUILDNATIVE=0
+
+$(eval $(cmake-package))

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -