diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-13 14:45:03 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-15 16:22:05 +0200 |
commit | 1e29c4586eaf7af68ec8ea4276114cc6aec05a11 (patch) | |
tree | 44b49eb9cc375c65fbfeb46b7ff732ec858972eb /meta-oe | |
parent | fd84ec341f3224e1f79f185588f2cd844f464f86 (diff) | |
download | meta-openembedded-1e29c4586eaf7af68ec8ea4276114cc6aec05a11.tar.gz |
gateone: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-connectivity/gateone/gateone/gateone.service | 10 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/gateone/gateone_git.bb | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/gateone/gateone/gateone.service b/meta-oe/recipes-connectivity/gateone/gateone/gateone.service new file mode 100644 index 0000000000..7ff60020a0 --- /dev/null +++ b/meta-oe/recipes-connectivity/gateone/gateone/gateone.service @@ -0,0 +1,10 @@ +[Unit] +Description=GateOne daemon +ConditionPathExists=|/var/lib/gateone + +[Service] +WorkingDirectory=/var/lib/gateone +ExecStart=/usr/bin/python gateone.py + +[Install] +WantedBy=multi-user.target diff --git a/meta-oe/recipes-connectivity/gateone/gateone_git.bb b/meta-oe/recipes-connectivity/gateone/gateone_git.bb index e9c182da53..3552009781 100644 --- a/meta-oe/recipes-connectivity/gateone/gateone_git.bb +++ b/meta-oe/recipes-connectivity/gateone/gateone_git.bb @@ -2,18 +2,19 @@ DESCRIPTION = "HTML5 (plugin-free) web-based terminal emulator and SSH client" LICENSE = "AGPLv3" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ee5b168fc7de89a0cadc49e27830aa2c" -PR = "r10" +PR = "r13" PV = "1.1" SRCREV = "ea5db3dcb3bbbe445ae6d1a5611c1f8d547c57b9" SRC_URI = "git://github.com/liftoff/GateOne.git \ file://gateone-avahi.service \ file://server.conf \ + file://gateone.service \ " S = "${WORKDIR}/git" -inherit distutils allarch python-dir +inherit distutils allarch python-dir systemd export prefix = "${localstatedir}/lib" @@ -24,6 +25,9 @@ do_install_append() { install -m 0644 ${WORKDIR}/gateone-avahi.service ${D}${sysconfdir}/avahi/services/ install -m 0644 ${WORKDIR}/server.conf ${D}/var/lib/gateone/server.conf + + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${WORKDIR}/gateone.service ${D}${systemd_unitdir}/system } FILES_${PN} = "${localstatedir}/lib ${localstatedir}/log ${localstatedir}/volatile/log ${base_libdir} ${sysconfdir} ${PYTHON_SITEPACKAGES_DIR}" @@ -57,3 +61,5 @@ RDEPENDS_${PN} = "file \ python-unixadmin \ python-xml \ " + +SYSTEMD_SERVICE_${PN} = "gateone.service" |