summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11/gdm2/pkg-install10
1 files changed, 4 insertions, 6 deletions
diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install
index b8f29b328..13e26f4bf 100644
--- a/x11/gdm2/pkg-install
+++ b/x11/gdm2/pkg-install
@@ -1,10 +1,7 @@
#!/bin/sh
-if [ -n "${PACKAGE_BUILDING}" ]; then
- exit 0
-fi
-
-if [ "$2" = "POST-INSTALL" ]; then
+case $2 in
+POST-INSTALL)
USER=gdm
GROUP=${USER}
UID=92
@@ -39,4 +36,5 @@ if [ "$2" = "POST-INSTALL" ]; then
${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm
${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm
exit 0
-fi
+ ;;
+esac