findutils: polishing of Makefile
Changes: - added license - added URL - removed descriptions of individual packages - added 'dummy' package: findutils, which contains 3 dependencies: find, xargs, locate Signed-off-by: Josef Schlehofer <josef.schlehofer@nic.cz>
This commit is contained in:
parent
bf2521fb4a
commit
ff7ab71991
1 changed files with 32 additions and 30 deletions
|
@ -8,7 +8,9 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=findutils
|
PKG_NAME:=findutils
|
||||||
PKG_VERSION:=4.6.0
|
PKG_VERSION:=4.6.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
|
PKG_LICENSE:=GPL-3.0+
|
||||||
|
|
||||||
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)
|
||||||
|
@ -20,9 +22,10 @@ PKG_INSTALL:=1
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/findutils/Default
|
define Package/findutils/Default
|
||||||
TITLE:=GNU findutils
|
TITLE:=GNU Find Utilities
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
|
URL:=https://www.gnu.org/software/findutils/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/findutils/description/Default
|
define Package/findutils/description/Default
|
||||||
|
@ -32,49 +35,42 @@ sufficient functionality, but some users may want or need
|
||||||
the full functionality of the GNU tools.
|
the full functionality of the GNU tools.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/findutils
|
||||||
|
$(call Package/findutils/Default)
|
||||||
|
TITLE+= (all)
|
||||||
|
DEPENDS:= \
|
||||||
|
+findutils-find \
|
||||||
|
+findutils-xargs \
|
||||||
|
+findutils-locate
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/findutils-find
|
define Package/findutils-find
|
||||||
$(call Package/findutils/Default)
|
$(call Package/findutils/Default)
|
||||||
TITLE+= (find)
|
TITLE+= - find utility
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/findutils-find/description
|
|
||||||
$(call Package/findutils/description/Default)
|
|
||||||
This package contains the find utility
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/findutils-xargs
|
|
||||||
$(call Package/findutils/Default)
|
|
||||||
TITLE := (xargs)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/findutils-xargs/description
|
|
||||||
$(call Package/findutils/description/Default)
|
|
||||||
This package contains the xargs utility
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/findutils-locate
|
define Package/findutils-locate
|
||||||
$(call Package/findutils/Default)
|
$(call Package/findutils/Default)
|
||||||
TITLE := (locate)
|
TITLE+= - locate and updatedb utility
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/findutils-locate/description
|
define Package/findutils-xargs
|
||||||
$(call Package/findutils/description/Default)
|
$(call Package/findutils/Default)
|
||||||
This package contains the locate and related updatedb utility
|
TITLE+= - xargs utility
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += --localstatedir=/srv/var
|
CONFIGURE_ARGS += --localstatedir=/srv/var
|
||||||
CONFIGURE_VARS += ac_cv_path_SORT=sort
|
CONFIGURE_VARS += ac_cv_path_SORT=sort
|
||||||
|
|
||||||
|
define Package/findutils/install
|
||||||
|
true
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/findutils-find/install
|
define Package/findutils-find/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/findutils-xargs/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/bin/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/findutils-locate/install
|
define Package/findutils-locate/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/srv/var
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/srv/var
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/locate $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/locate $(1)/usr/bin/
|
||||||
|
@ -82,6 +78,12 @@ define Package/findutils-locate/install
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/findutils-xargs/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/bin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,findutils))
|
||||||
$(eval $(call BuildPackage,findutils-find))
|
$(eval $(call BuildPackage,findutils-find))
|
||||||
$(eval $(call BuildPackage,findutils-xargs))
|
|
||||||
$(eval $(call BuildPackage,findutils-locate))
|
$(eval $(call BuildPackage,findutils-locate))
|
||||||
|
$(eval $(call BuildPackage,findutils-xargs))
|
||||||
|
|
Loading…
Reference in a new issue