2006-02-23 15:26:10 +00:00
|
|
|
# Description: A collection of core GNU utilities
|
|
|
|
# URL: http://www.gnu.org/software/coreutils/
|
2007-01-23 17:25:18 +00:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2009-03-07 10:55:34 +01:00
|
|
|
# Depends on: libgmp
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=coreutils
|
2009-05-08 14:26:30 +02:00
|
|
|
version=7.4
|
2009-03-07 10:55:34 +01:00
|
|
|
release=1
|
2008-01-25 11:23:56 +01:00
|
|
|
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz
|
|
|
|
coreutils-uname.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2008-01-23 11:33:42 +01:00
|
|
|
|
2008-01-25 11:23:56 +01:00
|
|
|
patch -p1 -i $SRC/coreutils-uname.patch
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
DEFAULT_POSIX2_VERSION=199209 \
|
|
|
|
./configure --prefix=/usr \
|
2006-11-23 08:05:47 +01:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--disable-nls \
|
2008-01-23 11:33:42 +01:00
|
|
|
--disable-assert \
|
2009-03-07 10:55:34 +01:00
|
|
|
--disable-libcap \
|
|
|
|
--disable-xattr \
|
2008-09-16 20:33:09 +02:00
|
|
|
--enable-no-install-program=uptime,kill,chcon,runcon,groups
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-01-23 11:33:42 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
mkdir $PKG/bin
|
2007-02-20 21:13:12 +01:00
|
|
|
mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,ln,ls,mkdir,sleep} $PKG/bin
|
2006-02-23 15:26:10 +00:00
|
|
|
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
|
2008-01-23 11:33:42 +01:00
|
|
|
rm -r $PKG/usr/share
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|