summaryrefslogtreecommitdiffstats
path: root/x11/gdm
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-02-04 14:07:29 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-02-04 14:07:29 +0800
commit891ccedaddf0900b06cecf610320fe66dba9a7d5 (patch)
treee6b198d1c951d47b7087f46d1cb6a8207ec3f7f4 /x11/gdm
parentc5d73f90b049bb7f4dfda2d207b15365b7ba44d1 (diff)
downloadmarcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.tar
marcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.tar.gz
marcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.tar.bz2
marcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.tar.lz
marcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.tar.xz
marcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.tar.zst
marcuscom-ports-891ccedaddf0900b06cecf610320fe66dba9a7d5.zip
Make sure the vty-checker loop is put in the background so GDM will not tie
up the boot process while it's waiting for the VTYs to become active. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10333 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile4
-rw-r--r--x11/gdm/files/gdm.in15
2 files changed, 12 insertions, 7 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 03b45ac48..9fa0cf9f1 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -3,12 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/gdm/Makefile,v 1.101 2008/02/03 00:07:45 marcus Exp $
+# $MCom: ports/x11/gdm/Makefile,v 1.102 2008/02/03 20:52:18 mezz Exp $
#
PORTNAME= gdm
PORTVERSION= 2.21.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/x11/gdm/files/gdm.in b/x11/gdm/files/gdm.in
index e8c3acc38..c90e98560 100644
--- a/x11/gdm/files/gdm.in
+++ b/x11/gdm/files/gdm.in
@@ -17,17 +17,21 @@ gdm_enable=${gdm_enable-${gnome_enable}}
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
-name=gdm
+name="gdm"
rcvar=`set_rcvar`
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
procname="%%PREFIX%%/sbin/gdm-binary"
+start_cmd="gdm_start"
-start_precmd="gdm_precmd"
-
-gdm_precmd()
+gdm_start()
{
- iter=0
+ if ! checkyesno gdm_enable ; then
+ return 0
+ fi
+ echo "Starting ${name}."
+
+ ( iter=0
while ! %%LOCALBASE%%/bin/vty-checker ; do
if [ ${iter} -eq 60 ]; then
break
@@ -35,6 +39,7 @@ gdm_precmd()
sleep 1
iter=$(expr ${iter} + 1)
done
+ ${command} ) &
}
load_rc_config ${name}