1 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Maintainer: Mikhail Borisov <borisov.mikhail@gmail.com>
12 pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system"
13 arch=('i686' 'x86_64')
15 url="http://www.gnu.org/software/coreutils"
17 depends=('glibc' 'shadow' 'pam' 'acl' 'gmp>=5.0' 'libcap')
19 conflicts=('coreutils')
20 provides=('coreutils')
21 backup=('etc/pam.d/su')
22 install=${_pkgname}.install
23 options=('!emptydirs')
24 source=(ftp://ftp.gnu.org/gnu/$_pkgname/$_pkgname-$_pkgver.tar.xz
28 advcpmv-$pkgver.patch)
31 cd ${srcdir}/${_pkgname}-${_pkgver}
33 # added su wheel group pam patch (from fedora cvs)
34 patch -Np1 -i ${srcdir}/coreutils-pam.patch
36 # linux specific uname improvement (from gentoo portage)
37 patch -Np1 -i ${srcdir}/coreutils-uname.patch
39 patch -Np1 -i ${srcdir}/advcpmv-${pkgver}.patch
42 ./configure --prefix=/usr \
43 --enable-install-program=su \
44 --enable-no-install-program=groups,hostname,kill,uptime \
45 --enable-pam ac_cv_func_openat=no
51 cd ${srcdir}/${_pkgname}-${_pkgver}
52 make DESTDIR=${pkgdir} install
55 install -dm755 ${pkgdir}/{bin,usr/sbin}
57 # binaries required by FHS
58 _fhs="cat chgrp chmod chown cp date dd df echo false ln ls mkdir mknod mv pwd rm rmdir stty su sync true uname"
59 mv ${_fhs} ${pkgdir}/bin
60 ls -lha ${pkgdir}/bin/su
61 chmod -v 4555 ${pkgdir}/bin/su
63 # binaries required by various Arch scripts
64 _bin="cut dir dircolors du install mkfifo readlink shred sleep touch tr vdir"
65 mv ${_bin} ${pkgdir}/bin
66 ln -sf /bin/sleep ${pkgdir}/usr/bin/sleep
68 mv chroot ${pkgdir}/usr/sbin
69 install -Dm644 ${srcdir}/su.pam ${pkgdir}/etc/pam.d/su
72 md5sums=('a78848e3d7ba52e65b564ffea875ef20'
73 'c4fcca138b6abf6d443d48a6f0cd8833'
74 'aad79a2aa6d566c375d7bdd1b0767278'
75 'fa85e5cce5d723275b14365ba71a8aad'
76 '616899c15986ccc9452735cfbf74d8d2')