include $(TOPDIR)/rules.mk
PKG_NAME:=coreutils
-PKG_VERSION:=7.2
+PKG_VERSION:=8.7
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/coreutils
-PKG_MD5SUM:=427c2914d3eab956f317c9ec6a45e62a
+PKG_MD5SUM:=3c1ae9531159447083ae8f25ae554b81
+PKG_BUILD_DEPENDS:=libpthread
include $(INCLUDE_DIR)/package.mk
+coreutils-true +coreutils-truncate +coreutils-tsort +coreutils-tty \
+coreutils-uname +coreutils-unexpand +coreutils-uniq \
+coreutils-unlink +coreutils-uptime +coreutils-users +coreutils-vdir \
- +coreutils-wc +coreutils-who +coreutils-whoami +coreutils-yes
+ +coreutils-wc +coreutils-who +coreutils-whoami +coreutils-yes \
+ +coreutils-nproc +coreutils-stdbuf
endef
define Package/coreutils/description
CONFIGURE_VARS += \
gl_cv_func_mbrtowc_incomplete_state=yes \
gl_cv_func_mbrtowc_retval=yes \
- gl_cv_func_wcrtomb_retval=yes
+ gl_cv_func_wcrtomb_retval=yes \
+ ac_cv_type_pthread_spinlock_t=no
CONFIGURE_ARGS += \
--enable-install-program=su
$(CP) $(PKG_INSTALL_DIR)/usr/bin/nohup $(1)/usr/bin/
endef
+define Package/coreutils-nproc
+ SECTION:utils
+ CATEGORY:=Utilities
+ TITLE:=Utility nproc from the GNU core utilites
+ URL:=http://www.gnu.org/software/coreutils/
+endef
+
+define Package/coreutils-nproc/description
+ Full version of standard GNU nproc utility. Normally, you would not
+ use this package, since the functionality in BusyBox is more than
+ sufficient.
+endef
+
+define Package/coreutils-nproc/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/nproc $(1)/usr/bin/
+endef
+
define Package/coreutils-od
SECTION:utils
CATEGORY:=Utilities
define Package/coreutils-sort
SECTION:utils
CATEGORY:=Utilities
+ DEPENDS:=+libpthread
TITLE:=Utility sort from the GNU core utilites
URL:=http://www.gnu.org/software/coreutils/
endef
$(CP) $(PKG_INSTALL_DIR)/usr/bin/stat $(1)/usr/bin/
endef
+define Package/coreutils-stdbuf
+ SECTION:utils
+ CATEGORY:=Utilities
+ TITLE:=Utility stdbuf from the GNU core utilites
+ URL:=http://www.gnu.org/software/coreutils/
+endef
+
+define Package/coreutils-stdbuf/description
+ Full version of standard GNU stdbuf utility. Normally, you would not
+ use this package, since the functionality in BusyBox is more than
+ sufficient.
+endef
+
+define Package/coreutils-stdbuf/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(CP) $(PKG_INSTALL_DIR)/usr/bin/stdbuf $(1)/usr/bin/
+endef
+
define Package/coreutils-stty
SECTION:utils
CATEGORY:=Utilities
$(eval $(call BuildPackage,coreutils-nice))
$(eval $(call BuildPackage,coreutils-nl))
$(eval $(call BuildPackage,coreutils-nohup))
+$(eval $(call BuildPackage,coreutils-nproc))
$(eval $(call BuildPackage,coreutils-od))
$(eval $(call BuildPackage,coreutils-paste))
$(eval $(call BuildPackage,coreutils-pathchk))
$(eval $(call BuildPackage,coreutils-sort))
$(eval $(call BuildPackage,coreutils-split))
$(eval $(call BuildPackage,coreutils-stat))
+$(eval $(call BuildPackage,coreutils-stdbuf))
$(eval $(call BuildPackage,coreutils-stty))
$(eval $(call BuildPackage,coreutils-su))
$(eval $(call BuildPackage,coreutils-sum))
-diff -urN coreutils-6.9/Makefile.am coreutils-6.9.new/Makefile.am
---- coreutils-6.9/Makefile.am 2007-03-18 22:36:43.000000000 +0100
-+++ coreutils-6.9.new/Makefile.am 2008-11-15 14:15:17.000000000 +0100
-@@ -15,7 +15,7 @@
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -17,7 +17,7 @@
+
+ ALL_RECURSIVE_TARGETS =
-SUBDIRS = lib src doc man po tests gnulib-tests
+SUBDIRS = lib src po
- EXTRA_DIST = cfg.mk maint.mk \
- .prev-version THANKS-to-translators THANKStt.in \
- .version \
-diff -urN coreutils-6.9/Makefile.in coreutils-6.9.new/Makefile.in
---- coreutils-6.9/Makefile.in 2007-03-22 22:20:26.000000000 +0100
-+++ coreutils-6.9.new/Makefile.in 2008-11-15 14:15:05.000000000 +0100
-@@ -918,7 +918,7 @@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
+
+ changelog_etc = \
+ ChangeLog-2005 \
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -1238,7 +1238,7 @@ top_srcdir = @top_srcdir@
+
+ # Some tests always need root privileges, others need them only sometimes.
+ ALL_RECURSIVE_TARGETS = install-root check-root distcheck-hook
-SUBDIRS = lib src doc man po tests gnulib-tests
+SUBDIRS = lib src po
- EXTRA_DIST = cfg.mk maint.mk \
- .prev-version THANKS-to-translators THANKStt.in \
- .version \
+ changelog_etc = \
+ ChangeLog-2005 \
+ ChangeLog-2006 \