Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 287498 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-10 / +22 lines)
Line  Link Here
0
-- xinit.orig/files/xdm.confd-2
0
++ xinit/files/xdm.confd-2
Lines 10-13 CHECKVT=7 Link Here
10
# KDE-specific note: kdm is for the users of -kdeprefix and the kdm-4.3 is specified for
10
# KDE-specific note: kdm is for the users of -kdeprefix and the kdm-4.3 is specified for
11
# users of kdeprefix, where they can find possible versions by looking at the directories
11
# users of kdeprefix, where they can find possible versions by looking at the directories
12
# in /usr/kde/. Users of KDE 3 should use kdm-3.5.
12
# in /usr/kde/. Users of KDE 3 should use kdm-3.5.
13
# NOTE (2): If you want to use your custom DISPLAYMANAGER, you can specify a
14
# full path to an executable.
13
DISPLAYMANAGER="xdm"
15
DISPLAYMANAGER="xdm"
14
-- xinit.orig/files/xdm.initd-4
16
17
# If you specify a custom DISPLAYMANAGER value (one unsupported)
18
# you can also specify a custom pidfile that your application is
19
# supposed to use and that will be handled by start-stop-daemon
20
# to properly start/restart/stop it.
21
# If you don't specify any value and use an unsupported DISPLAYMANAGER
22
# CUSTOM_DISPLAYMANAGER_PIDFILE will be placed into
23
# /var/run/<DISPLAYMANAGER name>.pid
24
# CUSTOM_DISPLAYMANAGER_PIDFILE=""
25
++ xinit/files/xdm.initd-4
Lines 56-67 depend() { Link Here
56
56
57
setup_dm() {
57
setup_dm() {
58
	local MY_XDM="$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')"
58
	local MY_XDM="$(echo "${DISPLAYMANAGER}" | tr '[:upper:]' '[:lower:]')"
59
	local MY_CUSTOM_PIDFILE="$(echo "${CUSTOM_DISPLAYMANAGER_PIDFILE}" | tr '[:upper:]' '[:lower:]')"
60
	MY_CUSTOM_PIDFILE="${MY_CUSTOM_PIDFILE:-/var/run/$(basename ${MY_XDM}).pid}"
59
61
60
	# Load our root path from profile.env
62
	# Load our root path from profile.env
61
	# Needed for kdm
63
	# Needed for kdm
62
	PATH="${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")"
64
	PATH="${PATH}:$(. /etc/profile.env; echo "${ROOTPATH}")"
63
65
64
	case "${MY_XDM}" in
66
	case "${MY_XDM}" in
67
		xdm)
68
			EXE=/usr/bin/xdm
69
			PIDFILE=/var/run/xdm.pid
70
			;;
65
		kdm|kde)
71
		kdm|kde)
66
			EXE="$(which kdm)"
72
			EXE="$(which kdm)"
67
			PIDFILE=/var/run/kdm.pid
73
			PIDFILE=/var/run/kdm.pid
Lines 88-101 setup_dm() { Link Here
88
			PIDFILE=/var/run/gpe-dm.pid
94
			PIDFILE=/var/run/gpe-dm.pid
89
			;;
95
			;;
90
		*)
96
		*)
91
			EXE=
97
			if [ -x "${MY_XDM}" ] && [ -f "${MY_XDM}" ]; then
92
			# Fix #65586, where MY_XDM is empty so EXE=somedir
98
				EXE="${MY_XDM}"
93
			[ -x "/usr/bin/${MY_XDM}" ] && [ -f "/usr/bin/${MY_XDM}" ] \
99
				PIDFILE="${MY_CUSTOM_PIDFILE}"
94
				&& EXE="/usr/bin/${MY_XDM}"
95
			if [ -z "${EXE}" ] ; then
96
				EXE=/usr/bin/xdm
97
				PIDFILE=/var/run/xdm.pid
98
			fi
99
			;;
100
			;;
100
	esac
101
	esac
101
102

Return to bug 287498