blob: 856d9654214c20f81177d1d57a6b5258920be4f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 = "r1"
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_prerm_${PN} () {
systemctl disable rsyslog.service
}
RRECOMMENDS_${PN} += "systemd"
CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
FILES_${PN} += "${base_libdir}/systemd"
|