rsyslog: move systemd support to meta-systemd

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller 2012-06-10 21:46:58 +00:00 committed by Koen Kooi
parent d7639a2ae1
commit fca1dffca7
2 changed files with 15 additions and 5 deletions

View File

@ -1,19 +1,19 @@
DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
DEPENDS = "zlib systemd"
DEPENDS = "zlib"
HOMEPAGE = "http://www.rsyslog.com/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
INC_PR = "r4"
INC_PR = "r5"
SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
file://rsyslog.conf"
inherit autotools
inherit autotools systemd
SYSTEMD_UNITDIR ??= "no"
SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE = "${PN}.service"
EXTRA_OECONF = "--with-systemdsystemunitdir=${SYSTEMD_UNITDIR}"
do_install_append() {
install -d ${D}/${sysconfdir}/${PN}

View File

@ -0,0 +1,10 @@
inherit systemd
PRINC := "${@int(PRINC) + 1}"
DEPENDS += "systemd"
SYSTEMD_UNITDIR = "${systemd_unitdir}/system"
SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE = "${PN}.service"