# Maintainer: judd # Wersja dla NND: Mis' pkgname=coreutils pkgver=5.97 pkgrel=2nnd pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system" url="http://www.gnu.org/software/coreutils" depends=('bash' 'glibc' 'pam' 'shadow>=4.0.18.1') makedepends=('automake>=1.9.6') replaces=('sh-utils' 'fileutils' 'textutils') backup=('etc/pam.d/su') source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz su \ coreutils-i18n.patch coreutils-uname.patch coreutils-pam.patch) md5sums=('bdec4b75c76ac9bf51b6dd1747d3b06e' 'fa85e5cce5d723275b14365ba71a8aad'\ 'fd9b50bb70b2d0a5885e6e7d81d9bbc1' '18684a4be85074048483d1efef83a6bc'\ 'd0a6935494fc77a21b0062cf6d055fe1') build() { cd $startdir/src/$pkgname-$pkgver # added pam patch and i18n patch from fedora cvs patch -Np1 -i ../coreutils-pam.patch || return 1 patch -Np1 -i ../coreutils-i18n.patch || return 1 # from gentoo portage patch -Np1 -i ../coreutils-uname.patch || return 1 # # fix for automake 1.9 sed -i 's|am__api_version="1.8"|am__api_version="1.9"|g' configure || return 1 # make head and tail recognize the old syntax (eg, tail -10) export DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr --mandir=/usr/man --enable-pam \ --host=i586-pc-linux-gnu make || return 1 make DESTDIR=$startdir/pkg install rm -f $startdir/pkg/usr/bin/hostname $startdir/pkg/usr/man/man1/hostname.1 rm -f $startdir/pkg/usr/bin/uptime $startdir/pkg/usr/man/man1/uptime.1 rm -f $startdir/pkg/usr/bin/groups $startdir/pkg/usr/man/man1/groups.1 rm -f $startdir/pkg/usr/bin/kill $startdir/pkg/usr/man/man1/kill.1 cd $startdir/pkg/usr/bin mkdir -p $startdir/pkg/bin $startdir/pkg/sbin $startdir/pkg/usr/sbin mv su date echo false pwd stty true uname cat ../../bin mv dd cp df du ln ls mv rm dir sync vdir chgrp chmod chown ../../bin mv mkdir mknod rmdir shred touch mkfifo dircolors install ../../bin mv chroot ../sbin ln -sf test [ install -D -m644 $startdir/src/su $startdir/pkg/etc/pam.d/su || return 1 }