summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-04-11 13:14:59 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-04-13 10:50:16 +0200
commitbc0243c2a27fed94d32b407ee476c73271d05afe (patch)
tree12df4db611e5843c30891185983696b5d4ec81d7 /meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch
parent189f61dc4693470d0bfd0ac2a71d11d94e9dfeb7 (diff)
downloadmeta-openembedded-bc0243c2a27fed94d32b407ee476c73271d05afe.tar.gz
xserver-common: use git patches and add functions file
* otherwise we were depending on initscripts to provide it without RDEPENDing on it Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch')
-rw-r--r--meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch87
1 files changed, 87 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch b/meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch
new file mode 100644
index 0000000000..8791226cdd
--- /dev/null
+++ b/meta-oe/recipes-graphics/xserver-common/xserver-common-1.34/0007-use-own-functions-file-instead-etc-init.d-functions.patch
@@ -0,0 +1,87 @@
1From 63e6b9a54e1f12dbf7ddbfe3376fff4c382421a5 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Wed, 11 Apr 2012 14:36:02 +0200
4Subject: [PATCH 07/12] use own functions file instead /etc/init.d/functions
5
6* so we don't have to depend on initscripts
7
8Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
9---
10 Makefile | 1 +
11 X11/Xinit.d/11zaurus | 2 +-
12 X11/Xinit.d/12keymap | 2 +-
13 X11/functions | 11 +++++++++++
14 X11/xserver-common | 2 +-
15 5 files changed, 15 insertions(+), 3 deletions(-)
16 create mode 100644 X11/functions
17
18diff --git a/Makefile b/Makefile
19index e2d9af9..caa5de1 100644
20--- a/Makefile
21+++ b/Makefile
22@@ -23,6 +23,7 @@ install-program:
23 install -m 755 X11/Xserver $(DESTDIR)/etc/X11/Xserver
24 install -m 755 X11/Xsession $(DESTDIR)/etc/X11/Xsession
25 install -m 755 X11/xserver-common $(DESTDIR)/etc/X11/xserver-common
26+ install -m 755 X11/functions $(DESTDIR)/etc/X11/functions
27 install -d $(DESTDIR)/etc/X11/xmodmap
28 install -m 644 X11/xmodmap/*.xmodmap $(DESTDIR)/etc/X11/xmodmap
29 install -m 644 X11/xmodmap/xmodmap-* $(DESTDIR)/etc/X11/xmodmap
30diff --git a/X11/Xinit.d/11zaurus b/X11/Xinit.d/11zaurus
31index 54ea6f5..23e7713 100644
32--- a/X11/Xinit.d/11zaurus
33+++ b/X11/Xinit.d/11zaurus
34@@ -8,7 +8,7 @@ else
35 CHCK=chkhinge
36 fi
37
38-. /etc/init.d/functions
39+. /etc/X11/functions
40
41 $CHCK -e
42 if [ $? = 12 ]; then
43diff --git a/X11/Xinit.d/12keymap b/X11/Xinit.d/12keymap
44index 7eac296..b7a7f2d 100644
45--- a/X11/Xinit.d/12keymap
46+++ b/X11/Xinit.d/12keymap
47@@ -1,6 +1,6 @@
48 #!/bin/sh
49
50-. /etc/init.d/functions
51+. /etc/X11/functions
52
53 # since kdrive 1.4 there is no default keymap in server
54 xmodmap - </etc/X11/xmodmap/default.xmodmap
55diff --git a/X11/functions b/X11/functions
56new file mode 100644
57index 0000000..a1311ad
58--- /dev/null
59+++ b/X11/functions
60@@ -0,0 +1,11 @@
61+# -*-Shell-script-*-
62+#
63+# functions This file contains functions shared by few X11 scripts
64+# machine_id also exists in /etc/init.d/functions but some
65+# people don't use initscripts anymore
66+#
67+
68+machine_id() { # return the machine ID
69+ awk 'BEGIN { FS=": " } /Hardware/ \
70+ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
71+}
72diff --git a/X11/xserver-common b/X11/xserver-common
73index 6d8c9df..de92bb7 100644
74--- a/X11/xserver-common
75+++ b/X11/xserver-common
76@@ -30,7 +30,7 @@ if [ -f /etc/profile ]; then
77 . /etc/profile
78 fi
79
80-. /etc/init.d/functions
81+. /etc/X11/functions
82
83 fallback_screen_arg() {
84 geom=`fbset | grep geometry`
85--
861.7.8.5
87