diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-13 14:55:46 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-15 16:22:05 +0200 |
commit | 2db07ef244ef4ae249e954bcda93f83052bb96a0 (patch) | |
tree | 229c34146a64ce330b1c0701b8ed4d5cabfab410 /meta-oe/recipes-extended/rsyslog | |
parent | 5ba9463567bc2d7d52ec5c04105c79c18bdf981e (diff) | |
download | meta-openembedded-2db07ef244ef4ae249e954bcda93f83052bb96a0.tar.gz |
rsyslog: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog')
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog.inc | 14 |
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 @@ | |||
1 | DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd" | 1 | DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd" |
2 | DEPENDS = "zlib" | 2 | DEPENDS = "zlib" |
3 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | ||
3 | HOMEPAGE = "http://www.rsyslog.com/" | 4 | HOMEPAGE = "http://www.rsyslog.com/" |
4 | LICENSE = "GPLv3" | 5 | LICENSE = "GPLv3" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" |
6 | 7 | ||
7 | INC_PR = "r5" | 8 | INC_PR = "r8" |
8 | 9 | ||
9 | SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ | 10 | SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ |
10 | file://rsyslog.conf" | 11 | file://rsyslog.conf" |
11 | 12 | ||
12 | inherit autotools | 13 | inherit autotools systemd |
13 | 14 | ||
14 | SYSTEMD_UNITDIR ??= "no" | 15 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" |
15 | |||
16 | EXTRA_OECONF = "--with-systemdsystemunitdir=${SYSTEMD_UNITDIR}" | ||
17 | 16 | ||
18 | do_install_append() { | 17 | do_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 | ||
23 | CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" | 22 | CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" |
23 | |||
24 | RPROVIDES_${PN} += "${PN}-systemd" | ||
25 | RREPLACES_${PN} += "${PN}-systemd" | ||
26 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
27 | SYSTEMD_SERVICE_${PN} = "${PN}.service" | ||