mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 23:24:38 +08:00
- bash-completion: remove duplicate part in util-linux - util-linux: update and build against new ncurses group
101 lines
3.1 KiB
Bash
101 lines
3.1 KiB
Bash
pkgname=util-linux
|
|
pkgver=2.29
|
|
pkgrel=1
|
|
pkgdesc="Miscellaneous system utilities for Linux"
|
|
url="https://www.kernel.org/pub/linux/utils/util-linux/"
|
|
arch=('x86_64')
|
|
groups=('base')
|
|
depends=('pam' 'shadow' 'coreutils' 'glibc' 'ncurses')
|
|
makedepends=('systemd' 'python3')
|
|
optdepends=('python3: python bindings to libmount')
|
|
conflicts=('util-linux-ng' 'eject')
|
|
provides=("util-linux-ng=${pkgver}" 'eject')
|
|
license=('GPL2')
|
|
options=('strip' 'debug')
|
|
validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284') # Karel Zak
|
|
source=("https://www.kernel.org/pub/linux/utils/util-linux/v$pkgver/$pkgname-$pkgver.tar."{xz,sign}
|
|
'0001-sfdisk-don-t-be-silent-when-list-non-existing-device.patch'
|
|
'0001-sfdisk-cleanup-dump-error-messages.patch'
|
|
'0001-sfdisk-support-empty-label-use-case.patch'
|
|
'0001-chrt-default-to-SCHED_RR-policy.patch'
|
|
'0001-lsns-Fix-parser-for-proc-pid-stat-which-is-including.patch'
|
|
pam-{login,common,su})
|
|
backup=(etc/pam.d/chfn
|
|
etc/pam.d/chsh
|
|
etc/pam.d/login
|
|
etc/pam.d/su
|
|
etc/pam.d/su-l)
|
|
md5sums=('07b6845f48a421ad5844aa9d58edb837'
|
|
'SKIP'
|
|
'3fce7192ce1b3d97fdffd0226ed63a90'
|
|
'2f3c061865360170cacda948035fd02d'
|
|
'6d2e3915124938577f0ff18ef701c87f'
|
|
'168c1cb2cfe7d4eddfc6e3f3b19d3ced'
|
|
'68c2076a9a09564ba0c9776540a175fa'
|
|
'4368b3f98abd8a32662e094c54e7f9b1'
|
|
'a31374fef2cba0ca34dfc7078e2969e4'
|
|
'fa85e5cce5d723275b14365ba71a8aad')
|
|
validpgpkeys=('B0C64D14301CC6EFAEDF60E4E4B71D5EEC39C284') # Karel Zak
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
for patch in $(ls $srcdir/*.patch); do
|
|
patch -Np1 -i $patch
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib \
|
|
--bindir=/usr/bin \
|
|
--sbindir=/usr/sbin \
|
|
--localstatedir=/run \
|
|
--enable-fs-paths-extra=/usr/bin:/usr/sbin \
|
|
--enable-raw \
|
|
--enable-vipw \
|
|
--enable-newgrp \
|
|
--enable-chfn-chsh \
|
|
--enable-write \
|
|
--enable-mesg \
|
|
--disable-tailf \
|
|
--enable-libmount-force-mountinfo \
|
|
--with-python=3
|
|
|
|
make
|
|
}
|
|
|
|
# only bc test fails, leaving dep to test the rest
|
|
#check() {
|
|
# make -C "${pkgname}-${pkgver}" check
|
|
#}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
cd "${pkgdir}"
|
|
|
|
chmod 4755 "$pkgdir"/usr/bin/{newgrp,ch{sh,fn}}
|
|
|
|
# install PAM files for login-utils
|
|
install -Dm644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chfn"
|
|
install -m644 "$srcdir/pam-common" "$pkgdir/etc/pam.d/chsh"
|
|
install -m644 "$srcdir/pam-login" "$pkgdir/etc/pam.d/login"
|
|
install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su"
|
|
install -m644 "$srcdir/pam-su" "${pkgdir}/etc/pam.d/su-l"
|
|
|
|
# TODO(dreisner): offer this upstream?
|
|
sed -i '/ListenStream/ aRuntimeDirectory=uuidd' "$pkgdir/usr/lib/systemd/system/uuidd.socket"
|
|
|
|
# tailf has been deprecated for a while. let's not include it anymore.
|
|
rm \
|
|
"$pkgdir"/usr/bin/tailf \
|
|
"$pkgdir"/usr/share/bash-completion/completions/tailf \
|
|
"$pkgdir"/usr/share/man/man1/tailf.1
|
|
|
|
#
|
|
}
|