flock: enable alternatives support
Fixes FS#1510 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
		@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 | 
			
		||||
 | 
			
		||||
PKG_NAME:=util-linux
 | 
			
		||||
PKG_VERSION:=2.32
 | 
			
		||||
PKG_RELEASE:=1
 | 
			
		||||
PKG_RELEASE:=2
 | 
			
		||||
 | 
			
		||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 | 
			
		||||
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.32
 | 
			
		||||
@@ -198,6 +198,7 @@ endef
 | 
			
		||||
define Package/flock
 | 
			
		||||
$(call Package/util-linux/Default)
 | 
			
		||||
  TITLE:=manage locks from shell scripts
 | 
			
		||||
  ALTERNATIVES:=200:/usr/bin/flock:/usr/bin/util-linux-flock
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Package/flock/description
 | 
			
		||||
@@ -591,7 +592,7 @@ endef
 | 
			
		||||
 | 
			
		||||
define Package/flock/install
 | 
			
		||||
	$(INSTALL_DIR) $(1)/usr/bin
 | 
			
		||||
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/
 | 
			
		||||
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
define Package/fstrim/install
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user