summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog/rsyslog.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/rsyslog/rsyslog.inc')
-rw-r--r--meta-oe/recipes-extended/rsyslog/rsyslog.inc35
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 @@
1DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
2DEPENDS = "zlib systemd"
3HOMEPAGE = "http://www.rsyslog.com/"
4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
6
7INC_PR = "r0"
8
9SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
10 file://rsyslog.conf"
11
12
13inherit autotools
14
15do_install_append() {
16 install -d ${D}/${sysconfdir}/${PN}
17 install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
18}
19
20
21pkg_postinst_${PN} () {
22 if test "x$D" != "x"; then
23 exit 1
24 fi
25 systemctl enable rsyslog.service
26}
27
28pkg_postrm_${PN} () {
29 systemctl disable rsyslog.service
30}
31
32RRECOMMENDS_${PN} += "systemd"
33CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
34FILES_${PN} += "${base_libdir}/systemd"
35