Browse Source

treewide: move binary of alternatives to libexec, rename as suggested

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
lilik-openwrt-22.03
Huangbin Zhan 4 years ago
parent
commit
75c4617bcf
5 changed files with 27 additions and 28 deletions
  1. +6
    -6
      devel/diffutils/Makefile
  2. +3
    -3
      net/bridge-utils/Makefile
  3. +6
    -7
      net/openssh/Makefile
  4. +7
    -7
      net/wget/Makefile
  5. +5
    -5
      utils/findutils/Makefile

+ 6
- 6
devel/diffutils/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=diffutils PKG_NAME:=diffutils
PKG_VERSION:=3.7 PKG_VERSION:=3.7
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/diffutils PKG_SOURCE_URL:=@GNU/diffutils
@ -31,9 +31,8 @@ define Package/diffutils
TITLE:=diffutils TITLE:=diffutils
URL:=http://www.gnu.org/software/diffutils/ URL:=http://www.gnu.org/software/diffutils/
ALTERNATIVES:=\ ALTERNATIVES:=\
200:/usr/bin/cmp:/usr/bin/gnu-cmp \
200:/usr/bin/diff:/usr/bin/gnu-diff \
200:/usr/bin/cmp:/usr/libexec/cmp-gnu \
200:/usr/bin/diff:/usr/libexec/diff-gnu
endef endef
define Package/diffutils/description define Package/diffutils/description
@ -48,8 +47,9 @@ CONFIGURE_VARS += \
define Package/diffutils/install define Package/diffutils/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3} $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3} $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/diff $(1)/usr/bin/gnu-diff
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cmp $(1)/usr/bin/gnu-cmp
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/diff $(1)/usr/libexec/diff-gnu
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cmp $(1)/usr/libexec/cmp-gnu
endef endef
$(eval $(call BuildPackage,diffutils)) $(eval $(call BuildPackage,diffutils))

+ 3
- 3
net/bridge-utils/Makefile View File

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=bridge-utils PKG_NAME:=bridge-utils
PKG_VERSION:=1.7 PKG_VERSION:=1.7
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/kernel/people/shemminger/bridge-utils PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/shemminger/bridge-utils
@ -31,7 +31,7 @@ define Package/bridge
CATEGORY:=Base system CATEGORY:=Base system
TITLE:=Ethernet bridging configuration utility TITLE:=Ethernet bridging configuration utility
URL:=http://www.linuxfromscratch.org/blfs/view/svn/basicnet/bridge-utils.html URL:=http://www.linuxfromscratch.org/blfs/view/svn/basicnet/bridge-utils.html
ALTERNATIVES:=300:/usr/sbin/brctl:/usr/libexec/bridge-utils-brctl
ALTERNATIVES:=300:/usr/sbin/brctl:/usr/libexec/brctl-bridge-utils
endef endef
define Package/bridge/description define Package/bridge/description
@ -44,7 +44,7 @@ CONFIGURE_ARGS += \
define Package/bridge/install define Package/bridge/install
$(INSTALL_DIR) $(1)/usr/libexec $(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/brctl $(1)/usr/libexec/bridge-utils-brctl
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/brctl $(1)/usr/libexec/brctl-bridge-utils
endef endef
$(eval $(call BuildPackage,bridge)) $(eval $(call BuildPackage,bridge))

+ 6
- 7
net/openssh/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=openssh PKG_NAME:=openssh
PKG_VERSION:=8.4p1 PKG_VERSION:=8.4p1
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \ PKG_SOURCE_URL:=https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
@ -49,9 +49,8 @@ define Package/openssh-client
$(call Package/openssh/Default) $(call Package/openssh/Default)
TITLE+= client TITLE+= client
ALTERNATIVES:=\ ALTERNATIVES:=\
200:/usr/bin/ssh:/usr/bin/openssh-ssh \
200:/usr/bin/scp:/usr/bin/openssh-scp \
200:/usr/bin/ssh:/usr/libexec/ssh-openssh \
200:/usr/bin/scp:/usr/libexec/scp-openssh
endef endef
define Package/openssh-client/description define Package/openssh-client/description
@ -197,9 +196,9 @@ define Package/openssh-client/install
$(INSTALL_DIR) $(1)/etc/ssh $(INSTALL_DIR) $(1)/etc/ssh
chmod 0700 $(1)/etc/ssh chmod 0700 $(1)/etc/ssh
$(CP) $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(1)/etc/ssh/ $(CP) $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(1)/etc/ssh/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ssh $(1)/usr/bin/openssh-ssh
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scp $(1)/usr/bin/openssh-scp
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ssh $(1)/usr/libexec/ssh-openssh
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scp $(1)/usr/libexec/scp-openssh
endef endef
define Package/openssh-client-utils/install define Package/openssh-client-utils/install


+ 7
- 7
net/wget/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=wget PKG_NAME:=wget
PKG_VERSION:=1.20.3 PKG_VERSION:=1.20.3
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/$(PKG_NAME) PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
@ -47,7 +47,7 @@ $(call Package/wget/Default)
TITLE+= (with SSL support) TITLE+= (with SSL support)
VARIANT:=ssl VARIANT:=ssl
PROVIDES+=wget-ssl PROVIDES+=wget-ssl
ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-ssl
ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/wget-ssl
endef endef
define Package/wget/description define Package/wget/description
@ -60,7 +60,7 @@ $(call Package/wget/Default)
TITLE+= (without SSL support) TITLE+= (without SSL support)
VARIANT:=nossl VARIANT:=nossl
PROVIDES+=wget PROVIDES+=wget
ALTERNATIVES:=300:/usr/bin/wget:/usr/bin/wget-nossl
ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/wget-nossl
endef endef
define Package/wget-nossl/description define Package/wget-nossl/description
@ -95,13 +95,13 @@ ifeq ($(BUILD_VARIANT),nossl)
endif endif
define Package/wget/install define Package/wget/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-ssl
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/libexec/wget-ssl
endef endef
define Package/wget-nossl/install define Package/wget-nossl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/bin/wget-nossl
$(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wget $(1)/usr/libexec/wget-nossl
endef endef
$(eval $(call BuildPackage,wget)) $(eval $(call BuildPackage,wget))


+ 5
- 5
utils/findutils/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=findutils PKG_NAME:=findutils
PKG_VERSION:=4.7.0 PKG_VERSION:=4.7.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/$(PKG_NAME) PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
@ -49,13 +49,13 @@ endef
define Package/findutils-find define Package/findutils-find
$(call Package/findutils/Default) $(call Package/findutils/Default)
TITLE+= - find utility TITLE+= - find utility
ALTERNATIVES:=300:/usr/bin/find:/usr/libexec/findutils-find
ALTERNATIVES:=300:/usr/bin/find:/usr/libexec/find-findutils
endef endef
define Package/findutils-xargs define Package/findutils-xargs
$(call Package/findutils/Default) $(call Package/findutils/Default)
TITLE+= - xargs utility TITLE+= - xargs utility
ALTERNATIVES:=300:/usr/bin/xargs:/usr/libexec/findutils-xargs
ALTERNATIVES:=300:/usr/bin/xargs:/usr/libexec/xargs-findutils
endef endef
define Package/findutils-locate define Package/findutils-locate
@ -74,12 +74,12 @@ endef
define Package/findutils-find/install define Package/findutils-find/install
$(INSTALL_DIR) $(1)/usr/libexec $(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/libexec/findutils-find
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/libexec/find-findutils
endef endef
define Package/findutils-xargs/install define Package/findutils-xargs/install
$(INSTALL_DIR) $(1)/usr/libexec $(INSTALL_DIR) $(1)/usr/libexec
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/libexec/findutils-xargs
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/libexec/xargs-findutils
endef endef
define Package/findutils-locate/install define Package/findutils-locate/install


Loading…
Cancel
Save