blob: a9b20dacff69c01de775fe6dc8445a59b5ef0aba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $Id: PKGBUILD 99303 2010-11-14 01:28:25Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=coreutils
pkgver=8.7
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
coreutils-uname.patch
coreutils-pam.patch
su.pam)
md5sums=('6e21df02e7f5c5d86372de4c6d873275'
'c4fcca138b6abf6d443d48a6f0cd8833'
'aad79a2aa6d566c375d7bdd1b0767278'
'fa85e5cce5d723275b14365ba71a8aad')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# added su wheel group pam patch (from fedora cvs)
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 \
--enable-install-program=su \
--enable-no-install-program=groups,hostname,kill,uptime \
--enable-pam ac_cv_func_openat=no
make || return 1
make 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
ls -lha ${pkgdir}/bin/su
chmod -v 4555 ${pkgdir}/bin/su
# 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
}
|