diff options
Diffstat (limited to 'app-misc/lcdproc')
-rw-r--r-- | app-misc/lcdproc/Manifest | 6 | ||||
-rw-r--r-- | app-misc/lcdproc/files/LCDd | 22 | ||||
-rw-r--r-- | app-misc/lcdproc/files/lcdproc | 21 | ||||
-rw-r--r-- | app-misc/lcdproc/files/lcdproc-ds-adas.patch | 91 | ||||
-rw-r--r-- | app-misc/lcdproc/files/lcdproc.confd | 16 | ||||
-rw-r--r-- | app-misc/lcdproc/lcdproc-0.4.5-r1.ebuild | 102 |
6 files changed, 258 insertions, 0 deletions
diff --git a/app-misc/lcdproc/Manifest b/app-misc/lcdproc/Manifest new file mode 100644 index 0000000..d831f5b --- /dev/null +++ b/app-misc/lcdproc/Manifest @@ -0,0 +1,6 @@ +AUX LCDd 544 RMD160 554201b2ca62fb5496f06fc3bf40afcb36af9974 SHA1 594fd6be41199fb9a536ec8dd9b29f46de6f7f25 SHA256 d8009b3984169a819e95a73adc19d5b63c990d63a965a396e10b68703614a652 +AUX lcdproc 512 RMD160 45c496b9f1f6e683c096d4a1ec09ffb6e9c9fdda SHA1 da36be607453db20eb7f29f95ce4b54e5f9f91e7 SHA256 c8fb7ec117015b7a32118bd8d653ada5950c0f6b214a18a098eb291c606e9cca +AUX lcdproc-ds-adas.patch 3515 RMD160 86afe6c865abeec101900467339eb919b1e6799d SHA1 6036daea1f41f150177fa73fa672edc76dec322d SHA256 1a045c7bf6991df2bc3b1e29c1d5ee36962454bacee522efc208c2f8066cfdf7 +AUX lcdproc.confd 331 RMD160 2343561665d39d30224fdedd1e2fad185c8d14fc SHA1 37cf7b014eb174ebb16f72be5f02d7e35d675fee SHA256 31583e8761d975a5c205dc5d0cb495907cebc5276e16b25ea56a8c989ed5232d +DIST lcdproc-0.4.5.tar.bz2 291703 RMD160 07067bfb681a098494a105a290711d973ea0171a SHA1 9680b83d18da8569e8f58d6d0b7b0158f543c94d SHA256 8707767a1ddf85b7894f4f62d9af53121fefff4ab8182eb9491b49a6d56b8127 +EBUILD lcdproc-0.4.5-r1.ebuild 2697 RMD160 fa3ad29d71602cb8a4f47cc4217aa7c757a5df52 SHA1 22e719f782240745304db4b236f4dcc98c1d179e SHA256 9ba96061e0ae2e1e454a888fd6be1b21daace86b086a4fd4c8903fd7961900d6 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" diff --git a/app-misc/lcdproc/lcdproc-0.4.5-r1.ebuild b/app-misc/lcdproc/lcdproc-0.4.5-r1.ebuild new file mode 100644 index 0000000..5befde7 --- /dev/null +++ b/app-misc/lcdproc/lcdproc-0.4.5-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/lcdproc-0.4.5.ebuild,v 1.9 2005/04/24 11:23:24 hansmi Exp $ + +inherit eutils + +DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices" +HOMEPAGE="http://lcdproc.org/" +SRC_URI="mirror://sourceforge/lcdproc/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 amd64 ~sparc ppc" +IUSE="doc ncurses samba svga" + +DEPEND=">=sys-apps/baselayout-1.6.4 + >=sys-apps/sed-4 + doc? ( >=app-text/docbook-sgml-utils-0.6.11-r2 ) + ncurses? ( >=sys-libs/ncurses-5.3 ) + svga? ( >=media-libs/svgalib-1.4.3 )" + +src_unpack() { + unpack ${A} ; cd ${S} +#SDS + epatch ${FILESDIR}/lcdproc-ds-adas.patch || die +#EDS + + sed -i "889s:-O3:${CFLAGS}:" configure +} + +src_compile() { + + # By default, all drivers that are supported by the given plattform/hardware + # are compiled (of course respecting the existing USE flags). If the + # LCDPROC_DRIVERS environment variable is set to a comma separated list, only + # the specified drivers will be compiled. + # Example: + # + # env LCDPROC_DRIVERS="curses,CFontz" emerge lcdproc + # + # NOTE: The ebuild still respects your USE variable and will not install any + # additional packages unless the corresponding USE flag is set! + # You might have to alter it if e.g. ncurses is normally not part of your + # USE variable. + # Example: + # + # env USE="$USE ncurses" LCDPROC_DRIVERS="curses,CFontz" emerge lcdproc + + local myconf + + myconf="--enable-drivers=mtxorb,cfontz,cwlnx,text,lb216," + myconf="${myconf}hd44780,joy,irman,lircin,bayrad,glk,stv5730," + myconf="${myconf}stv5730,sed1330,sed1520,lcdm001," + myconf="${myconf}t6963,wirz-sli,sgx120" + + use ncurses && myconf="${myconf},curses" + use svga && myconf="${myconf},svgalib" + + [ x"${LCDPROC_DRIVERS}" = x ] || \ + myconf="--enable-drivers=${LCDPROC_DRIVERS}" + + use samba && myconf="${myconf} --enable-stat-smbfs" + myconf="${myconf} --enable-stat-nfs" + + econf ${myconf} || die + emake || die + + if use doc; then + cd ${S}/docs/lcdproc-user + docbook2html lcdproc-user.docbook + fi +} + +src_install() { + dosbin server/LCDd + dobin clients/lcdproc/lcdproc + + doman docs/lcdproc.1 docs/LCDd.8 + + dodoc README ChangeLog INSTALL + + if use doc; then + insinto /usr/share/doc/${PF}/lcdproc-user + doins docs/lcdproc-user/*.html + fi + + docinto olddocs + dodoc docs/README.dg* docs/*.txt + + insinto /usr/share/doc/${PF}/clients/examples + doins clients/examples/*.pl + insinto /usr/share/doc/${PF}/clients/headlines + doins clients/headlines/lcdheadlines + + insinto /etc + doins LCDd.conf + doins scripts/lcdproc.conf + + exeinto /etc/init.d + doexe ${FILESDIR}/LCDd + doexe ${FILESDIR}/lcdproc +} |