lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2334B)


      1 # 
      2 # Copyright (C) 2006-2016 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 include $(TOPDIR)/rules.mk
      8 
      9 PKG_NAME:=findutils
     10 PKG_VERSION:=4.6.0
     11 PKG_RELEASE:=1
     12 
     13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     14 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
     15 PKG_MD5SUM:=9936aa8009438ce185bea2694a997fc1
     16 PKG_MAINTAINER:=Daniel Dickinson <lede@daniel.thecshore.com>
     17 
     18 PKG_BUILD_PARALLEL:=1
     19 PKG_INSTALL:=1
     20 
     21 include $(INCLUDE_DIR)/package.mk
     22 
     23 define Package/findutils/Default
     24 	TITLE:=GNU findutils
     25 	SECTION:=utils
     26 	CATEGORY:=Utilities
     27 endef
     28 
     29 define Package/findutils/description/Default
     30 Replace busybox versions of findutils with full GNU versions.
     31 This is normally not needed as busybox is smaller and provides
     32 sufficient functionality, but some users may want or need
     33 the full functionality of the GNU tools.
     34 endef
     35 
     36 define Package/findutils-find
     37 	$(call Package/findutils/Default)
     38 	TITLE+= (find)
     39 endef
     40 
     41 define Package/findutils-find/description
     42 $(call Package/findutils/description/Default)
     43 This package contains the find utility
     44 endef
     45 
     46 define Package/findutils-xargs
     47 	$(call Package/findutils/Default)
     48 	TITLE := (xargs)
     49 endef
     50 
     51 define Package/findutils-xargs/description
     52 $(call Package/findutils/description/Default)
     53 This package contains the xargs utility
     54 endef
     55 
     56 define Package/findutils-locate
     57 	$(call Package/findutils/Default)
     58 	TITLE := (locate)
     59 endef
     60 
     61 define Package/findutils-locate/description
     62 $(call Package/findutils/description/Default)
     63 This package contains the locate and related updatedb utility
     64 endef
     65 
     66 CONFIGURE_ARGS += --localstatedir=/srv/var
     67 CONFIGURE_VARS += ac_cv_path_SORT=sort
     68 
     69 define Package/findutils-find/install
     70 	$(INSTALL_DIR) $(1)/usr/bin
     71 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/find $(1)/usr/bin/	
     72 endef
     73 
     74 define Package/findutils-xargs/install
     75 	$(INSTALL_DIR) $(1)/usr/bin
     76 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/xargs $(1)/usr/bin/	
     77 endef
     78 
     79 define Package/findutils-locate/install
     80 	$(INSTALL_DIR) $(1)/usr/bin $(1)/srv/var
     81 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/locate $(1)/usr/bin/	
     82 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/updatedb $(1)/usr/bin/	
     83 	$(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr/
     84 endef
     85 
     86 $(eval $(call BuildPackage,findutils-find))
     87 $(eval $(call BuildPackage,findutils-xargs))
     88 $(eval $(call BuildPackage,findutils-locate))