2 # Copyright (C) 2006-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
15 PKG_HASH
:=ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d
16 PKG_MAINTAINER
:=Daniel Dickinson
<lede@daniel.thecshore.com
>
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/findutils
/Default
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.
36 define Package
/findutils-find
37 $(call Package
/findutils
/Default
)
41 define Package
/findutils-find
/description
42 $(call Package
/findutils
/description
/Default
)
43 This package contains the find utility
46 define Package
/findutils-xargs
47 $(call Package
/findutils
/Default
)
51 define Package
/findutils-xargs
/description
52 $(call Package
/findutils
/description
/Default
)
53 This package contains the xargs utility
56 define Package
/findutils-locate
57 $(call Package
/findutils
/Default
)
61 define Package
/findutils-locate
/description
62 $(call Package
/findutils
/description
/Default
)
63 This package contains the locate and related updatedb utility
66 CONFIGURE_ARGS
+= --localstatedir
=/srv
/var
67 CONFIGURE_VARS
+= ac_cv_path_SORT
=sort
69 define Package
/findutils-find
/install
70 $(INSTALL_DIR
) $(1)/usr
/bin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/find
$(1)/usr
/bin
/
74 define Package
/findutils-xargs
/install
75 $(INSTALL_DIR
) $(1)/usr
/bin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/xargs
$(1)/usr
/bin
/
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
/
86 $(eval
$(call BuildPackage
,findutils-find
))
87 $(eval
$(call BuildPackage
,findutils-xargs
))
88 $(eval
$(call BuildPackage
,findutils-locate
))