From 313ea062889aba322b75726d8bb7276665aa4ea3 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sun, 7 Sep 2008 19:20:12 +0000 Subject: [PATCH] qtnx: import qtnx to openembedded * added id-path.patch from debian * added pro and scroll.patch, which are my work * final commit for nx-client support in oe * only compile tested against qt-embedded --- packages/qtnx/.mtn2git_empty | 0 packages/qtnx/files/.mtn2git_empty | 0 packages/qtnx/files/id-path.patch | 24 + packages/qtnx/files/pro.patch | 27 + packages/qtnx/files/scroll.patch | 1695 ++++++++++++++++++++++++++++++++++++ packages/qtnx/qtnx_0.9.bb | 34 + 6 files changed, 1780 insertions(+) create mode 100644 packages/qtnx/.mtn2git_empty create mode 100644 packages/qtnx/files/.mtn2git_empty create mode 100644 packages/qtnx/files/id-path.patch create mode 100644 packages/qtnx/files/pro.patch create mode 100644 packages/qtnx/files/scroll.patch create mode 100644 packages/qtnx/qtnx_0.9.bb diff --git a/packages/qtnx/.mtn2git_empty b/packages/qtnx/.mtn2git_empty new file mode 100644 index 0000000..e69de29 diff --git a/packages/qtnx/files/.mtn2git_empty b/packages/qtnx/files/.mtn2git_empty new file mode 100644 index 0000000..e69de29 diff --git a/packages/qtnx/files/id-path.patch b/packages/qtnx/files/id-path.patch new file mode 100644 index 0000000..e6b75ca --- /dev/null +++ b/packages/qtnx/files/id-path.patch @@ -0,0 +1,24 @@ +fix from latest debian unstable package + + +Index: qtnx-0.9/qtnxwindow.cpp +=================================================================== +--- qtnx-0.9.orig/qtnxwindow.cpp 2008-09-02 22:11:45.015711881 +0200 ++++ qtnx-0.9/qtnxwindow.cpp 2008-09-02 22:24:27.168968002 +0200 +@@ -290,7 +290,7 @@ + + m_NXClient->setDepth(getDepth()); + +- QString keyPath = "id.key"; ++ QString keyPath = "/usr/share/qtnx/id.key"; + + #ifdef Q_WS_MAC + keyPath = binaryPath + "/id.key"; +@@ -405,6 +405,7 @@ + + connect(settingsDialog, SIGNAL(closing(QString)), this, SLOT(configureClosed(QString))); + ++ + settingsDialog->show(); + } + diff --git a/packages/qtnx/files/pro.patch b/packages/qtnx/files/pro.patch new file mode 100644 index 0000000..2e1b10c --- /dev/null +++ b/packages/qtnx/files/pro.patch @@ -0,0 +1,27 @@ +patch by Henning Heinold + +Index: qtnx-0.9/qtnx.pro +=================================================================== +--- qtnx-0.9.orig/qtnx.pro 2008-09-04 11:42:19.000000000 +0200 ++++ qtnx-0.9/qtnx.pro 2008-09-04 11:42:32.000000000 +0200 +@@ -24,6 +24,6 @@ + DEPENDPATH += $(QTDIR)/include + + +-QT += ui xml ++QT += gui xml + + TARGET = qtnx +Index: qtnx-0.9/qtnxwin32.pro +=================================================================== +--- qtnx-0.9.orig/qtnxwin32.pro 2008-03-07 12:13:15.000000000 +0100 ++++ qtnx-0.9/qtnxwin32.pro 2008-09-04 11:42:41.000000000 +0200 +@@ -14,7 +14,7 @@ + + QMAKE_LFLAGS += -Wl,-subsystem,windows + +-QT += ui xml ++QT += gui xml + + TARGET = qtnx + diff --git a/packages/qtnx/files/scroll.patch b/packages/qtnx/files/scroll.patch new file mode 100644 index 0000000..107c717 --- /dev/null +++ b/packages/qtnx/files/scroll.patch @@ -0,0 +1,1695 @@ +patch by Henning Heinold, so the configure-widget is +scrollable + +Index: qtnx-0.9/settingsdialog.ui +=================================================================== +--- qtnx-0.9.orig/settingsdialog.ui 2008-09-03 21:32:51.716503112 +0200 ++++ qtnx-0.9/settingsdialog.ui 2008-09-03 21:34:56.943160459 +0200 +@@ -5,8 +5,8 @@ + + 0 + 0 +- 468 +- 546 ++ 480 ++ 543 + + + +@@ -19,923 +19,787 @@ + + 6 + +- +- 9 +- +- +- 9 +- +- +- 9 +- +- ++ + 9 + + +- +- +- 0 ++ ++ ++ true + +- +- +- Basic +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- General +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- +- 0 +- 0 +- +- +- +- Session Name: +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- Server +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- +- 0 +- 0 +- +- +- +- Hostname: +- +- +- +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Port: +- +- +- +- +- +- +- 1 +- +- +- 65535 +- +- +- 22 +- +- +- +- +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- Use default key +- +- +- true +- +- +- +- +- +- +- false +- +- +- &Set Authentication Key... +- +- +- +- +- +- +- +- +- +- +- +- Desktop +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- +- 0 +- 0 +- +- +- +- Platform: +- +- +- +- +- +- +- +- UNIX +- +- +- +- +- Windows +- +- +- +- +- VNC Proxy +- +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Type: +- +- +- +- +- +- +- +- KDE +- +- +- +- +- GNOME +- +- +- +- +- CDE +- +- +- +- +- XDM +- +- +- +- +- Custom +- +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Link: +- +- +- +- +- +- +- +- Modem +- +- +- +- +- ISDN +- +- +- +- +- ADSL +- +- +- +- +- WAN +- +- +- +- +- LAN +- +- +- +- +- +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- Qt::Horizontal +- +- +- +- 173 +- 20 +- +- +- +- +- +- +- +- false +- +- +- &Settings... +- +- +- +- +- +- +- +- ++ ++ ++ ++ 0 ++ 0 ++ 458 ++ 521 ++ ++ ++ + +- +- +- Geometry ++ ++ ++ 0 + +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- +- 0 +- 0 +- +- +- +- Resolution: +- +- +- +- +- +- +- +- 640x480 +- +- +- +- +- 800x600 +- +- +- +- +- 1024x768 +- +- +- +- +- Fullscreen +- +- +- +- +- Custom +- +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Compression: +- +- +- +- +- +- +- +- PNG +- +- +- +- +- JPEG +- +- ++ ++ ++ ++ 0 ++ 0 ++ 436 ++ 439 ++ ++ ++ ++ Basic ++ ++ ++ ++ 6 ++ ++ ++ 9 ++ ++ ++ ++ ++ General ++ ++ ++ ++ 6 ++ ++ ++ 9 ++ + +- +- Raw X11 +- +- +- +- +- +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- +- 0 +- 0 +- +- +- +- JPEG Quality: +- +- +- +- +- +- +- false ++ ++ ++ 6 ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Session Name: ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ Server ++ ++ ++ ++ 6 + +- +- 1 ++ ++ 9 + +- ++ ++ ++ ++ 6 ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Hostname: ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Port: ++ ++ ++ ++ ++ ++ ++ 1 ++ ++ ++ 65535 ++ ++ ++ 22 ++ ++ ++ ++ ++ ++ ++ ++ ++ 6 ++ ++ ++ 0 ++ ++ ++ ++ ++ Use default key ++ ++ ++ true ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ &Set Authentication Key... ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ Desktop ++ ++ ++ ++ 6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++ ++ ++ ++ JPEG Quality: ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ 1 ++ ++ ++ 9 ++ ++ ++ 9 ++ ++ ++ 6 ++ ++ ++ Qt::Horizontal ++ ++ ++ QSlider::TicksBelow ++ ++ ++ 1 ++ ++ ++ ++ ++ ++ ++ ++ ++ 6 ++ ++ ++ 0 ++ ++ ++ ++ ++ Use RENDER Extension ++ ++ ++ true ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Width: ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ 9999 ++ ++ ++ 800 ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Height: ++ ++ ++ ++ ++ ++ ++ false ++ ++ ++ 9999 ++ ++ ++ 600 ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ 624 ++ 496 ++ ++ ++ ++ Advanced ++ ++ ++ ++ 6 ++ ++ ++ 9 ++ ++ ++ ++ ++ Network ++ ++ ++ + 6 + +- +- Qt::Horizontal ++ ++ 9 + +- +- QSlider::TicksBelow ++ ++ ++ ++ Use SSH Tunneling ++ ++ ++ true ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ Cache ++ ++ ++ ++ 6 + +- +- 1 ++ ++ 9 + +- +- +- +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- Use RENDER Extension +- +- +- true +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Width: +- +- +- +- +- +- +- false +- +- +- 9999 +- +- +- 800 +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Height: +- +- +- +- +- +- +- false +- +- +- 9999 +- +- +- 600 +- +- +- +- +- +- +- +- +- +- +- +- +- Advanced +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- Network +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- Use SSH Tunneling +- +- +- true +- +- +- +- +- +- +- +- +- +- Cache +- +- +- +- 6 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- 9 +- +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- +- 0 +- 0 +- +- +- +- Memory: +- +- +- +- +- +- +- 128 +- +- +- 8 +- +- +- +- +- +- +- MB +- +- +- +- +- +- +- +- 0 +- 0 +- +- +- +- Disk: +- +- +- +- +- +- +- 128 +- +- +- 32 +- +- +- +- +- +- +- MB +- +- +- +- +- +- ++ ++ ++ ++ 6 ++ ++ ++ 0 ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Memory: ++ ++ ++ ++ ++ ++ ++ 128 ++ ++ ++ 8 ++ ++ ++ ++ ++ ++ ++ MB ++ ++ ++ ++ ++ ++ ++ ++ 0 ++ 0 ++ ++ ++ ++ Disk: ++ ++ ++ ++ ++ ++ ++ 128 ++ ++ ++ 32 ++ ++ ++ ++ ++ ++ ++ MB ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ Qt::Vertical ++ ++ ++ ++ 20 ++ 40 ++ ++ ++ ++ ++ ++ + + + +- +- +- Qt::Vertical ++ ++ ++ 6 + +- +- +- 20 +- 40 +- ++ ++ 0 + +- ++ ++ ++ ++ &Cancel ++ ++ ++ ++ ++ ++ ++ Qt::Horizontal ++ ++ ++ ++ 40 ++ 20 ++ ++ ++ ++ ++ ++ ++ ++ &OK ++ ++ ++ false ++ ++ ++ true ++ ++ ++ ++ ++ ++ ++ &Apply ++ ++ ++ false ++ ++ ++ ++ + + + + + +- +- +- +- 6 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- 0 +- +- +- +- +- &Cancel +- +- +- +- +- +- +- Qt::Horizontal +- +- +- +- 40 +- 20 +- +- +- +- +- +- +- +- &OK +- +- +- false +- +- +- true +- +- +- +- +- +- +- &Apply +- +- +- false +- +- +- +- +- + + + diff --git a/packages/qtnx/qtnx_0.9.bb b/packages/qtnx/qtnx_0.9.bb new file mode 100644 index 0000000..d0ed565 --- /dev/null +++ b/packages/qtnx/qtnx_0.9.bb @@ -0,0 +1,34 @@ +DESCRIPTION = "This a the freesource nx client, build with qt" +HOMEPAGE = "http://freenx.berlios.de/" +SECTION = "libs" +LICENSE = "GPL" +PR = "r0" + +DEPENDS = "libnxcl" + +SRC_URI = "http://download.berlios.de/freenx/freenx-client-${PV}.tar.bz2 \ + file://pro.patch;patch=1 \ + file://id-path.patch;patch=1 \ + file://scroll.patch;patch=1 \ + " + +S = "${WORKDIR}/freenx-client-${PV}/qtnx" + +inherit qtopia4core + + +FILES_${PN} += ${datadir}/id.key + +do_configure_prepend () { + + rm ${S}/qtnxwin32.pro + +} + +do_install () { + install -d ${D}${bindir}/ + install -s -m 0755 qtnx ${D}${bindir}/ + install -d ${D}${datadir}/ + install -m 0644 id.key ${D}${datadir}/ +} + -- 2.7.4