Date: Wednesday, October 19, 2022 @ 21:58:50 Author: dvzrv Revision: 458418
Remove shadow.install as it is not needed. Remove the .install file, as its only use-case (removing setuid/setgid, adding capabilities) is taken care of in the package build itself and pacman now fully supports xattrs: https://bugs.archlinux.org/task/71656 Modified: shadow/trunk/PKGBUILD Deleted: shadow/trunk/shadow.install ----------------+ PKGBUILD | 3 +-- shadow.install | 22 ---------------------- 2 files changed, 1 insertion(+), 24 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-19 20:50:33 UTC (rev 458417) +++ PKGBUILD 2022-10-19 21:58:50 UTC (rev 458418) @@ -15,10 +15,10 @@ 'attr' 'libattr.so' 'audit' 'libaudit.so' 'glibc' - 'libcap-ng' 'libxcrypt' 'libcrypt.so' 'pam' 'libpam.so' 'libpam_misc.so' ) +makedepends=(libcap) backup=( etc/default/useradd etc/login.defs @@ -25,7 +25,6 @@ etc/pam.d/{chage,{,ch,chg}passwd,group{add,del,mems,mod},newusers,shadow,user{add,del,mod}} ) options=(debug '!emptydirs') -install=shadow.install source=( "https://github.com/shadow-maint/shadow/releases/download/v$pkgver/shadow-$pkgver.tar.xz"{,.asc} chgpasswd Deleted: shadow.install =================================================================== --- shadow.install 2022-10-19 20:50:33 UTC (rev 458417) +++ shadow.install 2022-10-19 21:58:50 UTC (rev 458418) @@ -1,22 +0,0 @@ -setcaps() { - _setcap() { - if filecap "$1" "$2"; then - chmod -s "$1" - fi - } - - # shadow ships these as setuid, but if we can apply file caps, use those instead. - # 'filecap' insists on absolute paths - _setcap /usr/bin/newuidmap setuid - _setcap /usr/bin/newgidmap setgid -} - -post_install() { - setcaps -} - -post_upgrade() { - setcaps -} - -# vim:set ts=2 sw=2 et:
