1 DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
3 HOMEPAGE = "http://www.rsyslog.com/"
7 SRC_URI = "http://download.rsyslog.com/rsyslog/${PN}-${PV}.tar.gz \
15 install -d ${D}/${sysconfdir}/${PN}
16 install ${WORKDIR}/rsyslog.conf ${D}${sysconfdir}/rsyslog.conf
17 install -d ${D}/${sysconfdir}/init.d
18 install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}
21 # syslog initscript is handled explicitly because order of
22 # update-rc.d and update-alternatives is important
23 DEPENDS_append = " update-rc.d update-rc.d-native"
24 RDEPENDS_${PN}_append = " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "update-rc.d", d)}"
26 pkg_postinst_${PN} () {
27 update-alternatives --install ${sysconfdir}/init.d/syslog syslog-init syslog.${PN} 300
29 if test "x$D" != "x"; then
34 update-rc.d $OPT syslog defaults
38 if test "x$D" = "x"; then
39 if test "$1" = "upgrade" -o "$1" = "remove"; then
40 /etc/init.d/syslog stop
44 update-alternatives --remove syslog-init syslog.${PN}
48 if test "x$D" != "x"; then
53 if test "$1" = "remove" -o "$1" = "purge"; then
54 if ! test -e "/etc/init.d/syslog"; then
55 update-rc.d $OPT syslog remove
60 CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
62 INITSCRIPT_NAME = "syslog"