summaryrefslogtreecommitdiff
path: root/packages/syslog-ng/syslog-ng_1.6.8.bb
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2005-08-25 09:40:49 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-25 09:40:49 +0000
commit08230069ad4b4ab6686d0467546e5f0125d54e3a (patch)
tree2ff044ba1c38f78921d60e78b5923ee33ffa4d1d /packages/syslog-ng/syslog-ng_1.6.8.bb
parent3ee0828904266168540bcc2672d20604666c4976 (diff)
parent0898ace54cb976203eefd94af7db6ef2917409f0 (diff)
merge of 1dee375784a345fa0f5a64a238267569e93342c5
and 3aec9f1e3ffb99d10a3a1025fe75aa3bcbef3e23
Diffstat (limited to 'packages/syslog-ng/syslog-ng_1.6.8.bb')
-rw-r--r--packages/syslog-ng/syslog-ng_1.6.8.bb21
1 files changed, 17 insertions, 4 deletions
diff --git a/packages/syslog-ng/syslog-ng_1.6.8.bb b/packages/syslog-ng/syslog-ng_1.6.8.bb
index a4c2fde2d2..bc41020b71 100644
--- a/packages/syslog-ng/syslog-ng_1.6.8.bb
+++ b/packages/syslog-ng/syslog-ng_1.6.8.bb
@@ -1,17 +1,30 @@
-PR = "r4"
+PR = "r7"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"
+DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol"
-SRC_URI = "http://www.balabit.com/downloads/syslog-ng/1.6/src/${PN}-${PV}.tar.gz"
+SRC_URI = "http://www.balabit.com/downloads/syslog-ng/1.6/src/${PN}-${PV}.tar.gz \
+ file://initscript"
S = "${WORKDIR}/${PN}-${PV}"
-inherit autotools
+inherit autotools update-rc.d
EXTRA_OECONF = "--with-libol=${STAGING_BINDIR}/"
CONFFILES_${PN} = "${sysconfdir}/${PN}/syslog-ng.conf"
+INITSCRIPT_NAME = "syslog-ng"
+INITSCRIPT_PARAMS = "defaults 05"
do_install_append() {
install -d ${D}/${sysconfdir}/${PN}
install ${S}/doc/syslog-ng.conf.sample ${D}${sysconfdir}/${PN}/syslog-ng.conf
-
+ install -d ${D}/${sysconfdir}/init.d
+ install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
+}
+
+pkg_postinst() {
+ update-rc.d -f syslog remove
+}
+
+pkg_postrm() {
+ update-rc.d syslog add 5
}