summaryrefslogtreecommitdiff
path: root/x11/gdm2/pkg-req
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gdm2/pkg-req')
-rw-r--r--x11/gdm2/pkg-req21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/gdm2/pkg-req b/x11/gdm2/pkg-req
new file mode 100644
index 000000000000..22dd46c6f7ad
--- /dev/null
+++ b/x11/gdm2/pkg-req
@@ -0,0 +1,21 @@
+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