summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-21 12:05:12 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-12-23 08:53:02 +0100
commitcb372a589a24f31d2e701350b305dec70cc110e5 (patch)
treeda550cef9f4ef40820f0c75f29b76bfc4ddecdda /meta-oe/recipes-extended
parent9c517424dfab1f65cf5e750836ee742ecf9b3ecc (diff)
downloadmeta-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')
-rw-r--r--meta-oe/recipes-extended/rsyslog/rsyslog.inc23
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 856d96542..ea7fa22a5 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/"
4LICENSE = "GPLv3" 4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" 5LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
6 6
7INC_PR = "r1" 7INC_PR = "r2"
8 8
9SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ 9SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
10 file://rsyslog.conf" 10 file://rsyslog.conf"
11 11
12 12
13inherit autotools 13inherit autotools systemd
14
15SYSTEMD_PACKAGES = "${PN}-systemd"
16SYSTEMD_SERVICE = "${PN}.service"
14 17
15do_install_append() { 18do_install_append() {
16 install -d ${D}/${sysconfdir}/${PN} 19 install -d ${D}/${sysconfdir}/${PN}
17 install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf 20 install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
18} 21}
19 22
23PACKAGES =+ "${PN}-systemd"
20 24
21pkg_postinst_${PN} () {
22 if test "x$D" != "x"; then
23 exit 1
24 fi
25 systemctl enable rsyslog.service
26}
27
28pkg_prerm_${PN} () {
29 systemctl disable rsyslog.service
30}
31
32RRECOMMENDS_${PN} += "systemd"
33CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" 25CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
34FILES_${PN} += "${base_libdir}/systemd"
35 26
27FILES_${PN}-systemd += "${base_libdir}/systemd"
28RDEPENDS_${PN}-systemd += "${PN}"