@@ -13,7 +13,24 @@ config BR2_PACKAGE_SYSKLOGD
https://github.com/troglobit/sysklogd/
+if BR2_PACKAGE_SYSKLOGD
+
+config BR2_PACKAGE_SYSKLOGD_LOGGER
+ bool "logger tool"
+ help
+ Generate log messages from scripts or from the command line.
+
+ This version of logger is receommended for use with sysklogd.
+ It makes use of the new syslogp() API for RFC5424 style logs,
+ e.g. MSGID, strucutred data (SD), etc.
+
+ The BusyBox, or util-linux, logger tools can also be used, but
+ are limited to RFC3164 style messages.
+
+endif
+
comment "sysklogd needs a toolchain w/ threads"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+
@@ -11,6 +11,10 @@ SYSKLOGD_LICENSE_FILES = LICENSE
SYSKLOGD_CPE_ID_VALID = YES
SYSKLOGD_CONF_OPTS = --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+# Disable/Enable utilities
+SYSKLOGD_CONF_OPTS += \
+ $(if $(BR2_PACKAGE_SYSKLOGD_LOGGER),--with-logger,--without-logger)
+
define SYSKLOGD_INSTALL_SAMPLE_CONFIG
$(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
$(TARGET_DIR)/etc/syslog.conf
Installs to /usr/bin and thus replaces the BusyBox logger if enabled. Signed-off-by: Joachim Wiberg <troglobit@gmail.com> --- package/sysklogd/Config.in | 17 +++++++++++++++++ package/sysklogd/sysklogd.mk | 4 ++++ 2 files changed, 21 insertions(+)