summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Baergen <joshuabaergen@gentoo.org>2005-09-06 19:33:51 +0000
committerJoshua Baergen <joshuabaergen@gentoo.org>2005-09-06 19:33:51 +0000
commitbf81e8e0fbb4e9c0ba4376cd1165fbaefae48eb9 (patch)
tree78769a75e92246db920270fb2c625403eb663132 /x11-apps/xinit
parentStable on ppc64 (diff)
downloadgentoo-2-bf81e8e0fbb4e9c0ba4376cd1165fbaefae48eb9.tar.gz
gentoo-2-bf81e8e0fbb4e9c0ba4376cd1165fbaefae48eb9.tar.bz2
gentoo-2-bf81e8e0fbb4e9c0ba4376cd1165fbaefae48eb9.zip
Fixed snapshot SRC_URI and added xdm init script.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'x11-apps/xinit')
-rw-r--r--x11-apps/xinit/ChangeLog8
-rw-r--r--x11-apps/xinit/Manifest5
-rw-r--r--x11-apps/xinit/files/digest-xinit-0.99.1_pre20050905-r11
-rwxr-xr-xx11-apps/xinit/files/xdm.start147
-rw-r--r--x11-apps/xinit/xinit-0.99.1_pre20050905-r1.ebuild45
5 files changed, 204 insertions, 2 deletions
diff --git a/x11-apps/xinit/ChangeLog b/x11-apps/xinit/ChangeLog
index 559c1806b5ef..d2540e07ef64 100644
--- a/x11-apps/xinit/ChangeLog
+++ b/x11-apps/xinit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for x11-apps/xinit
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/ChangeLog,v 1.11 2005/09/06 16:01:01 joshuabaergen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/ChangeLog,v 1.12 2005/09/06 19:33:51 joshuabaergen Exp $
+
+*xinit-0.99.1_pre20050905-r1 (06 Sep 2005)
+
+ 06 Sep 2005; Joshua Baergen <joshuabaergen@gentoo.org> +files/xdm.start,
+ +xinit-0.99.1_pre20050905-r1.ebuild:
+ Fixed snapshot SRC_URI and added xdm init script.
*xinit-0.99.1_pre20050905 (06 Sep 2005)
diff --git a/x11-apps/xinit/Manifest b/x11-apps/xinit/Manifest
index c0f16fcc5f54..ea2e2f25d305 100644
--- a/x11-apps/xinit/Manifest
+++ b/x11-apps/xinit/Manifest
@@ -1,11 +1,14 @@
-MD5 79bbc5f4f600a9fc048ebfd77edc5b11 ChangeLog 1932
+MD5 60ef2be50ebca25b01e311c827193aba ChangeLog 2143
MD5 09a425df6f174ca8cca3cd74057060cf xinit-0.99.0-r2.ebuild 936
MD5 949b0051281a4c3b91a89b332d56fa23 xinit-0.99.1_pre20050905.ebuild 1072
+MD5 6ca45a898b14c05688755ae98feea5e3 xinit-0.99.1_pre20050905-r1.ebuild 1086
MD5 a0ce0f1c8a5771a1194f5895211a3f66 files/Xsession 2187
MD5 2b07bc84cc3afab6b4de90b9e9c597c3 files/chooser.sh 1566
MD5 a2cf0fce1909bbe52e7485c8143baf66 files/digest-xinit-0.99.0-r2 64
MD5 965333ca03efda8a7302620a63c429f6 files/startDM.sh 922
+MD5 029b596255324c59e13c181a44f6b360 files/xdm.start 3416
MD5 0d6bf670fd73b96de81daaca7aa1c460 files/xinitrc 910
MD5 b6ebfe34cdd7df554f78ac7973192429 files/digest-xinit-0.99.1_pre20050905 76
+MD5 b6ebfe34cdd7df554f78ac7973192429 files/digest-xinit-0.99.1_pre20050905-r1 76
MD5 c6b1ec1d810ca971703b0cc7291d3e7c files/gentoo-startx-customization.patch 3931
MD5 8d14d094be7182b9870a0727a5d8e87b files/nolisten-tcp-and-black-background.patch 381
diff --git a/x11-apps/xinit/files/digest-xinit-0.99.1_pre20050905-r1 b/x11-apps/xinit/files/digest-xinit-0.99.1_pre20050905-r1
new file mode 100644
index 000000000000..0cff338e9903
--- /dev/null
+++ b/x11-apps/xinit/files/digest-xinit-0.99.1_pre20050905-r1
@@ -0,0 +1 @@
+MD5 820b78198ac1c9c554870e7322e3ba7a xinit-0.99.1_pre20050905.tar.bz2 91623
diff --git a/x11-apps/xinit/files/xdm.start b/x11-apps/xinit/files/xdm.start
new file mode 100755
index 000000000000..fe4b191d2ea0
--- /dev/null
+++ b/x11-apps/xinit/files/xdm.start
@@ -0,0 +1,147 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/files/xdm.start,v 1.1 2005/09/06 19:33:51 joshuabaergen Exp $
+
+# This is here to serve as a note to myself, and future developers.
+#
+# Any Display manager (gdm,kdm,xdm) have the following problem: if
+# it is started before any getty, and no vt is specified, it will
+# usually run on vt2. When the getty on vt2 then starts, and the
+# DM is already started, the getty will take control of the keyboard,
+# leaving us with a "dead" keyboard.
+#
+# Resolution: add the following line to /etc/inittab
+#
+# x:a:once:/etc/X11/startDM.sh
+#
+# and have /etc/X11/startDM.sh start the DM in daemon mode if
+# a lock is present (with the info of what DM should be started),
+# else just fall through.
+#
+# How this basically works, is the "a" runlevel is a additional
+# runlevel that you can use to fork processes with init, but the
+# runlevel never gets changed to this runlevel. Along with the "a"
+# runlevel, the "once" key word means that startDM.sh will only be
+# run when we specify it to run, thus eliminating respawning
+# startDM.sh when "xdm" is not added to the default runlevel, as was
+# done previously.
+#
+# This script then just calls "telinit a", and init will run
+# /etc/X11/startDM.sh after the current runlevel completes (this
+# script should only be added to the actual runlevel the user is
+# using).
+#
+# Martin Schlemmer
+# aka Azarah
+# 04 March 2002
+
+
+# Start X Font Server before X
+depend() {
+ use xfs hotplug
+}
+
+setup_dm() {
+ source /etc/profile.env
+ export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
+
+ local MY_XDM="$(echo ${DISPLAYMANAGER} | awk '{ print tolower($1) }')"
+ case "${MY_XDM}" in
+ kdm|kde|kde2|kde3)
+ EXE="$(which kdm)"
+ ;;
+ entrance*)
+ EXE="$(which entranced)"
+ ;;
+ gdm|gnome)
+ EXE=/usr/bin/gdm
+ ;;
+ wdm)
+ EXE=/usr/bin/wdm
+ ;;
+ *)
+ EXE=
+ # Fix #65586, where MY_XDM is empty so EXE=somedir
+ [ -x "/usr/bin/${MY_XDM}" -a -f "/usr/bin/${MY_XDM}" ] \
+ && EXE="/usr/bin/${MY_XDM}"
+ [ -z "${EXE}" ] && EXE="/usr/bin/xdm"
+ ;;
+ esac
+
+ test ! -x "${EXE}" && EXE=/usr/bin/xdm
+
+ SERVICE="${EXE##*/}"
+}
+
+cmdline_opt() {
+ if [[ "$#" -ne 1 ]]; then
+ return 1
+ fi
+
+ for opt in $(</proc/cmdline); do
+ case ${opt} in
+ ${1}) eval ${1}="true" ;;
+ esac
+ done
+}
+
+nox() {
+ # Don't start X if we were passed 'nox' at boot (#83680)
+ cmdline_opt nox
+
+ if [[ "$?" -ne 0 ]]; then
+ return 1
+ fi
+
+ if [[ -n "${nox}" ]]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
+start() {
+ setup_dm
+
+ if nox; then
+ einfo "Skipping ${EXE}, received 'nox'"
+ else
+ ebegin "Setting up ${SERVICE}"
+ #save the prefered DM
+ save_options "service" "${EXE}"
+ #tell init to run /etc/X11/startDM.sh after current
+ #runlevel is finished (should *not* be in the "boot"
+ # runlevel).
+ /sbin/telinit a &>/dev/null
+ eend 0
+ fi
+
+}
+
+stop() {
+ local retval=0
+ local curvt="$(fgconsole)"
+ local myexe="$(get_options "service")"
+ local myservice="${myexe##*/}"
+
+ ebegin "Stopping ${myservice}"
+ rm -f ${svcdir}/options/xdm/service
+
+ if [ "$(ps -A | grep -e "${myservice}")" ]
+ then
+ start-stop-daemon --stop --quiet \
+ --exec ${myexe} &>/dev/null
+
+ retval=$?
+ fi
+
+ #switch back to original vt
+ chvt "${curvt}" &>/dev/null
+ eend ${retval} "Error stopping ${myservice}."
+
+ return ${retval}
+}
+
+
+# vim:ts=4
diff --git a/x11-apps/xinit/xinit-0.99.1_pre20050905-r1.ebuild b/x11-apps/xinit/xinit-0.99.1_pre20050905-r1.ebuild
new file mode 100644
index 000000000000..9a6d9ac3590b
--- /dev/null
+++ b/x11-apps/xinit/xinit-0.99.1_pre20050905-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/xinit-0.99.1_pre20050905-r1.ebuild,v 1.1 2005/09/06 19:33:51 joshuabaergen Exp $
+
+inherit versionator
+
+# Must be before x-modular eclass is inherited
+SNAPSHOT="yes"
+
+# Fix ${S} in x-modular for pre ebuilds
+MY_P="${PN}-$(get_version_component_range 1-3)"
+S="${WORKDIR}/${MY_P}"
+
+inherit x-modular
+
+DESCRIPTION="X.Org xinit application"
+KEYWORDS="~amd64 ~arm ~s390 ~sh ~sparc ~x86"
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+# Snapshots don't reside on fdo servers
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+PATCHES="${FILESDIR}/nolisten-tcp-and-black-background.patch
+ ${FILESDIR}/gentoo-startx-customization.patch"
+
+src_unpack() {
+ x-modular_unpack_source
+ x-modular_patch_source
+
+ sed -i -e "s:^XINITDIR.*:XINITDIR = \$(sysconfdir)/X11/xinit:g" ${S}/Makefile.am
+
+ x-modular_reconf_source
+}
+
+src_install() {
+ x-modular_src_install
+ exeinto /etc/X11
+ doexe ${FILESDIR}/chooser.sh ${FILESDIR}/startDM.sh
+ exeinto /etc/X11/Sessions
+ doexe ${FILESDIR}/Xsession
+ exeinto /etc/X11/xinit
+ doexe ${FILESDIR}/xinitrc
+ newinitd ${FILESDIR}/xdm.start xdm
+}