2006-02-23 16:26:10 +01:00
|
|
|
# Description: A collection of core GNU utilities
|
|
|
|
# URL: http://www.gnu.org/software/coreutils/
|
2007-01-23 18:25:18 +01:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=coreutils
|
2007-03-30 18:29:33 +02:00
|
|
|
version=6.9
|
|
|
|
release=1
|
2006-07-31 16:26:39 +02:00
|
|
|
source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.bz2 \
|
2006-11-23 08:05:47 +01:00
|
|
|
$name-uname.patch)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2006-11-22 08:03:42 +01:00
|
|
|
|
|
|
|
patch -p1 < $SRC/$name-uname.patch
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
DEFAULT_POSIX2_VERSION=199209 \
|
|
|
|
./configure --prefix=/usr \
|
2006-11-23 08:05:47 +01:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-assert
|
2006-02-23 16:26:10 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2006-11-22 08:03:42 +01:00
|
|
|
|
2006-02-23 16:26:10 +01: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 16:26:10 +01:00
|
|
|
mv $PKG/usr/bin/{mknod,mv,pwd,readlink,rm,rmdir,stty,sync,touch,true,uname} $PKG/bin
|
|
|
|
rm $PKG/usr/bin/hostname $PKG/usr/man/man1/hostname.1 # conflicts with net-tools
|
|
|
|
rm $PKG/usr/bin/uptime $PKG/usr/man/man1/uptime.1 # conflicts with procps
|
|
|
|
rm $PKG/usr/bin/su $PKG/usr/man/man1/su.1 # conflicts with shadow
|
|
|
|
rm $PKG/usr/bin/groups $PKG/usr/man/man1/groups.1 # conflicts with shadow
|
|
|
|
rm $PKG/usr/bin/kill $PKG/usr/man/man1/kill.1 # conflicts with util-linux
|
|
|
|
rm -rf $PKG/usr/share $PKG/usr/lib
|
|
|
|
}
|