summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-extended/rsyslog/rsyslog.inc14
1 files changed, 9 insertions, 5 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog.inc b/meta-oe/recipes-extended/rsyslog/rsyslog.inc
index a4bd180be..dc6e51160 100644
--- a/meta-oe/recipes-extended/rsyslog/rsyslog.inc
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog.inc
@@ -1,19 +1,18 @@
1DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd" 1DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
2DEPENDS = "zlib" 2DEPENDS = "zlib"
3DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
3HOMEPAGE = "http://www.rsyslog.com/" 4HOMEPAGE = "http://www.rsyslog.com/"
4LICENSE = "GPLv3" 5LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" 6LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
6 7
7INC_PR = "r5" 8INC_PR = "r8"
8 9
9SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ 10SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
10 file://rsyslog.conf" 11 file://rsyslog.conf"
11 12
12inherit autotools 13inherit autotools systemd
13 14
14SYSTEMD_UNITDIR ??= "no" 15EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
15
16EXTRA_OECONF = "--with-systemdsystemunitdir=${SYSTEMD_UNITDIR}"
17 16
18do_install_append() { 17do_install_append() {
19 install -d ${D}/${sysconfdir}/${PN} 18 install -d ${D}/${sysconfdir}/${PN}
@@ -21,3 +20,8 @@ do_install_append() {
21} 20}
22 21
23CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" 22CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
23
24RPROVIDES_${PN} += "${PN}-systemd"
25RREPLACES_${PN} += "${PN}-systemd"
26RCONFLICTS_${PN} += "${PN}-systemd"
27SYSTEMD_SERVICE_${PN} = "${PN}.service"