From 9291e062cb24bac5d7c7059d4dc64669c1917b33 Mon Sep 17 00:00:00 2001 From: tnut Date: Sun, 8 Jan 2012 12:12:28 +0100 Subject: aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coreutils/Pkgfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 coreutils/Pkgfile (limited to 'coreutils/Pkgfile') diff --git a/coreutils/Pkgfile b/coreutils/Pkgfile new file mode 100755 index 000000000..7f9776a4b --- /dev/null +++ b/coreutils/Pkgfile @@ -0,0 +1,36 @@ +# Description: Collection d'utilitaire pour le coeur du systeme GNU +# URL: http://www.gnu.org/software/coreutils/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch + +name=coreutils +version=8.12 +release=1 +source=(http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz \ + http://www.linuxfromscratch.org/patches/lfs/development/coreutils-$version-i18n-1.patch\ + http://www.linuxfromscratch.org/patches/lfs/development/coreutils-$version-uname-1.patch) +build() { + cd $name-$version + +case `uname -m` in + i?86 | x86_64) patch -Np1 -i ../coreutils-$version-uname-1.patch ;; +esac +patch -Np1 -i ../$name-$version-i18n-1.patch + +./configure --prefix=/usr --enable-no-install-program=kill,uptime,hostname +make +make DESTDIR=$PKG install + +mkdir $PKG/{bin,usr/sbin} +mv $PKG/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $PKG/bin +mv $PKG/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} $PKG/bin +mv $PKG/usr/bin/{rmdir,stty,sync,true,uname} $PKG/bin +mv -v $PKG/usr/bin/chroot $PKG/usr/sbin +mkdir -p $PKG/usr/share/man/man8/ +mv -v $PKG/usr/share/man/man1/chroot.1 $PKG/usr/share/man/man8/chroot.8 +sed -i s/\"1\"/\"8\"/1 $PKG/usr/share/man/man8/chroot.8 +mv -v $PKG/usr/bin/{head,sleep,nice} $PKG/bin +if [ -f $PKG/usr/share/info/dir ]; then + rm $PKG/usr/share/info/dir +fi +} -- cgit v1.2.3-54-g00ecf