summaryrefslogtreecommitdiffstats
path: root/abs/core/coreutils/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/core/coreutils/PKGBUILD
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/core/coreutils/PKGBUILD')
-rw-r--r--abs/core/coreutils/PKGBUILD90
1 files changed, 42 insertions, 48 deletions
diff --git a/abs/core/coreutils/PKGBUILD b/abs/core/coreutils/PKGBUILD
index b8418e9..2c6fab9 100644
--- a/abs/core/coreutils/PKGBUILD
+++ b/abs/core/coreutils/PKGBUILD
@@ -1,73 +1,67 @@
-# $Id: PKGBUILD 29340 2009-03-08 00:18:55Z andyrtr $
-# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# $Id: PKGBUILD 82551 2010-06-13 12:07:11Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=coreutils
-pkgver=7.1
-pkgrel=5
+pkgver=8.5
+pkgrel=2
pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
license=('GPL3')
url="http://www.gnu.org/software/coreutils"
groups=('base')
-depends=('glibc>=2.9-4' 'shadow>=4.1.2.1-2' 'pam>=1.0.3' 'acl>=2.2.47-1' 'gmp>=4.2.4')
-provides=('mktemp')
-conflicts=('mktemp')
-replaces=('sh-utils' 'fileutils' 'textutils' 'mktemp')
+depends=('glibc' 'shadow' 'pam' 'acl' 'gmp>=5.0' 'libcap')
+replaces=('mktemp')
backup=('etc/pam.d/su')
install=${pkgname}.install
-options=('!emptydirs' '!makeflags')
-source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
- coreutils-i18n.patch
+options=('!emptydirs')
+source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz
coreutils-uname.patch
coreutils-pam.patch
- coreutils-6.10-configuration.patch
- coreutils-7.1-sort-endoffields.patch
- coreutils-7.1-cp-recursiveinfloop.patch
- su)
+ su.pam)
+md5sums=('55170ed640e300f5b81640c6f4641513'
+ 'c4fcca138b6abf6d443d48a6f0cd8833'
+ 'aad79a2aa6d566c375d7bdd1b0767278'
+ 'fa85e5cce5d723275b14365ba71a8aad')
build() {
cd ${srcdir}/${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
- patch -Np1 -i ../coreutils-6.10-configuration.patch || return 1
+ # added su wheel group pam patch (from fedora cvs)
+ patch -Np1 -i ${srcdir}/coreutils-pam.patch
- # from gentoo portage
- patch -Np1 -i ../coreutils-uname.patch || return 1
+ # linux specific uname improvement (from gentoo portage)
+ patch -Np1 -i ${srcdir}/coreutils-uname.patch
- # bugfix patches from fedora
- patch -Np1 -i ../coreutils-7.1-sort-endoffields.patch || return 1
- patch -Np1 -i ../coreutils-7.1-cp-recursiveinfloop.patch || return 1
-
- # only needed if new autoconf 2.62 is used
- sed -i 's/1.10a/1.10.2/' configure.ac || return 1 # aclocal fix
- sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1
autoreconf -v
-
./configure --prefix=/usr \
- --enable-install-program=su \
- --enable-pam ac_cv_func_openat=no || return 1
- make || return 1
- make DESTDIR=${pkgdir} install || return 1
+ --enable-install-program=su \
+ --enable-no-install-program=groups,hostname,kill,uptime \
+ --enable-pam ac_cv_func_openat=no
+ make
+ make check
+}
- rm -f ${pkgdir}/usr/bin/hostname ${pkgdir}/usr/share/man/man1/hostname.1 || return 1
- rm -f ${pkgdir}/usr/bin/uptime ${pkgdir}/usr/share/man/man1/uptime.1 || return 1
- rm -f ${pkgdir}/usr/bin/groups ${pkgdir}/usr/share/man/man1/groups.1 || return 1
- rm -f ${pkgdir}/usr/bin/kill ${pkgdir}/usr/share/man/man1/kill.1|| return 1
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install
+
cd ${pkgdir}/usr/bin
- mkdir -p ${pkgdir}/bin ${pkgdir}/sbin ${pkgdir}/usr/sbin
- mv su date echo false pwd stty true uname cat tr cut readlink ../../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 sleep ../../bin
- mv chroot ../sbin
- ln -sf test [
- ln -sf /bin/sleep ${pkgdir}/usr/bin/sleep
- install -D -m644 $startdir/src/su ${pkgdir}/etc/pam.d/su
-
+ 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
ls -lha ${pkgdir}/bin/su
chmod -v 4555 ${pkgdir}/bin/su
- rm -f ${pkgdir}/usr/share/info/dir
+ # 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
}