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

View File

@ -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"

View File

@ -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
}