diff options
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog/rsyslog.inc')
-rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog.inc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog.inc b/meta-oe/recipes-extended/rsyslog/rsyslog.inc new file mode 100644 index 000000000..8af204990 --- /dev/null +++ b/meta-oe/recipes-extended/rsyslog/rsyslog.inc | |||
@@ -0,0 +1,35 @@ | |||
1 | DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd" | ||
2 | DEPENDS = "zlib systemd" | ||
3 | HOMEPAGE = "http://www.rsyslog.com/" | ||
4 | LICENSE = "GPLv3" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973" | ||
6 | |||
7 | INC_PR = "r0" | ||
8 | |||
9 | SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \ | ||
10 | file://rsyslog.conf" | ||
11 | |||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | do_install_append() { | ||
16 | install -d ${D}/${sysconfdir}/${PN} | ||
17 | install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf | ||
18 | } | ||
19 | |||
20 | |||
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_postrm_${PN} () { | ||
29 | systemctl disable rsyslog.service | ||
30 | } | ||
31 | |||
32 | RRECOMMENDS_${PN} += "systemd" | ||
33 | CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf" | ||
34 | FILES_${PN} += "${base_libdir}/systemd" | ||
35 | |||