Return-Path: Received: from mail-yh0-f46.google.com (mail-yh0-f46.google.com [209.85.213.46]) by mail.openembedded.org (Postfix) with ESMTP id AED246C73B for ; Wed, 20 Nov 2013 03:23:05 +0000 (UTC) Received: by mail-yh0-f46.google.com with SMTP id l109so973818yhq.19 for ; Tue, 19 Nov 2013 19:23:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qWn3dWTwmR0YWaG0wptvYmw6ZcaqcOak1D/UN2K9mHk=; b=HnwRsbb26XDRmZZHU/Fe+AY6FN3qzV2t33Sk7rylF4SRMDz16V712JBmdo02wzxJ3H zPhhm7wPBOxmjbrcAJ01Dj0EXL6MazcYYAaikIIO2agBTVGqC+nNN+m6YgAQa/UqW6vT NCg/dn3H2lF2nY/GXLdbuYdxD/srRl8PGye/pbVTh/a3NBigM4Vof56FnM0B8WhTKUQD SM02oZsKMc3uYAK1zYBkeh60vJefm5wd28xfcxhaNOUZaXzu0COVI6Ov6criOAPUeEqh nonYSl5/6+S/Dz/qY+8cw8PXT2EDUWkQ+D/7emKP2+xS6hMJQFBPcOb1sYXGe/f5eWwz NQbw== X-Gm-Message-State: ALoCoQmsc9iJqfgDgW1ExuvWY/QPv6/jsXsuX3BsPooxUTKDir+UJUne1tzMFZ+WGiEgnBDa9Ozv X-Received: by 10.236.176.67 with SMTP id a43mr26303151yhm.68.1384917787275; Tue, 19 Nov 2013 19:23:07 -0800 (PST) Received: from htpc.lan (c-69-180-64-152.hsd1.fl.comcast.net. [69.180.64.152]) by mx.google.com with ESMTPSA id u52sm39769611yhg.5.2013.11.19.19.23.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 19:23:06 -0800 (PST) From: Dan McDougall To: openembedded-devel@lists.openembedded.org Date: Wed, 20 Nov 2013 03:22:48 +0000 Message-Id: <1384917768-28022-1-git-send-email-daniel.mcdougall@liftoffsoftware.com> X-Mailer: git-send-email 1.8.1.2 Subject: [meta-oe][PATCH] gateone: Updated to version 1.2 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 03:23:06 -0000 This new version of Gate One uses a new configuration file format which means the old server.conf is gone. It now stores configuration files in /etc/gateone/conf.d. The /opt/gateone directory is also gone and instead the package installs like a regular Python module in site-packages. SSL certificates/keys are stored in /etc/gateone/ssl/. The new version requires python-tornado 3.1.1 (which was submitted earlier today) and the python-futures package (which was also submitted today). An 80oe.conf file has been added specific to OpenEmbedded that replaces the old pre-configured server.conf functionality. The old patch that removes the init script checks has been deprecated by the use of the --skip_init_scripts option which is now being passed to setup.py. Lastly, Gate One 1.2 is about twice as fast (benchmarked) as Gate One 1.1 on the Beaglebone platform. Signed-off-by: Dan McDougall --- ...move-init-check-it-looks-outside-the-sysr.patch | 38 ---------------------- .../recipes-connectivity/gateone/gateone/80oe.conf | 23 +++++++++++++ .../gateone/gateone/server.conf | 5 --- .../recipes-connectivity/gateone/gateone_git.bb | 32 ++++++++++-------- .../gateone/gateone/gateone.service | 2 +- 5 files changed, 43 insertions(+), 57 deletions(-) delete mode 100644 meta-oe/recipes-connectivity/gateone/gateone/0001-setup.py-remove-init-check-it-looks-outside-the-sysr.patch create mode 100644 meta-oe/recipes-connectivity/gateone/gateone/80oe.conf delete mode 100644 meta-oe/recipes-connectivity/gateone/gateone/server.conf diff --git a/meta-oe/recipes-connectivity/gateone/gateone/0001-setup.py-remove-init-check-it-looks-outside-the-sysr.patch b/meta-oe/recipes-connectivity/gateone/gateone/0001-setup.py-remove-init-check-it-looks-outside-the-sysr.patch deleted file mode 100644 index ef3a95b..0000000 --- a/meta-oe/recipes-connectivity/gateone/gateone/0001-setup.py-remove-init-check-it-looks-outside-the-sysr.patch +++ /dev/null @@ -1,38 +0,0 @@ -From a65ad6683688bb427efefe5e52137928c2736137 Mon Sep 17 00:00:00 2001 -From: Koen Kooi -Date: Thu, 4 Apr 2013 13:04:03 +0200 -Subject: [PATCH] setup.py: remove init check, it looks outside the sysroot - -Signed-off-by: Koen Kooi ---- - setup.py | 14 -------------- - 1 file changed, 14 deletions(-) - -diff --git a/setup.py b/setup.py -index 00c8ba1..4568679 100755 ---- a/setup.py -+++ b/setup.py -@@ -112,20 +112,6 @@ redhat_script = os.path.join(setup_dir, 'scripts/init/gateone-redhat.sh') - gentoo_script = os.path.join(setup_dir, 'scripts/init/gateone-gentoo.sh') - temp_script_path = os.path.join(setup_dir, 'build/gateone') - temp_confd_path = os.path.join(setup_dir, 'build/gateone') --if os.path.exists('/etc/debian_version'): -- shutil.copy(debian_script, temp_script_path) --elif os.path.exists('/etc/redhat-release'): -- shutil.copy(redhat_script, temp_script_path) --elif os.path.exists('/etc/gentoo-release'): -- shutil.copy(gentoo_script, temp_script_path) -- conf_file = [('/etc/conf.d', [ -- os.path.join(setup_dir, 'scripts/conf/gateone') -- ])] -- --if os.path.exists(temp_script_path): -- init_script = [('/etc/init.d', [ -- temp_script_path -- ])] - - # Put it all together - data_files = ( --- -1.8.1.4 - diff --git a/meta-oe/recipes-connectivity/gateone/gateone/80oe.conf b/meta-oe/recipes-connectivity/gateone/gateone/80oe.conf new file mode 100644 index 0000000..cde98bc --- /dev/null +++ b/meta-oe/recipes-connectivity/gateone/gateone/80oe.conf @@ -0,0 +1,23 @@ +// Some custom Gate One settings for OpenEmbedded +{ + "*": { + "gateone": { // These settings apply to all of Gate One + "log_file_max_size": 5242880, // 5 megabyte logs for OE by default (default would normally be 100Mb) + "log_file_num_backups": 2, // Default is normally 10 + "origins": ["*"], // Every device has a unique origin + "logging": "info", + "pid_file": "/var/run/gateone.pid", + "session_dir": "/tmp/gateone", + "user_dir": "/var/lib/gateone/users" + }, + "terminal": { + // Disabling session logging for embedded devices is a good idea (limited/slow storage) + "session_logging": false, + "syslog_session_logging": false +// "commands": { +// // For some reason this doesn't work (never asks for the password) +// "login": "setsid /bin/login" // Normally this would emulate logging into the host console +// } + } + } +} diff --git a/meta-oe/recipes-connectivity/gateone/gateone/server.conf b/meta-oe/recipes-connectivity/gateone/gateone/server.conf deleted file mode 100644 index 988b0d0..0000000 --- a/meta-oe/recipes-connectivity/gateone/gateone/server.conf +++ /dev/null @@ -1,5 +0,0 @@ -session_logging = False -origins = "*" -command = "/var/lib/gateone/plugins/ssh/scripts/ssh_connect.py -S '/tmp/gateone/%SESSION%/%SHORT_SOCKET%' --sshfp -a '-oUserKnownHostsFile=%USERDIR%/%USER%/ssh/known_hosts'" -log_file_prefix = "/var/log/gateone.log" - diff --git a/meta-oe/recipes-connectivity/gateone/gateone_git.bb b/meta-oe/recipes-connectivity/gateone/gateone_git.bb index c5586b5..9c41a3b 100644 --- a/meta-oe/recipes-connectivity/gateone/gateone_git.bb +++ b/meta-oe/recipes-connectivity/gateone/gateone_git.bb @@ -1,40 +1,46 @@ DESCRIPTION = "HTML5 (plugin-free) web-based terminal emulator and SSH client" LICENSE = "AGPLv3" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ee5b168fc7de89a0cadc49e27830aa2c" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=834cbc6995db88433db17cdf8953a428" +HOMEPAGE = "http://liftoffsoftware.com/Products/GateOne" -PR = "r8" +PR = "r1" -PV = "1.1" -SRCREV = "ea5db3dcb3bbbe445ae6d1a5611c1f8d547c57b9" +PV = "1.2" +SRCREV = "1528d324088fc1c180b7fdf50f5b5c1af057eef6" SRC_URI = "git://github.com/liftoff/GateOne.git \ file://gateone-avahi.service \ - file://server.conf \ + file://80oe.conf \ " S = "${WORKDIR}/git" -inherit distutils allarch +inherit distutils +export prefix = "${localstatedir}" -export prefix = "${localstatedir}/lib" +DISTUTILS_INSTALL_ARGS = "--root=${D} \ + --prefix=${prefix} \ + --install-lib=${PYTHON_SITEPACKAGES_DIR} \ + --install-data=${PYTHON_SITEPACKAGES_DIR} \ + --install-scripts=${bindir} \ + --skip_init_scripts" do_install_append() { - install -d ${D}${localstatedir}/log/${BPN} - install -m 0755 -d ${D}${sysconfdir}/avahi/services/ install -m 0644 ${WORKDIR}/gateone-avahi.service ${D}${sysconfdir}/avahi/services/ - install -m 0644 ${WORKDIR}/server.conf ${D}/var/lib/gateone/server.conf + install -m 0755 -d ${D}${sysconfdir}/gateone/conf.d/ + install -m 0644 ${WORKDIR}/80oe.conf ${D}${sysconfdir}/gateone/conf.d/80oe.conf } -FILES_${PN} = "${localstatedir}/lib ${localstatedir}/log ${base_libdir} ${sysconfdir} ${libdir}/python*" -RDEPENDS_${PN} = "file \ - mime-support \ +FILES_${PN} = "${localstatedir}/lib ${bindir} ${base_libdir} ${sysconfdir} ${libdir}/python*" +RDEPENDS_${PN} = "mime-support \ openssh-ssh \ python-compression \ python-crypt \ python-datetime \ python-email \ python-fcntl \ + python-futures \ python-html \ python-imaging \ python-io \ diff --git a/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service b/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service index 7ff6002..7b14d3e 100644 --- a/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service +++ b/meta-systemd/meta-oe/recipes-connectivity/gateone/gateone/gateone.service @@ -4,7 +4,7 @@ ConditionPathExists=|/var/lib/gateone [Service] WorkingDirectory=/var/lib/gateone -ExecStart=/usr/bin/python gateone.py +ExecStart=/usr/bin/python /usr/bin/gateone [Install] WantedBy=multi-user.target -- 1.8.1.2