shadow: provide a working sg(1) cmd.

This commit is contained in:
Juan RP 2015-02-22 12:03:15 +01:00
parent bea1fe5f05
commit 49535ccad4

View file

@ -1,7 +1,7 @@
# Template file for 'shadow'
pkgname=shadow
version=4.2.1
revision=4
revision=5
build_style=gnu-configure
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
--libdir=/usr/lib --enable-shared --disable-static
@ -32,6 +32,9 @@ homepage="http://pkg-shadow.alioth.debian.org"
distfiles="http://pkg-shadow.alioth.debian.org/releases/$pkgname-$version.tar.xz"
checksum=3b0893d1476766868cd88920f4f1231c4795652aa407569faff802bcda0f3d41
# sg now provided by shadow
replaces="util-linux<2.26_2"
pre_configure() {
autoreconf -fi
@ -76,9 +79,10 @@ post_install() {
rm -f ${DESTDIR}/usr/share/man/man1/groups.1
# Remove utilities provided by util-linux and logoutd.
mv ${DESTDIR}/usr/bin/{newgrp,sg}
rm \
$DESTDIR/usr/bin/{chsh,chfn,sg} \
$DESTDIR/usr/bin/{newgrp,login,su} \
$DESTDIR/usr/bin/{login,su,chsh,chfn} \
$DESTDIR/usr/sbin/{nologin,logoutd,vipw,vigr}
# ...and their many man pages