summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Arrifano <miknix@gentoo.org>2009-05-04 23:07:27 +0000
committerroot <root@miranda.amd64.dev.gentoo.org>2009-05-04 23:07:27 +0000
commit9d7e9638042e04c9cbb766ef06f7b35851fa8933 (patch)
tree6691cc931db04544ae8d41005e82fb164f6deb92 /gpe-xsession/gpe-dm/files
parent[x11-apps/xinit] Set pidfile for gpe-dm. (diff)
downloadgpe-9d7e9638042e04c9cbb766ef06f7b35851fa8933.tar.gz
gpe-9d7e9638042e04c9cbb766ef06f7b35851fa8933.tar.bz2
gpe-9d7e9638042e04c9cbb766ef06f7b35851fa8933.zip
[gpe-xsession/gpe-dm] Use /etc/init.d/xdm and /etc/X11/gpe/ instead.
Diffstat (limited to 'gpe-xsession/gpe-dm/files')
-rw-r--r--gpe-xsession/gpe-dm/files/Xinit16
-rw-r--r--gpe-xsession/gpe-dm/files/gpe-dm-noinitd.patch24
2 files changed, 40 insertions, 0 deletions
diff --git a/gpe-xsession/gpe-dm/files/Xinit b/gpe-xsession/gpe-dm/files/Xinit
new file mode 100644
index 0000000..e957a5c
--- /dev/null
+++ b/gpe-xsession/gpe-dm/files/Xinit
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Copied from gpe xserver-common
+
+export USER=root
+export HOME=/home/root
+if [ ! -d $HOME ] && [ -d /root ]; then
+ HOME=/root
+fi
+export XAPPLRESDIR=/usr/X11R6/lib/app-defaults
+export XFILESEARCHPATH=./%N%S%C.ad:/usr/X11R6/lib/X11/%L/%T/%N%S%C:/usr/X11R6/lib/X11/%l/%T/%N%S%C:/usr/X11R6/lib/X11/%T/%N%S%C:./%N%S.ad:/usr/X11R6/lib/X11/%L/%T/%N%S:/usr/X11R6/lib/X11/%l/%T/%N%S:/usr/X11R6/lib/X11/%T/%N%S:/usr/local/lib/X11/app-defaults/%N%S%C.ad
+
+export PATH=$PATH:/usr/X11R6/bin
+
+SYSSESSIONDIR=/etc/X11/Xinit.d
+
+exec run-parts $SYSSESSIONDIR
diff --git a/gpe-xsession/gpe-dm/files/gpe-dm-noinitd.patch b/gpe-xsession/gpe-dm/files/gpe-dm-noinitd.patch
new file mode 100644
index 0000000..237f36c
--- /dev/null
+++ b/gpe-xsession/gpe-dm/files/gpe-dm-noinitd.patch
@@ -0,0 +1,24 @@
+--- Makefile.am.old 2009-05-04 23:00:46.000000000 +0000
++++ Makefile.am 2009-05-04 23:01:10.000000000 +0000
+@@ -11,11 +11,7 @@
+
+ gpe_dm_SOURCES = gpe-dm.c
+
+-initdir = $(sysconfdir)/init.d
+-init_SCRIPTS = gpe-dm.init
+-
+ EXTRA_DIST = \
+- $(init_SCRIPTS) \
+ intltool-extract.in \
+ intltool-merge.in \
+ intltool-update.in
+@@ -25,9 +21,6 @@
+ intltool-merge \
+ intltool-update
+
+-install-data-hook:
+- cd $(DESTDIR)$(sysconfdir)/init.d && mv gpe-dm.init gpe-dm
+-
+ clean-local:
+ rm -f *.d *~
+