aports/community/shadow/shadow.post-upgrade
Jakub Jirutka ce03923931 community/shadow: split login utils into subpackage -login
Allow users to choose between login utils from util-linux and shadow.

Arch Linux, Fedora, and Void Linux prefers login utils from util-linux,
Debian and Gentoo prefers shadow.

Note that there are more commands implemented in both shadow and
util-linux - chfn, chsh, vigr, and vipw. These are tools for editing
passwd and group files, not login utils (they are located in login-utils
directory in the util-linux code base, but that's just nonsense) and they
are close to other shadow utils.

Related to cc45f381eb7304f9cbcce547abd3d97a3940dd0d
2021-12-20 20:28:57 +01:00

19 lines
502 B
Bash

#!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" '4.10-r0')" = '<' ]; then
cat >&2 <<-EOF
*
* Shadow login utils (faillog, lastlog, login, newgrp, nologin, sg, su) have
* been moved to the shadow-login subpackage. Note that most of these are also
* provided by the util-linux-login package, which is preferred over shadow.
*
* Shadow *conv utils (pwconv, pwunconv, grpconv, and grpunconv) have been
* moved to a subpackage. If you use them, run: apk add shadow-conv.
*
EOF
fi
exit 0