aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorFlorent Thoumie <flz@FreeBSD.org>2009-09-06 21:18:50 +0000
committerFlorent Thoumie <flz@FreeBSD.org>2009-09-06 21:18:50 +0000
commit80ce349ead781fafb5528d69310848254d4afbf8 (patch)
tree9e4543908f3bf06a3af78267b4523928d41925b9 /x11
parent082f117cfc49edb878d4e17e43719ab6e461af0b (diff)
downloadports-80ce349ead781fafb5528d69310848254d4afbf8.tar.gz
ports-80ce349ead781fafb5528d69310848254d4afbf8.zip
Notes
Diffstat (limited to 'x11')
-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 4d9d5e2e3165..9a6e1a7baf58 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gdm
PORTVERSION= 2.26.1
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= x11 gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@@ -24,6 +24,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 788a1a610c81..4adf27abbb43 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