Browse Source

less: move binary of alternatives to /usr/libexec

Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
lilik-openwrt-22.03
Huangbin Zhan 4 years ago
parent
commit
7ec279ad3e
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      utils/less/Makefile

+ 4
- 4
utils/less/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=less PKG_NAME:=less
PKG_VERSION:=562 PKG_VERSION:=562
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:=http://www.greenwoodsoftware.com/less PKG_SOURCE_URL:=http://www.greenwoodsoftware.com/less
@ -30,7 +30,7 @@ define Package/less/Default
CATEGORY:=Utilities CATEGORY:=Utilities
TITLE:=Pager program similar to more TITLE:=Pager program similar to more
URL:=http://www.greenwoodsoftware.com/less/ URL:=http://www.greenwoodsoftware.com/less/
ALTERNATIVES:=200:/usr/bin/less:/usr/bin/gnu-less
ALTERNATIVES:=200:/usr/bin/less:/usr/libexec/less-gnu
endef endef
define Package/less/Default/description define Package/less/Default/description
@ -70,8 +70,8 @@ ifeq ($(BUILD_VARIANT),wide)
endif endif
define Package/less/install define Package/less/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/less $(1)/usr/bin/gnu-less
$(INSTALL_DIR) $(1)/usr/libexec
$(CP) $(PKG_INSTALL_DIR)/usr/bin/less $(1)/usr/libexec/less-gnu
endef endef
Package/less-wide/install = $(Package/less/install) Package/less-wide/install = $(Package/less/install)


Loading…
Cancel
Save