gateone: move systemd support from meta-systemd back to meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2013-04-13 14:45:03 +02:00
parent fd84ec341f
commit 1e29c4586e
3 changed files with 8 additions and 18 deletions
@@ -2,18 +2,19 @@ DESCRIPTION = "HTML5 (plugin-free) web-based terminal emulator and SSH client"
LICENSE = "AGPLv3" LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ee5b168fc7de89a0cadc49e27830aa2c" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ee5b168fc7de89a0cadc49e27830aa2c"
PR = "r10" PR = "r13"
PV = "1.1" PV = "1.1"
SRCREV = "ea5db3dcb3bbbe445ae6d1a5611c1f8d547c57b9" SRCREV = "ea5db3dcb3bbbe445ae6d1a5611c1f8d547c57b9"
SRC_URI = "git://github.com/liftoff/GateOne.git \ SRC_URI = "git://github.com/liftoff/GateOne.git \
file://gateone-avahi.service \ file://gateone-avahi.service \
file://server.conf \ file://server.conf \
file://gateone.service \
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
inherit distutils allarch python-dir inherit distutils allarch python-dir systemd
export prefix = "${localstatedir}/lib" 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}/gateone-avahi.service ${D}${sysconfdir}/avahi/services/
install -m 0644 ${WORKDIR}/server.conf ${D}/var/lib/gateone/server.conf 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}" 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-unixadmin \
python-xml \ python-xml \
" "
SYSTEMD_SERVICE_${PN} = "gateone.service"
@@ -1,16 +0,0 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
PRINC := "${@int(PRINC) + 2}"
inherit systemd
SRC_URI += "file://gateone.service"
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_SERVICE_${PN} = "gateone.service"
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/gateone.service ${D}${systemd_unitdir}/system
}