summaryrefslogtreecommitdiffstats
path: root/x11/gdm
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2009-11-28 13:59:05 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2009-11-28 13:59:05 +0800
commit7cb827c5489117d632dca4330dd3f50c5a570f5b (patch)
tree36aab6956e723b7fd1dc2259d8c79803853832d4 /x11/gdm
parenta0dfb461133f22cd363af37e9e97670fc7bcac6e (diff)
downloadmarcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.tar
marcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.tar.gz
marcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.tar.bz2
marcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.tar.lz
marcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.tar.xz
marcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.tar.zst
marcuscom-ports-7cb827c5489117d632dca4330dd3f50c5a570f5b.zip
-Sync w/ FreeBSD.
-Reset the $FreeBSD$ while I am there. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13259 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile5
-rw-r--r--x11/gdm/pkg-install30
2 files changed, 4 insertions, 31 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 553399e2b..2a59be1b3 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -3,7 +3,7 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/gdm/Makefile,v 1.162 2009/10/25 00:14:31 marcus Exp $
+# $MCom: ports/x11/gdm/Makefile,v 1.163 2009/11/23 18:16:00 kwm Exp $
#
PORTNAME= gdm
@@ -26,6 +26,9 @@ RUN_DEPENDS= zenity:${PORTSDIR}/x11/zenity \
${LOCALBASE}/libexec/gnome-settings-daemon:${PORTSDIR}/sysutils/gnome-settings-daemon \
gnome-session:${PORTSDIR}/x11/gnome-session
+USERS= gdm
+GROUPS= gdm
+
USE_BZIP2= yes
USE_GETTEXT= yes
USE_LDCONFIG= yes
diff --git a/x11/gdm/pkg-install b/x11/gdm/pkg-install
index dffd607f2..97ae6b483 100644
--- a/x11/gdm/pkg-install
+++ b/x11/gdm/pkg-install
@@ -4,40 +4,10 @@ case $2 in
POST-INSTALL)
USER=gdm
GROUP=${USER}
- UID=92
- GID=${UID}
- PW=/usr/sbin/pw
CHMOD=/bin/chmod
CHOWN=/usr/sbin/chown
MKDIR=/bin/mkdir
- 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."
- uhome=`${PW} user show ${USER} | awk -F: '{print $9}'`
- if [ x"${uhome}" = x"/nonexistent" -o x"${uhome}" = x"/var/gdm" ]; then
- ${PW} usermod ${USER} -d "${PKG_PREFIX}/etc/gdm/home"
- fi
- else
- if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -d "${PKG_PREFIX}/etc/gdm/home" -s /sbin/nologin -c "GNOME Display Manager"
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
- fi
${MKDIR} -p /var/gdm
${MKDIR} -p /var/log/gdm
${CHMOD} 0755 /var/log/gdm