aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog/rsyslog.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-06-17 17:12:49 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-06-17 19:45:58 +0200
commitc85efd2281af4556854107768d7583a8208b6647 (patch)
treebc47cf9716483942de06cff762b7a4bc2f52207f /meta-oe/recipes-extended/rsyslog/rsyslog.inc
parentf9c4fd0b31a28c5a79bf00d2ac5ff5e9f872ecd2 (diff)
downloadmeta-openembedded-c85efd2281af4556854107768d7583a8208b6647.tar.gz
rsyslog: add 5.8.0
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
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 0000000000..8af2049907
--- /dev/null
+++ b/meta-oe/recipes-extended/rsyslog/rsyslog.inc
@@ -0,0 +1,35 @@
+DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
+DEPENDS = "zlib systemd"
+HOMEPAGE = "http://www.rsyslog.com/"
+LICENSE = "GPLv3"
+LIC_FILES_CHKSUM = "file://COPYING;md5=51d9635e646fb75e1b74c074f788e973"
+
+INC_PR = "r0"
+
+SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
+ file://rsyslog.conf"
+
+
+inherit autotools
+
+do_install_append() {
+ install -d ${D}/${sysconfdir}/${PN}
+ install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
+}
+
+
+pkg_postinst_${PN} () {
+ if test "x$D" != "x"; then
+ exit 1
+ fi
+ systemctl enable rsyslog.service
+}
+
+pkg_postrm_${PN} () {
+ systemctl disable rsyslog.service
+}
+
+RRECOMMENDS_${PN} += "systemd"
+CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
+FILES_${PN} += "${base_libdir}/systemd"
+