diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-21 12:05:12 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-12-23 08:53:02 +0100 |
commit | cb372a589a24f31d2e701350b305dec70cc110e5 (patch) | |
tree | da550cef9f4ef40820f0c75f29b76bfc4ddecdda /meta-oe/recipes-extended/rsyslog | |
parent | 9c517424dfab1f65cf5e750836ee742ecf9b3ecc (diff) | |
download | meta-openembedded-cb372a589a24f31d2e701350b305dec70cc110e5.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog')
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog.inc | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog.inc b/meta-oe/recipes-extended/rsyslog/rsyslog.inc index 856d965421..ea7fa22a5d 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog.inc +++ b/meta-oe/recipes-extended/rsyslog/rsyslog.inc @@ -4,32 +4,25 @@ HOMEPAGE = "http://www.rsyslog.com/" LICENSE = "GPLv3" 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 \ file://rsyslog.conf" -inherit autotools +inherit autotools systemd + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "${PN}.service" do_install_append() { install -d ${D}/${sysconfdir}/${PN} 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" -FILES_${PN} += "${base_libdir}/systemd" +FILES_${PN}-systemd += "${base_libdir}/systemd" +RDEPENDS_${PN}-systemd += "${PN}" |