mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
80 lines
2.5 KiB
Bash
80 lines
2.5 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=coreutils
|
|
pkgver=8.12
|
|
pkgrel=2
|
|
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>=5.0' 'libcap')
|
|
provides=('mktemp')
|
|
conflicts=('mktemp')
|
|
replaces=('sh-utils' 'fileutils' 'textutils' 'mktemp')
|
|
backup=('etc/pam.d/su')
|
|
install=${pkgname}.install
|
|
options=('!emptydirs')
|
|
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz
|
|
#coreutils-i18n.patch
|
|
coreutils-uname.patch
|
|
coreutils-pam.patch
|
|
#coreutils-6.10-configuration.patch
|
|
su)
|
|
md5sums=('0f7d43c2d2e24314b43a6c6267e25b90'
|
|
#'f92a989319c4c741d7c28d8fa6e01616'
|
|
'c4fcca138b6abf6d443d48a6f0cd8833'
|
|
'aad79a2aa6d566c375d7bdd1b0767278'
|
|
#'12ef00fbc3a8c9594fea6aa55daff2aa'
|
|
'fa85e5cce5d723275b14365ba71a8aad')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
# added pam patch and i18n patch from fedora cvs
|
|
patch -Np1 -i $srcdir/coreutils-pam.patch || return 1
|
|
#patch -Np1 -i $srcdir/coreutils-i18n.patch || return 1
|
|
#patch -Np1 -i $srcdir/coreutils-6.10-configuration.patch || return 1
|
|
|
|
# from gentoo portage
|
|
patch -Np1 -i $srcdir/coreutils-uname.patch || return 1
|
|
|
|
autoreconf -v
|
|
./configure --prefix=/usr \
|
|
--enable-install-program=su \
|
|
--enable-no-install-program=groups,hostname,kill,uptime \
|
|
--enable-pam ac_cv_func_openat=no || return 1
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
#for f in hostname uptime groups kill; do
|
|
# rm -f ${pkgdir}/usr/{bin/${f},share/man/man1/${f}.1} || return 1
|
|
#done
|
|
|
|
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 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 ${pkgdir}/etc/pam.d/su
|
|
}
|