package/sysklogd: install syslogd to /sbin and logger to /usr/bin
authorJoachim Wiberg <troglobit@gmail.com>
Sun, 24 Jan 2021 15:34:10 +0000 (16:34 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 24 Jan 2021 16:04:22 +0000 (17:04 +0100)
Replace --exec-prefix, which applies to both sbin and bin, with the more
granular --bindir for logger and --sbindir for syslogd.  This because
BusyBox installs its syslgod in /sbin and its logger in /usr/bin.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
[yann.morin.1998@free.fr: add comment, split one-option-per-line]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/sysklogd/sysklogd.mk

index 18d30400e1c9295cd1b6066d4809116a044421d0..e68526d24cd769c355e2debd618918a349f7488a 100644 (file)
@@ -9,8 +9,12 @@ SYSKLOGD_SITE = https://github.com/troglobit/sysklogd/releases/download/v$(SYSKL
 SYSKLOGD_LICENSE = BSD-3-Clause
 SYSKLOGD_LICENSE_FILES = LICENSE
 SYSKLOGD_CPE_ID_VALID = YES
+
+# Busybox install logger in /usr/bin, and syslogd in /sbin, so install in
+# the same locations so that busybox does not install its applets in there.
 SYSKLOGD_CONF_OPTS = \
-       --exec-prefix=/ \
+       --bindir=/usr/bin \
+       --sbindir=/sbin \
        --with-suspend-time=$(BR2_PACKAGE_SYSKLOGD_REMOTE_DELAY)
 
 # Disable/Enable utilities