postinst is in kinit 5.44.0-0ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/sh
set -e
if [ "$1" = configure ]; then
# Try to setcap or fall back to setuid.
cap="CAP_SYS_RESOURCE=+ep"
path="/usr/lib/x86_64-linux-gnu/libexec/kf5/start_kdeinit"
if command -v setcap > /dev/null; then
if setcap $cap $path; then
echo "Setcap worked for $path!"
else
echo "Setcap failed for $path, falling back to setuid" >&2
chmod u+s $path
fi
else
echo "Setcap is not installed, falling back to setuid for $path" >&2
chmod u+s $path
fi
fi
exit 0
|