syslog-ng: Move out of nonworking
PATCH 1/4 syslog-ng: Move out of nonworking
From: Richard Tollerton <[email protected]>
---
meta-oe/recipes-support/{nonworking => }/syslog-ng/files/initscript | 0
meta-oe/recipes-support/{nonworking => }/syslog-ng/files/syslog-ng.conf | 0
meta-oe/recipes-support/{nonworking => }/syslog-ng/syslog-ng.inc | 0
meta-oe/recipes-support/{nonworking => }/syslog-ng/syslog-ng_3.2.5.bb | 0
4 files changed, 0 insertions(+), 0 deletions(-)
rename meta-oe/recipes-support/{nonworking => }/syslog-ng/files/initscript (100%)
rename meta-oe/recipes-support/{nonworking => }/syslog-ng/files/syslog-ng.conf (100%)
rename meta-oe/recipes-support/{nonworking => }/syslog-ng/syslog-ng.inc (100%)
rename meta-oe/recipes-support/{nonworking => }/syslog-ng/syslog-ng_3.2.5.bb (100%)meta-oe/recipes-support/syslog-ng/files/initscript renamed from meta-oe/recipes-support/nonworking/syslog-ng/files/initscript +0 -0
meta-oe/recipes-support/syslog-ng/files/syslog-ng.conf renamed from meta-oe/recipes-support/nonworking/syslog-ng/files/syslog-ng.conf +0 -0
meta-oe/recipes-support/syslog-ng/syslog-ng.inc renamed from meta-oe/recipes-support/nonworking/syslog-ng/syslog-ng.inc +0 -0
meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb renamed from meta-oe/recipes-support/nonworking/syslog-ng/syslog-ng_3.2.5.bb +0 -0
Signature · 1 line
2.0.2
PATCH 2/4 syslog-ng: package fixes, install tweaks
From: Richard Tollerton <[email protected]>
Package build fixes:
- Skip dev-so insane checks, since syslog-ng installs /usr/lib/syslog-ng/libafsocket.so
- Remove ${SOLIBSDEV} from syslog-ng-dev
- Add "${libdir}/${BPN}/*" to base package
Other changes:
- Start initscript at level 19 (was 20); allows it to start before busybox-cron
- Force /usr/include/scl to be owned by root
- Fix license versions (GPL -> GPLv2 and LGPL -> LGPLv2.1)
--- meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 8 ++++---- meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-)
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +4 -4
@@ -1,13 +1,13 @@ DESCRIPTION = "Alternative system logger daemon" DEPENDS = "libol flex eventlog glib-2.0" -LICENSE = "GPL LGPL" +LICENSE = "GPLv2 LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=7ec1bcc46f28b11f4722e20d9b7dd4d5" # syslog initscript is handled explicitly because order of # update-rc.d and update-alternatives is important RDEPENDS_${PN} += " ${@base_conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "update-rc.d", d)}" -INC_PR = "r12" +INC_PR = "r13" inherit autotools systemd
@@ -51,7 +51,7 @@ FILES_${PN} = "${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${base_libdir}/*${SOLIBS} \ ${datadir}/${BPN} ${libdir}/${BPN}/*${SOLIBS} \ ${datadir}/include/scl/ ${datadir}/xsd" -FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la ${libdir}/${BPN}/*${SOLIBSDEV}" +FILES_${PN}-dev += "${libdir}/${BPN}/lib*.la" CONFFILES_${PN} = "${sysconfdir}/${PN}.conf ${sysconfdir}/scl.conf ${sysconfdir}/scl-modules.conf" RPROVIDES_${PN} += "${PN}-systemd"
@@ -71,7 +71,7 @@ pkg_postinst_${PN} () { # remove all rc.d-links potentially created from alternative # syslog packages before creating new ones update-rc.d $OPT -f syslog remove - update-rc.d $OPT syslog start 20 2 3 4 5 . stop 90 0 1 6 . + update-rc.d $OPT syslog start 19 2 3 4 5 . stop 90 0 1 6 . } pkg_prerm_${PN} () {
meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb +7 -0
@@ -6,5 +6,12 @@ SRC_URI += " \ file://initscript \ " +FILES_${PN} += "${libdir}/${BPN}/*" +INSANE_SKIP_${PN} = "dev-so" + +do_install_append() { + chown -R root:root ${D}/${datadir}/include/scl/ +} + SRC_URI[md5sum] = "60737452ce898f9dc7170dfdc9bfd732" SRC_URI[sha256sum] = "ffc9f3a0ebea836c1c737b1ff49efe731d885af1d8aacf9eca79d9144eeefa89"
Signature · 1 line
2.0.2
PATCH 3/4 syslog-ng: Fix errant ulimit settings
In reply to Ben SheltonFrom: Richard Tollerton <[email protected]>
Having a "minimum" of 4096 fds is kind of silly on some (most?) targets.
--- .../recipes-support/syslog-ng/files/fd-limit.patch | 36 ++++++++++++++++++++++ .../recipes-support/syslog-ng/syslog-ng_3.2.5.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-support/syslog-ng/files/fd-limit.patch
meta-oe/recipes-support/syslog-ng/files/fd-limit.patch new file +36 -0
@@ -0,0 +1,36 @@ +diff --git ./lib/gprocess.c-orig ./lib/gprocess.c +index 3729ecb..6abef20 100644 +--- ./lib/gprocess.c-orig ++++ ./lib/gprocess.c +@@ -604,23 +604,6 @@ g_process_detach_tty(void) + } + + /** +- * g_process_change_limits: +- * +- * Set fd limit. +- * +- **/ +-static void +-g_process_change_limits(void) +-{ +- struct rlimit limit; +- +- limit.rlim_cur = limit.rlim_max = process_opts.fd_limit_min; +- +- if (setrlimit(RLIMIT_NOFILE, &limit) < 0) +- g_process_message("Error setting file number limit; limit='%d'; error='%s'", process_opts.fd_limit_min, g_strerror(errno)); +-} +- +-/** + * g_process_detach_stdio: + * + * Use /dev/null as input/output/error. This function is idempotent, can be +@@ -1253,7 +1236,6 @@ g_process_start(void) + pid_t pid; + + g_process_detach_tty(); +- g_process_change_limits(); + g_process_resolve_names(); + + if (process_opts.mode == G_PM_BACKGROUND)
meta-oe/recipes-support/syslog-ng/syslog-ng_3.2.5.bb +1 -0
@@ -4,6 +4,7 @@ PR = "${INC_PR}.1" SRC_URI += " \ file://syslog-ng.conf \ file://initscript \ + file://fd-limit.patch \ " FILES_${PN} += "${libdir}/${BPN}/*"
Signature · 1 line
2.0.2
PATCH 4/4 syslog-ng: Improved initscript VERBOSE handling.
In reply to Ben SheltonFrom: Richard Tollerton <[email protected]>
The messages echoed when starting and stopping syslog-ng are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled.
--- meta-oe/recipes-support/syslog-ng/files/initscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-support/syslog-ng/files/initscript +4 -4
@@ -11,14 +11,14 @@ test -x "$syslog_ng" || exit 0 case "$1" in start) - echo -n "Starting syslog-ng:" + [ "${VERBOSE}" != "no" ] && echo -n "Starting syslog-ng:" start-stop-daemon --start --quiet --exec $syslog_ng - echo "." + [ "${VERBOSE}" != "no" ] && echo "." ;; stop) - echo -n "Stopping syslog-ng:" + [ "${VERBOSE}" != "no" ] && echo -n "Stopping syslog-ng:" start-stop-daemon --stop --quiet --pidfile /var/run/syslog-ng.pid - echo "." + [ "${VERBOSE}" != "no" ] && echo "." ;; reload|force-reload) start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ng
Signature · 1 line
2.0.2
Re: [meta-oe][PATCH 4/4] syslog-ng: Improved initscript VERBOSE handling.
Quoted 5 lines · Ben Shelton
From: Richard Tollerton <[email protected]>
The messages echoed when starting and stopping syslog-ng are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled.
Can you please try to integrate fixes sent by RP?
Or add it as last commit in your series.
Quoted 37 lines
Signed-off-by Richard Tollerton <[email protected]>Signed-off-by Ben Shelton <[email protected]>--- meta-oe/recipes-support/syslog-ng/files/initscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)meta-oe/recipes-support/syslog-ng/files/initscript +4
-4@@ -11,14 +11,14 @@ test -x "$syslog_ng" || exit 0 case "$1" in start) - echo -n "Starting syslog-ng:" + [ "${VERBOSE}" != "no" ] && echo -n "Starting syslog-ng:" start-stop-daemon --start --quiet --exec $syslog_ng - echo "." + [ "${VERBOSE}" != "no" ] && echo "." ;; stop) - echo -n "Stopping syslog-ng:" + [ "${VERBOSE}" != "no" ] && echo -n "Stopping syslog-ng:" start-stop-daemon --stop --quiet --pidfile /var/run/syslog-ng.pid - echo "." + [ "${VERBOSE}" != "no" ] && echo "." ;; reload|force-reload) start-stop-daemon --stop --quiet --signal 1 --exec $syslog_ngSignature · 7 lines
2.0.2 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-oe][PATCH 4/4] syslog-ng: Improved initscript VERBOSE handling.
Quoted 11 lines · Martin Jansa
Quoted 5 lines · Ben Shelton
From: Richard Tollerton <[email protected]>
The messages echoed when starting and stopping syslog-ng are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled.
Can you please try to integrate fixes sent by RP?
Or add it as last commit in your series.
Oops -- didn't see the work that had already been done on syslog-ng.
I'll integrate our fixes on top of that and resubmit.
Thanks,
Ben