PATCH_LIST=" syslogd-listen-udp.diff syslogd-reliability.diff makefile-typo.diff syslogd-collect-kmsg.diff 01_redirect-dev-null-1.diff 02_klog-block-read-1.diff 03_remove-backspaces-from-kmsg-1.diff 04-disable-unix-listening.diff 05-syslogd-ipc-set-key.diff 06-logread-ipc-set-key.diff 07-syslogd-pidfile.diff 08-syslogd-fix-semop-deadlock.diff 09-syslogd-dont-die-on-signal.diff asm_page.patch makefile-echo-remove-e.diff 10-logread-newline.diff 11-force-non-blocking.diff 0012-syslogd-prepare-select-for-dealing-with-timeouts-and.patch 0013-syslogd-only-use-asynchronous-signal-delivery-for-ma.patch 0014-syslogd-check-listening-socket-error-before-setting-.patch 0015-syslogd-properly-report-error-and-die-on-socket-erro.patch 0016-syslogd-add-a-watchdog-to-kill-the-process-if-it-s-s.patch 0017-syslogd-prepare-error-handling-on-sem_down.patch 0018-syslogd-enforce-timeouts-on-the-semaphore.patch 0019-syslogd-don-t-wait-anymore-after-a-stuck-reader-is-d.patch 0020-glibc-2.28-workaround.diff rfc5424-forward.patch increase_max_log_line.diff fix-forwarded-logs.diff fix-forwarded-logs-option.diff " FILE_LIST= SRC_FETCH_PATH="http://www.busybox.net/downloads/busybox-1.1.0.tar.bz2" SRC_FETCH_METHOD="http" ##### WARNING !!! To build this package, you need to untar busybox-1.1.0 and ##### rename the directory to 'syslogd-busybox-1.1.0". function do_config { cp .flxpkg/add-ons/config.syslogd . rm -f .config sed -e "s!CROSS_COMPILER_PREFIX=.*!CROSS_COMPILER_PREFIX=\"$FLXCROSS\"!" \ -e "s!EXTRA_CFLAGS_OPTIONS=.*!EXTRA_CFLAGS_OPTIONS=\"$GCC_ARCH_CURRENT $GCC_CPU_CURRENT $GCC_OPT_FAST\"!" < config.syslogd > .config $FLXMAKE oldconfig $FLXMAKE .depend } function do_compile_only { $FLXPMAKE CC=$CC AR=$AR RANLIB=$RANLIB } function do_prepack { mkdir -p $ROOTDIR/usr/bin $ROOTDIR/sbin $ROOTDIR/sbin/init.d cp busybox $ROOTDIR/sbin/syslogd ln -s ../../sbin/syslogd $ROOTDIR/usr/bin/logread cp .flxpkg/add-ons/syslog $ROOTDIR/sbin/init.d/ mkdir -p $EXAMPLEDIR/syslog/etc/ cp .flxpkg/add-ons/config.rc $EXAMPLEDIR/syslog/etc/ set_default_perm $ROOTDIR chmod 550 $ROOTDIR/usr/bin/logread ;# needed because adm can read logs }