summaryrefslogtreecommitdiffstats
path: root/x11/gdm2/pkg-install
diff options
context:
space:
mode:
author(no author) <(no author)@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-15 05:59:50 +0800
committer(no author) <(no author)@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-15 05:59:50 +0800
commit73cb2357a7c7f905403cf41592bcbd7286fd85ae (patch)
tree2f5e26903a1f136a9e2f54af42475b280a215a6d /x11/gdm2/pkg-install
parentfd170dfee433454a5e1f74c295bf23f3835894c0 (diff)
downloadmarcuscom-ports-GNOME_2_6.tar
marcuscom-ports-GNOME_2_6.tar.gz
marcuscom-ports-GNOME_2_6.tar.bz2
marcuscom-ports-GNOME_2_6.tar.lz
marcuscom-ports-GNOME_2_6.tar.xz
marcuscom-ports-GNOME_2_6.tar.zst
marcuscom-ports-GNOME_2_6.zip
This commit was manufactured by cvs2svn to create branch 'GNOME_2_6'.GNOME_2_6
git-svn-id: svn://creme-brulee.marcuscom.com/ports/branches/GNOME_2_6@2058 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm2/pkg-install')
-rw-r--r--x11/gdm2/pkg-install42
1 files changed, 0 insertions, 42 deletions
diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install
deleted file mode 100644
index b8f29b328..000000000
--- a/x11/gdm2/pkg-install
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-if [ -n "${PACKAGE_BUILDING}" ]; then
- exit 0
-fi
-
-if [ "$2" = "POST-INSTALL" ]; then
- USER=gdm
- GROUP=${USER}
- UID=92
- GID=${UID}
- PW=/usr/sbin/pw
- CHMOD=/bin/chmod
- CHOWN=/usr/sbin/chown
-
- if ${PW} group show "${GROUP}" 2>/dev/null; then
- echo "You already have a group \"${GROUP}\", so I will use it."
- else
- if ${PW} groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
- fi
-
- if ${PW} user show "${USER}" 2>/dev/null; then
- echo "You already have a user \"${USER}\", so I will use it."
- else
- if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d "/nonexistent" -s /sbin/nologin -c "GNOME Display Manager"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
- ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm
- ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm
- exit 0
-fi