mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/busybox: invert dependency with syslog-ng
In so doing, we must now ensure that busybox does not overwrite the startup script already installed by syslog-ng. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
a4b0e1801c
commit
3fd118aac0
@ -22,6 +22,7 @@ BUSYBOX_LDFLAGS = \
|
|||||||
|
|
||||||
# Packages that provide commands that may also be busybox applets:
|
# Packages that provide commands that may also be busybox applets:
|
||||||
BUSYBOX_DEPENDENCIES = \
|
BUSYBOX_DEPENDENCIES = \
|
||||||
|
$(if $(BR2_PACKAGE_SYSLOG_NG),syslog-ng) \
|
||||||
$(if $(BR2_PACKAGE_SYSTEMD),systemd) \
|
$(if $(BR2_PACKAGE_SYSTEMD),systemd) \
|
||||||
$(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \
|
$(if $(BR2_PACKAGE_SYSVINIT),sysvinit) \
|
||||||
$(if $(BR2_PACKAGE_TAR),tar) \
|
$(if $(BR2_PACKAGE_TAR),tar) \
|
||||||
@ -208,8 +209,11 @@ define BUSYBOX_INSTALL_INDIVIDUAL_BINARIES
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Only install our own if no other package already did.
|
||||||
define BUSYBOX_INSTALL_LOGGING_SCRIPT
|
define BUSYBOX_INSTALL_LOGGING_SCRIPT
|
||||||
if grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \
|
if grep -q CONFIG_SYSLOGD=y $(@D)/.config && \
|
||||||
|
[ ! -e $(TARGET_DIR)/etc/init.d/S01logging ]; \
|
||||||
|
then \
|
||||||
$(INSTALL) -m 0755 -D package/busybox/S01logging \
|
$(INSTALL) -m 0755 -D package/busybox/S01logging \
|
||||||
$(TARGET_DIR)/etc/init.d/S01logging; \
|
$(TARGET_DIR)/etc/init.d/S01logging; \
|
||||||
fi
|
fi
|
||||||
|
@ -17,11 +17,6 @@ SYSLOG_NG_CONF_ENV = LIBS=-lrt
|
|||||||
SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
|
SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
|
||||||
--disable-java --disable-java-modules --disable-mongodb
|
--disable-java --disable-java-modules --disable-mongodb
|
||||||
|
|
||||||
# We override busybox's S01logging init script
|
|
||||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
||||||
SYSLOG_NG_DEPENDENCIES += busybox
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
||||||
SYSLOG_NG_DEPENDENCIES += geoip
|
SYSLOG_NG_DEPENDENCIES += geoip
|
||||||
SYSLOG_NG_CONF_OPTS += --enable-geoip
|
SYSLOG_NG_CONF_OPTS += --enable-geoip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user