mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
fe1bd7a63e
PR: 30955 Submitted by: Stijn Hoop <stjin@win.tue.nl>
22 lines
601 B
Plaintext
22 lines
601 B
Plaintext
if [ "$2" != "INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
if ! id -u gdm > /dev/null 2>&1; then
|
|
echo "You need an account \"gdm\" to install this package."
|
|
echo "Please add it by hand (try \"man vipw\") and try again."
|
|
echo ""
|
|
echo "An example passwd entry is:"
|
|
echo "gdm:*:91:91::0:0:GNOME Display Manager:/nonexistent:/nonexistent"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
if ! grep -s ^gdm: /etc/group > /dev/null 2>&1; then
|
|
echo "You need a group \"gdm\" to install this package."
|
|
echo "Please add it by hand and try again."
|
|
echo "An example /etc/group entry is:"
|
|
echo "gdm:*:91:gdm"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
exit 0
|