[oe-commits] Otavio Salvador : tightvnc: add a default X resources file

GIT User account git at amethyst.openembedded.net
Wed Nov 5 11:14:49 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 301c02d1fe5b5b06061546b1a9e7314bdca73594
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=301c02d1fe5b5b06061546b1a9e7314bdca73594

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Tue Nov  4 10:57:50 2008 -0200

tightvnc: add a default X resources file

---

 packages/vnc/tightvnc/Vncviewer |   66 +++++++++++++++++++++++++++++++++++++++
 packages/vnc/tightvnc_1.3.9.bb  |    9 +++--
 2 files changed, 72 insertions(+), 3 deletions(-)

diff --git a/packages/vnc/tightvnc/Vncviewer b/packages/vnc/tightvnc/Vncviewer
new file mode 100644
index 0000000..ed60ecd
--- /dev/null
+++ b/packages/vnc/tightvnc/Vncviewer
@@ -0,0 +1,66 @@
+Vncviewer.title: TightVNC: %s
+Vncviewer.translations:\
+  <Enter>: SelectionToVNC()\n\
+  <Leave>: SelectionFromVNC()
+*form.background: black
+*viewport.allowHoriz: True
+*viewport.allowVert: True
+*viewport.useBottom: True
+*viewport.useRight: True
+*viewport*Scrollbar*thumb: None
+*desktop.baseTranslations:\
+  <Key>F8: ShowPopup()\n\
+  <ButtonPress>: SendRFBEvent()\n\
+  <ButtonRelease>: SendRFBEvent()\n\
+  <Motion>: SendRFBEvent()\n\
+  <KeyPress>: SendRFBEvent()\n\
+  <KeyRelease>: SendRFBEvent()
+*serverDialog.dialog.label: VNC server:
+*serverDialog.dialog.value:
+*serverDialog.dialog.value.translations: #override\n\
+  <Key>Return: ServerDialogDone()
+*passwordDialog.dialog.label: Password:
+*passwordDialog.dialog.value:
+*passwordDialog.dialog.value.AsciiSink.echo: False
+*passwordDialog.dialog.value.translations: #override\n\
+  <Key>Return: PasswordDialogDone()
+*popup.title: TightVNC popup
+*popup*background: grey
+*popup*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
+*popup.buttonForm.Command.borderWidth: 0
+*popup.buttonForm.Toggle.borderWidth: 0
+*popup.translations: #override <Message>WM_PROTOCOLS: HidePopup()
+*popup.buttonForm.translations: #override\n\
+  <KeyPress>: SendRFBEvent() HidePopup()
+*popupButtonCount: 8
+*popup*button1.label: Dismiss popup
+*popup*button1.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: HidePopup()
+*popup*button2.label: Quit viewer
+*popup*button2.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: Quit()
+*popup*button3.label: Full screen
+*popup*button3.type: toggle
+*popup*button3.translations: #override\n\
+  <Visible>: SetFullScreenState()\n\
+  <Btn1Down>,<Btn1Up>: toggle() HidePopup() ToggleFullScreen()
+*popup*button4.label: Clipboard: local -> remote
+*popup*button4.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: SelectionToVNC(always) HidePopup()
+*popup*button5.label: Clipboard: local <- remote
+*popup*button5.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: SelectionFromVNC(always) HidePopup()
+*popup*button6.label: Request refresh
+*popup*button6.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: SendRFBEvent(fbupdate) HidePopup()
+*popup*button7.label: Send ctrl-alt-del
+*popup*button7.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: SendRFBEvent(keydown,Control_L)\
+                       SendRFBEvent(keydown,Alt_L)\
+                       SendRFBEvent(key,Delete)\
+                       SendRFBEvent(keyup,Alt_L)\
+                       SendRFBEvent(keyup,Control_L)\
+                       HidePopup()
+*popup*button8.label: Send F8
+*popup*button8.translations: #override\n\
+  <Btn1Down>,<Btn1Up>: SendRFBEvent(key,F8) HidePopup()
diff --git a/packages/vnc/tightvnc_1.3.9.bb b/packages/vnc/tightvnc_1.3.9.bb
index 3f11763..58ca15e 100644
--- a/packages/vnc/tightvnc_1.3.9.bb
+++ b/packages/vnc/tightvnc_1.3.9.bb
@@ -3,16 +3,17 @@ HOMEPAGE = "http://www.tightvnc.com/"
 DEPENDS = "virtual/libx11 zlib libxmu libxaw"
 LICENSE = "GPL"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/vnc-tight/${PN}-${PV}_unixsrc.tar.gz \
-           file://Makefile"
+           file://Makefile \
+           file://Vncviewer"
 
 S = "${WORKDIR}/vnc_unixsrc/vncviewer/"
 
 PACKAGES = "${PN}-viewer-dbg ${PN}-viewer"
 FILES_${PN}-viewer-dbg = "${bindir}/.debug"
-FILES_${PN}-viewer = "${bindir}/${PN}viewer"
+FILES_${PN}-viewer = "${bindir}/${PN}viewer ${sysconfdir}"
 
 do_compile () {
 	install ${WORKDIR}/Makefile ${S}
@@ -22,6 +23,8 @@ do_compile () {
 do_install () {
 	install -d ${D}${bindir}
 	install ${PN}viewer ${D}${bindir}
+	install -d ${D}${sysconfdir}/X11/app-defaults
+	install -m 644 ${WORKDIR}/Vncviewer ${D}${sysconfdir}/X11/app-defaults/Vncviewer
 }
 
 pkg_postinst_${PN}-viewer () {





More information about the Openembedded-commits mailing list