summaryrefslogtreecommitdiff
path: root/x11/gdm/files
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-01-22 09:16:59 +0000
committerjmmv <jmmv@pkgsrc.org>2004-01-22 09:16:59 +0000
commitb1555a78218bac1fd77411f63b088a6ff389a70f (patch)
treed2f0893033369dd67a3699916a11b637f6a80041 /x11/gdm/files
parentda3533df63951081a5b85ffc66c478c90b049113 (diff)
downloadpkgsrc-b1555a78218bac1fd77411f63b088a6ff389a70f.tar.gz
- Create /var/gdm and /var/log/gdm directories during installation. These
are *REQUIRED* (in fact, only the former) to get gdm working. - Manually set 'procname' in the rc.d script so that 'gdm stop' works. - Allow the rc.d script to work w/o rc.subr. - Use PAM's buildlink2.mk file instead of a simple DEPENDS. - Remove useless stuff from PLIST. - Simplify Makefile a bit. - As a result, bump PKGREVISION to 1.
Diffstat (limited to 'x11/gdm/files')
-rwxr-xr-xx11/gdm/files/gdm.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/x11/gdm/files/gdm.sh b/x11/gdm/files/gdm.sh
index 20a4aa0338e..1e9976f1a4d 100755
--- a/x11/gdm/files/gdm.sh
+++ b/x11/gdm/files/gdm.sh
@@ -1,20 +1,28 @@
#!/bin/sh
#
-# $NetBSD: gdm.sh,v 1.1 2004/01/20 13:41:06 xtraeme Exp $
+# $NetBSD: gdm.sh,v 1.2 2004/01/22 09:16:59 jmmv Exp $
#
# PROVIDE: gdm
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown
-. /etc/rc.subr
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
name="gdm"
-rcvar=$name
+rcvar=${name}
command="@PREFIX@/bin/${name}"
-pidfile="@LOCALSTATEDIR@/run/${name}.pid"
+pidfile="/var/run/${name}.pid"
+procname="@PREFIX@/bin/gdm-binary"
required_files="@PKG_SYSCONFDIR@/gdm/gdm.conf"
extra_commands="reload"
-load_rc_config $name
-run_rc_command "$1"
+if [ -f /etc/rc.subr ]; then
+ load_rc_config ${name}
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${gdm_flags} ${command_args}
+fi