2008-11-09 16:52:37 +00:00
|
|
|
#
|
2010-11-28 13:55:56 +00:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2008-11-09 16:52:37 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=coreutils
|
2011-02-09 13:15:22 +00:00
|
|
|
PKG_VERSION:=8.8
|
|
|
|
PKG_RELEASE:=1
|
2008-11-09 16:52:37 +00:00
|
|
|
|
2009-04-04 13:08:10 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/coreutils
|
2011-02-09 13:15:22 +00:00
|
|
|
PKG_MD5SUM:=bad596d9654e299eedea0eaf93f178fa
|
2010-11-21 14:25:35 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libpthread
|
2008-11-09 16:52:37 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-02-09 20:36:21 +00:00
|
|
|
COREUTILS_APPLETS:=\
|
|
|
|
base64 basename cat chcon chgrp chmod chown chroot cksum comm cp \
|
|
|
|
csplit cut date dd dir dircolors dirname du echo env expand expr \
|
|
|
|
factor false fmt fold groups head hostid id install join kill link \
|
|
|
|
ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup nproc \
|
|
|
|
od paste pathchk pinky pr printenv printf ptx pwd readlink rm rmdir \
|
|
|
|
runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf \
|
|
|
|
sleep sort split stat stdbuf stty su sum sync tac tail tee test timeout \
|
|
|
|
touch tr true truncate tsort tty uname unexpand uniq unlink uptime users \
|
|
|
|
vdir wc who whoami yes
|
|
|
|
|
|
|
|
define Package/coreutils/Default
|
2008-11-09 16:52:37 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=The GNU core utilities
|
|
|
|
URL:=http://www.gnu.org/software/coreutils/
|
2011-02-09 20:36:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/coreutils
|
|
|
|
$(call Package/coreutils/Default)
|
|
|
|
TITLE:=The GNU core utilities
|
|
|
|
MENU:=1
|
2008-11-09 16:52:37 +00:00
|
|
|
endef
|
2010-01-30 18:09:58 +00:00
|
|
|
|
2008-11-09 16:52:37 +00:00
|
|
|
define Package/coreutils/description
|
|
|
|
Full versions of standard GNU utilities. Normally, you would not
|
|
|
|
use this package, since the functionality in BusyBox is more than
|
|
|
|
sufficient and much smaller.
|
|
|
|
endef
|
|
|
|
|
2011-02-09 20:36:21 +00:00
|
|
|
define GenPlugin
|
|
|
|
define Package/$(1)
|
|
|
|
$(call Package/coreutils/Default)
|
|
|
|
DEPENDS:=coreutils
|
|
|
|
TITLE:=Utility $(2) from the GNU core utilities
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/$(1)/description
|
|
|
|
Full version of standard GNU $(2) utility. Normally, you would not
|
|
|
|
use this package, since the functionality in BusyBox is more than
|
|
|
|
sufficient.
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach a,$(COREUTILS_APPLETS),$(eval $(call GenPlugin,coreutils-$(a),$(a))))
|
|
|
|
|
2010-11-28 13:55:56 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
gl_cv_func_mbrtowc_incomplete_state=yes \
|
|
|
|
gl_cv_func_mbrtowc_retval=yes \
|
|
|
|
gl_cv_func_wcrtomb_retval=yes
|
2010-12-11 13:30:44 +00:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_USE_UCLIBC),)
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_type_pthread_spinlock_t=$(if $(filter 0.9.30% 0.9.2% 0.9.31%,$(call qstrip,$(CONFIG_UCLIBC_VERSION))),no,yes)
|
2010-11-28 13:55:56 +00:00
|
|
|
endif
|
2010-01-30 18:09:56 +00:00
|
|
|
|
2009-04-04 13:08:10 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-install-program=su
|
|
|
|
|
2008-11-09 16:52:37 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
SHELL="/bin/bash" \
|
2009-04-04 13:08:10 +00:00
|
|
|
all install install-root
|
2008-11-09 16:52:37 +00:00
|
|
|
endef
|
|
|
|
|
2011-03-22 18:25:49 +00:00
|
|
|
define Package/coreutils/install
|
|
|
|
true
|
|
|
|
endef
|
|
|
|
|
2011-02-09 20:36:21 +00:00
|
|
|
define BuildPlugin
|
|
|
|
define Package/$(1)/install
|
|
|
|
$(INSTALL_DIR) $$(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $$(1)/usr/bin/
|
|
|
|
endef
|
2010-01-30 18:09:54 +00:00
|
|
|
|
2011-02-09 20:36:21 +00:00
|
|
|
$$(eval $$(call BuildPackage,$(1)))
|
2010-01-30 18:09:54 +00:00
|
|
|
endef
|
|
|
|
|
2011-02-09 20:36:21 +00:00
|
|
|
$(eval $(call BuildPackage,coreutils))
|
2010-01-30 18:09:54 +00:00
|
|
|
|
2011-02-09 20:36:21 +00:00
|
|
|
$(foreach a,$(COREUTILS_APPLETS),$(eval $(call BuildPlugin,coreutils-$(a),$(a))))
|