# Maintainer: Sébastien "Seblu" Luttringer # Maintainer: Tobias Powalowski # Contributor: Bartłomiej Piotrowski # Contributor: Allan McRae # Contributor: judd # SELinux Maintainer: Nicolas Iooss (nicolas iooss m4x org) # SELinux Contributor: Timothée Ravier # SELinux Contributor: Nicky726 (Nicky726 gmail com) # # This PKGBUILD is maintained on https://github.com/archlinuxhardened/selinux. # If you want to help keep it up to date, please open a Pull Request there. pkgname=coreutils-selinux pkgver=9.5 pkgrel=1 pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system with SELinux support' arch=('x86_64' 'aarch64') license=('GPL-3.0-or-later' 'GFDL-1.3-or-later') url='https://www.gnu.org/software/coreutils/' groups=('selinux') depends=('glibc' 'acl' 'attr' 'gmp' 'libcap' 'openssl' 'libselinux') conflicts=("${pkgname/-selinux}" "selinux-${pkgname/-selinux}") provides=("${pkgname/-selinux}=${pkgver}-${pkgrel}" "selinux-${pkgname/-selinux}=${pkgver}-${pkgrel}") source=("https://ftp.gnu.org/gnu/${pkgname/-selinux}/${pkgname/-selinux}-$pkgver.tar.xz"{,.sig}) validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady sha256sums=('cd328edeac92f6a665de9f323c93b712af1858bc2e0d88f3f7100469470a1b8a' 'SKIP') prepare() { cd ${pkgname/-selinux}-$pkgver # apply patch from the source array (should be a pacman feature) local src for src in "${source[@]}"; do src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue echo "Applying patch $src..." patch -Np1 < "../$src" done # tail -F fails to find out that files are removed, in test VM # so disable the tests which verify this sed '/^ tests\/tail\/assert\.sh\s/d' -i tests/local.mk sed '/^ tests\/tail\/inotify-dir-recreate\.sh\s/d' -i tests/local.mk # some tests create directories with long name, which does not work on GitHub Actions sed '/^ tests\/du\/long-from-unreadable\.sh\s/d' -i tests/local.mk sed '/^ tests\/rm\/deep-2\.sh\s/d' -i tests/local.mk } build() { cd ${pkgname/-selinux}-$pkgver aclocal -I m4 autoconf -f autoheader -f automake -f ./configure \ --prefix=/usr \ --libexecdir=/usr/lib \ --with-openssl \ --enable-no-install-program=groups,hostname,kill,uptime \ --with-selinux make } check() { cd ${pkgname/-selinux}-$pkgver make check } package() { cd ${pkgname/-selinux}-$pkgver make DESTDIR="$pkgdir" install } # vim:set ts=2 sw=2 et: