mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
rsyslog: move systemd support to rsyslog-systemd
This makes the package consistent with others supporting systemd and also cleans up the recipe using the systemd.bbclass. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
committed by
Koen Kooi
parent
9c517424df
commit
cb372a589a
@@ -4,32 +4,25 @@ HOMEPAGE = "http://www.rsyslog.com/"
|
|||||||
LICENSE = "GPLv3"
|
LICENSE = "GPLv3"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
|
||||||
|
|
||||||
INC_PR = "r1"
|
INC_PR = "r2"
|
||||||
|
|
||||||
SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
|
SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
|
||||||
file://rsyslog.conf"
|
file://rsyslog.conf"
|
||||||
|
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools systemd
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE = "${PN}.service"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}/${sysconfdir}/${PN}
|
install -d ${D}/${sysconfdir}/${PN}
|
||||||
install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
|
install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PACKAGES =+ "${PN}-systemd"
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
|
||||||
if test "x$D" != "x"; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
systemctl enable rsyslog.service
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_prerm_${PN} () {
|
|
||||||
systemctl disable rsyslog.service
|
|
||||||
}
|
|
||||||
|
|
||||||
RRECOMMENDS_${PN} += "systemd"
|
|
||||||
CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
|
CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
|
||||||
FILES_${PN} += "${base_libdir}/systemd"
|
|
||||||
|
|
||||||
|
FILES_${PN}-systemd += "${base_libdir}/systemd"
|
||||||
|
RDEPENDS_${PN}-systemd += "${PN}"
|
||||||
|
|||||||
Reference in New Issue
Block a user