ecj-initial: convert to new staging system
[openembedded.git] / recipes / syslog-ng / syslog-ng_2.0.5.bb
blobfe32761af038e6fd881ca50dfb01fe8ac018f9b3
1 DESCRIPTION = "Alternative system logger daemon"
2 DEPENDS = "libol flex eventlog glib-2.0"
3 PR = "r2"
5 SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/2.0/src/${P}.tar.gz \
6 file://syslog-ng.conf \
7 file://initscript"
9 S = "${WORKDIR}/${PN}-${PV}"
11 inherit autotools update-rc.d
13 EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking"
15 do_install_append() {
16 install -d ${D}/${sysconfdir}/${PN}
17 install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/syslog-ng.conf
18 install -d ${D}/${sysconfdir}/init.d
19 install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
22 pkg_postinst() {
23 update-rc.d -f syslog remove
26 pkg_postrm() {
27 update-rc.d syslog add 5
30 CONFFILES_${PN} = "${sysconfdir}/syslog-ng.conf"
32 INITSCRIPT_NAME = "syslog-ng"
33 #INITSCRIPT_PARAMS = "defaults 05"
34 INITSCRIPT_PARAMS = "remove"
36 SRC_URI[md5sum] = "c161eefc450fabc246c1a10997c6c6a5"
37 SRC_URI[sha256sum] = "34862f87d9d404ad4874d95ee871334f5bc2acad65420f672ad2ee286ab660a1"