summaryrefslogtreecommitdiffstats
path: root/app-misc/lcdproc/files
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-misc/lcdproc/files
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'app-misc/lcdproc/files')
-rw-r--r--app-misc/lcdproc/files/LCDd22
-rw-r--r--app-misc/lcdproc/files/lcdproc21
-rw-r--r--app-misc/lcdproc/files/lcdproc-ds-adas.patch91
-rw-r--r--app-misc/lcdproc/files/lcdproc.confd16
4 files changed, 150 insertions, 0 deletions
diff --git a/app-misc/lcdproc/files/LCDd b/app-misc/lcdproc/files/LCDd
new file mode 100644
index 0000000..1d9ddba
--- /dev/null
+++ b/app-misc/lcdproc/files/LCDd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/files/LCDd,v 1.7 2004/10/05 22:21:14 vapier Exp $
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting LCDd"
+ start-stop-daemon --start --quiet -m --pidfile /var/run/LCDd.pid \
+ --background --exec /usr/sbin/LCDd -- -s -f -c /etc/LCDd.conf
+ sleep 1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping LCDd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/LCDd.pid
+ eend $?
+}
diff --git a/app-misc/lcdproc/files/lcdproc b/app-misc/lcdproc/files/lcdproc
new file mode 100644
index 0000000..95e7ba7
--- /dev/null
+++ b/app-misc/lcdproc/files/lcdproc
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/files/lcdproc,v 1.10 2004/07/14 21:32:56 agriffis Exp $
+
+depend(){
+ need LCDd
+}
+start() {
+ source /etc/lcdproc.conf
+ ebegin "Starting lcdproc"
+ start-stop-daemon --start --background \
+ --exec /usr/bin/lcdproc -- ${SCREENS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lcdproc"
+ start-stop-daemon --stop --exec /usr/bin/lcdproc
+ eend $?
+}
diff --git a/app-misc/lcdproc/files/lcdproc-ds-adas.patch b/app-misc/lcdproc/files/lcdproc-ds-adas.patch
new file mode 100644
index 0000000..4fb3b87
--- /dev/null
+++ b/app-misc/lcdproc/files/lcdproc-ds-adas.patch
@@ -0,0 +1,91 @@
+diff -dPNur lcdproc-0.4.5/server/drivers/MtxOrb.c lcdproc-0.4.5-new/server/drivers/MtxOrb.c
+--- lcdproc-0.4.5/server/drivers/MtxOrb.c 2003-02-03 20:53:58.000000000 +0400
++++ lcdproc-0.4.5-new/server/drivers/MtxOrb.c 2006-05-28 04:29:14.000000000 +0500
+@@ -114,6 +114,7 @@
+
+ static char pause_key = MTXORB_DEF_PAUSE_KEY, back_key = MTXORB_DEF_BACK_KEY;
+ static char forward_key = MTXORB_DEF_FORWARD_KEY, main_menu_key = MTXORB_DEF_MAIN_MENU_KEY;
++static char enter_key = MTXORB_DEF_ENTER_KEY, escape_key = MTXORB_DEF_ESCAPE_KEY;
+ static int keypad_test_mode = 0;
+
+ static int def[9] = { -1, -1, -1, -1, -1, -1, -1, -1, -1 };
+@@ -326,6 +327,14 @@
+ /* main_menu_key */
+ main_menu_key = MtxOrb_parse_keypad_setting (DriverName, "MainMenuKey", MTXORB_DEF_MAIN_MENU_KEY);
+ report (RPT_DEBUG, "MtxOrb: Using \"%c\" as main_menu_key", main_menu_key);
++
++ /* enter_key */
++ enter_key = MtxOrb_parse_keypad_setting (DriverName, "EnterKey", MTXORB_DEF_ENTER_KEY);
++ report (RPT_DEBUG, "MtxOrb: Using \"%c\" as enter_key", enter_key);
++
++ /* escape_key */
++ escape_key = MtxOrb_parse_keypad_setting (DriverName, "EscapeKey", MTXORB_DEF_ESCAPE_KEY);
++ report (RPT_DEBUG, "MtxOrb: Using \"%c\" as escape_key", escape_key);
+ }
+
+ /* End of config file parsing*/
+@@ -1162,6 +1171,10 @@
+ in = INPUT_FORWARD_KEY;
+ } else if (in==main_menu_key) {
+ in = INPUT_MAIN_MENU_KEY;
++ } else if (in==enter_key) {
++ in = INPUT_ENTER_KEY;
++ } else if (in==escape_key) {
++ in = INPUT_ESCAPE_KEY;
+ }
+ /*TODO: add more translations here (anything flexible that can be done from LCDd.conf ...)*/
+ else {
+diff -dPNur lcdproc-0.4.5/server/drivers/MtxOrb.h lcdproc-0.4.5-new/server/drivers/MtxOrb.h
+--- lcdproc-0.4.5/server/drivers/MtxOrb.h 2002-02-21 01:08:49.000000000 +0400
++++ lcdproc-0.4.5-new/server/drivers/MtxOrb.h 2006-05-28 04:29:52.000000000 +0500
+@@ -62,7 +62,8 @@
+ #define MTXORB_DEF_BACK_KEY MTXORB_KEY_LEFT
+ #define MTXORB_DEF_FORWARD_KEY MTXORB_KEY_RIGHT
+ #define MTXORB_DEF_MAIN_MENU_KEY MTXORB_KEY_DOWN
+-
++#define MTXORB_DEF_ENTER_KEY 'L'
++#define MTXORB_DEF_ESCAPE_KEY 'B'
+
+ #endif
+
+diff -dPNur lcdproc-0.4.5/server/input.h lcdproc-0.4.5-new/server/input.h
+--- lcdproc-0.4.5/server/input.h 2002-04-08 23:34:13.000000000 +0500
++++ lcdproc-0.4.5-new/server/input.h 2006-05-28 04:21:41.000000000 +0500
+@@ -21,10 +21,12 @@
+ * You should not change these values, as some drivers still return
+ * A, B, C, D directly without using these defines!
+ */
+-#define INPUT_PAUSE_KEY 'A'
+-#define INPUT_BACK_KEY 'B'
+-#define INPUT_FORWARD_KEY 'C'
+-#define INPUT_MAIN_MENU_KEY 'D'
++#define INPUT_ESCAPE_KEY 'U'
++#define INPUT_ENTER_KEY 'V'
++#define INPUT_PAUSE_KEY 'W'
++#define INPUT_BACK_KEY 'X'
++#define INPUT_FORWARD_KEY 'Y'
++#define INPUT_MAIN_MENU_KEY 'Z'
+
+ #define DEFAULT_FREEPAUSEKEY 0
+ #define DEFAULT_FREEBACKKEY 0
+diff -dPNur lcdproc-0.4.5/server/menu.c lcdproc-0.4.5-new/server/menu.c
+--- lcdproc-0.4.5/server/menu.c 2002-04-11 00:31:23.000000000 +0500
++++ lcdproc-0.4.5-new/server/menu.c 2006-05-28 04:47:49.000000000 +0500
+@@ -142,7 +142,7 @@
+
+ /* Handle the key according to the keybindings...*/
+ switch (key) {
+- case INPUT_MAIN_MENU_KEY:
++ case INPUT_ESCAPE_KEY:
+ done = 1;
+ break;
+ case INPUT_BACK_KEY:
+@@ -159,7 +159,7 @@
+ if (menu[info.selected + 1].text)
+ info.selected++;
+ break;
+- case INPUT_PAUSE_KEY:
++ case INPUT_ENTER_KEY:
+ switch (menu[info.selected].type) {
+ case TYPE_MENU:
+ status = do_menu (menu[info.selected].data);
diff --git a/app-misc/lcdproc/files/lcdproc.confd b/app-misc/lcdproc/files/lcdproc.confd
new file mode 100644
index 0000000..1dae1f5
--- /dev/null
+++ b/app-misc/lcdproc/files/lcdproc.confd
@@ -0,0 +1,16 @@
+# which port is the LCD connected
+port="ttyS0"
+
+# what driver should be used
+driver="MtxOrb"
+
+# "C" (CPU usage)
+# "G" (CPU Graph like Xload)
+# "M" (Memory Usage)
+# "X" (X-Load)
+# "T" (Date, time, Uptime, OS version)
+# "D" (Disk Stats)
+# "B" (Battery Stats)
+# "A" (About)
+# for more clients see "LCDproc Homepage"
+clients="C M T X"