diff options
| -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/" | |||
| 4 | LICENSE = "GPLv3" | 4 | LICENSE = "GPLv3" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" |
| 6 | 6 | ||
| 7 | INC_PR = "r1" | 7 | INC_PR = "r2" |
| 8 | 8 | ||
| 9 | SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ | 9 | SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ |
| 10 | file://rsyslog.conf" | 10 | file://rsyslog.conf" |
| 11 | 11 | ||
| 12 | 12 | ||
| 13 | inherit autotools | 13 | inherit autotools systemd |
| 14 | |||
| 15 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
| 16 | SYSTEMD_SERVICE = "${PN}.service" | ||
| 14 | 17 | ||
| 15 | do_install_append() { | 18 | do_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 | ||
| 23 | PACKAGES =+ "${PN}-systemd" | ||
| 20 | 24 | ||
| 21 | pkg_postinst_${PN} () { | ||
| 22 | if test "x$D" != "x"; then | ||
| 23 | exit 1 | ||
| 24 | fi | ||
| 25 | systemctl enable rsyslog.service | ||
| 26 | } | ||
| 27 | |||
| 28 | pkg_prerm_${PN} () { | ||
| 29 | systemctl disable rsyslog.service | ||
| 30 | } | ||
| 31 | |||
| 32 | RRECOMMENDS_${PN} += "systemd" | ||
| 33 | CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" | 25 | CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" |
| 34 | FILES_${PN} += "${base_libdir}/systemd" | ||
| 35 | 26 | ||
| 27 | FILES_${PN}-systemd += "${base_libdir}/systemd" | ||
| 28 | RDEPENDS_${PN}-systemd += "${PN}" | ||
