logger: enable alternatives support

Avoid conflict with busybox

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
This commit is contained in:
Huangbin Zhan 2020-06-10 07:11:08 +08:00 committed by Hauke Mehrtens
parent 5596452cd4
commit 67575b6410

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=util-linux PKG_NAME:=util-linux
PKG_VERSION:=2.35.1 PKG_VERSION:=2.35.1
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.35 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.35
@ -267,6 +267,7 @@ endef
define Package/logger define Package/logger
$(call Package/util-linux/Default) $(call Package/util-linux/Default)
TITLE:=a shell command interface to the syslog system log module TITLE:=a shell command interface to the syslog system log module
ALTERNATIVES:=200:/usr/bin/logger:/usr/bin/util-linux-logger
endef endef
define Package/logger/description define Package/logger/description
@ -659,7 +660,7 @@ endef
define Package/logger/install define Package/logger/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
endef endef
define Package/look/install define Package/look/install