summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-12-05 11:32:58 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2011-12-06 11:21:10 +0100
commitaf50ba2d39e55bbf3e603353e73d19953415c267 (patch)
tree400446a10cb6b46041df733db589ffd2d385a84a /meta-oe/recipes-support/syslog-ng
parentd5b2825b5023a31e85196bb4b5b74ff6d470474b (diff)
downloadmeta-openembedded-af50ba2d39e55bbf3e603353e73d19953415c267.tar.gz
syslog-ng: upgrade to latest version from 3.2 series and rework modules.conf fix
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng')
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng.inc12
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.2.bb10
-rw-r--r--meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb10
3 files changed, 16 insertions, 16 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
index 073b6d635..c57c5abf7 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
@@ -28,17 +28,20 @@ EXTRA_OECONF = " \
28" 28"
29 29
30do_configure_prepend() { 30do_configure_prepend() {
31 eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}" 31 eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}"
32} 32}
33 33
34# rename modules.conf because it breaks update-modules
35# see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-October/035537.html
34do_install_append() { 36do_install_append() {
37 mv ${D}/${sysconfdir}/modules.conf ${D}/${sysconfdir}/scl-modules.conf
38 sed -i "s#@include 'modules.conf'#@include 'scl-modules.conf'#g" ${D}/${sysconfdir}/scl.conf
35 install -d ${D}/${sysconfdir}/${PN} 39 install -d ${D}/${sysconfdir}/${PN}
36 install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${PN}.conf 40 install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${PN}.conf
37 install -d ${D}/${sysconfdir}/init.d 41 install -d ${D}/${sysconfdir}/init.d
38 install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN} 42 install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${PN}
39} 43}
40 44
41PACKAGES =+ "${PN}-config"
42FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \ 45FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} \
43 ${sysconfdir} ${sharedstatedir} ${localstatedir} \ 46 ${sysconfdir} ${sharedstatedir} ${localstatedir} \
44 ${base_bindir}/* ${base_sbindir}/* \ 47 ${base_bindir}/* ${base_sbindir}/* \
@@ -46,10 +49,7 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS}
46 ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBS} \ 49 ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBS} \
47 ${datadir}/include/scl/ ${datadir}/xsd" 50 ${datadir}/include/scl/ ${datadir}/xsd"
48FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la ${libdir}/${BPN}/*${SOLIBSDEV}" 51FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la ${libdir}/${BPN}/*${SOLIBSDEV}"
49# moved intentionaly to ${PN}-config without RDEPENDing on it, because it breaks update-modules 52CONFFILES_${PN} = "${sysconfdir}/${PN}.conf ${sysconfdir}/scl.conf ${sysconfdir}/scl-modules.conf"
50# see http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-October/035537.html
51FILES_${PN}-config += "${syconfdir}/modules.conf"
52CONFFILES_${PN} = "${sysconfdir}/${PN}.conf"
53 53
54pkg_postinst_${PN} () { 54pkg_postinst_${PN} () {
55 /etc/init.d/syslog stop 55 /etc/init.d/syslog stop
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.2.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.2.bb
deleted file mode 100644
index c8b5ac807..000000000
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.2.bb
+++ /dev/null
@@ -1,10 +0,0 @@
1require syslog-ng.inc
2PR = "${INC_PR}.2"
3
4SRC_URI += " \
5 file://syslog-ng.conf \
6 file://initscript \
7"
8
9SRC_URI[md5sum] = "ed8ebe559d52a63fb61e3e2db566643f"
10SRC_URI[sha256sum] = "fa5abd4d99acee8fff8217061fb2407698a5bc89804d69f3ae97bffc72fcce48"
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb
new file mode 100644
index 000000000..ff1e2479e
--- /dev/null
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb
@@ -0,0 +1,10 @@
1require syslog-ng.inc
2PR = "${INC_PR}.0"
3
4SRC_URI += " \
5 file://syslog-ng.conf \
6 file://initscript \
7"
8
9SRC_URI[md5sum] = "60737452ce898f9dc7170dfdc9bfd732"
10SRC_URI[sha256sum] = "ffc9f3a0ebea836c1c737b1ff49efe731d885af1d8aacf9eca79d9144eeefa89"