diff options
author | root <root@rshg054.dnsready.net> | 2012-01-09 23:14:46 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-09 23:14:46 +0000 |
commit | fdcaf644692e151ddc596b148465ce4a77e6b670 (patch) | |
tree | f462377d189cdc42041c78bf22402fec369a48c4 /testing/coreutils/PKGBUILD | |
parent | 7a3611f5caa5e34c1f2b582640f97b733110ae63 (diff) |
Mon Jan 9 23:14:46 UTC 2012
Diffstat (limited to 'testing/coreutils/PKGBUILD')
-rw-r--r-- | testing/coreutils/PKGBUILD | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/testing/coreutils/PKGBUILD b/testing/coreutils/PKGBUILD new file mode 100644 index 000000000..8748cc984 --- /dev/null +++ b/testing/coreutils/PKGBUILD @@ -0,0 +1,70 @@ +# $Id: PKGBUILD 146285 2012-01-08 06:48:18Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=coreutils +pkgver=8.15 +pkgrel=1 +pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system" +arch=('i686' 'x86_64') +license=('GPL3') +url="http://www.gnu.org/software/coreutils" +groups=('base') +depends=('glibc' 'shadow' 'pam' 'acl' 'gmp' 'libcap') +replaces=('mktemp') +backup=('etc/pam.d/su') +install=${pkgname}.install +options=('!emptydirs') +source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig} + coreutils-uname.patch + coreutils-pam.patch + su.pam) +md5sums=('094909fafa86110140b32e4948941545' + '2cdd273d93a77d03739fa81d7c2acfe5' + 'c4fcca138b6abf6d443d48a6f0cd8833' + 'aad79a2aa6d566c375d7bdd1b0767278' + 'fa85e5cce5d723275b14365ba71a8aad') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # added su wheel group pam patch (from fedora git) + patch -Np1 -i ${srcdir}/coreutils-pam.patch + + # linux specific uname improvement (from gentoo portage) + patch -Np1 -i ${srcdir}/coreutils-uname.patch + + autoreconf -v + ./configure --prefix=/usr --libexecdir=/usr/lib/coreutils \ + --enable-install-program=su \ + --enable-no-install-program=groups,hostname,kill,uptime \ + --enable-pam + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make RUN_EXPENSIVE_TESTS=yes check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + cd ${pkgdir}/usr/bin + install -dm755 ${pkgdir}/{bin,usr/sbin} + + # binaries required by FHS + _fhs="cat chgrp chmod chown cp date dd df echo false ln ls \ + mkdir mknod mv pwd rm rmdir stty su sync true uname" + mv ${_fhs} ${pkgdir}/bin + + # binaries required by various Arch scripts + _bin="cut dir dircolors du install mkfifo readlink shred \ + sleep touch tr vdir" + mv ${_bin} ${pkgdir}/bin + ln -sf /bin/sleep ${pkgdir}/usr/bin/sleep + + mv chroot ${pkgdir}/usr/sbin + install -Dm644 ${srcdir}/su.pam ${pkgdir}/etc/pam.d/su +} |