summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Hallendal <hallski@gentoo.org>2001-09-25 04:12:37 +0000
committerMikael Hallendal <hallski@gentoo.org>2001-09-25 04:12:37 +0000
commit4a625c5c768424fdf83b3d78ca76430ae8cc8112 (patch)
treed96187c4101b308197b9595053ce16d11a41a22d /app-misc
parentadded, ebuild by: Jens Blaesche (diff)
downloadgentoo-2-4a625c5c768424fdf83b3d78ca76430ae8cc8112.tar.gz
gentoo-2-4a625c5c768424fdf83b3d78ca76430ae8cc8112.tar.bz2
gentoo-2-4a625c5c768424fdf83b3d78ca76430ae8cc8112.zip
added, ebuild by: Jens Blaesche
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/lcdproc/files/digest-lcdproc-0.4.11
-rw-r--r--app-misc/lcdproc/files/lcdproc25
-rw-r--r--app-misc/lcdproc/lcdproc-0.4.1.ebuild48
3 files changed, 74 insertions, 0 deletions
diff --git a/app-misc/lcdproc/files/digest-lcdproc-0.4.1 b/app-misc/lcdproc/files/digest-lcdproc-0.4.1
new file mode 100644
index 000000000000..acb9b1f33474
--- /dev/null
+++ b/app-misc/lcdproc/files/digest-lcdproc-0.4.1
@@ -0,0 +1 @@
+MD5 85596a4572697bea971587f215097dcb lcdproc-0.4.1.tar.gz
diff --git a/app-misc/lcdproc/files/lcdproc b/app-misc/lcdproc/files/lcdproc
new file mode 100644
index 000000000000..b965b2faa108
--- /dev/null
+++ b/app-misc/lcdproc/files/lcdproc
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+port="ttyS0"
+# which port is the LCD connected
+driver="MtxOrb"
+clients="C M T X"
+# "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"
+
+start() {
+ ebegin "Starting LCDProc"
+ ln -s /dev/$port /dev/lcd
+ /usr/local/bin/LCDd -d $driver -b on -i off
+ /usr/local/bin/lcdproc $clients &
+ eend
+}
+
+stop() {
+ ebegin "Stopping LCDProc"
+ killall lcdproc
+ killall LCDd
+ rm -f /dev/lcd
+ eend
+}
diff --git a/app-misc/lcdproc/lcdproc-0.4.1.ebuild b/app-misc/lcdproc/lcdproc-0.4.1.ebuild
new file mode 100644
index 000000000000..4279874b5081
--- /dev/null
+++ b/app-misc/lcdproc/lcdproc-0.4.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Jens Blaesche <mr.big@pc-trouble.de>
+# /home/cvsroot/gentoo-x86/skel.build,v 1.7 2001/08/25 21:15:08 chadh Exp
+# 20 Sept.2001 / 16.30 CET
+
+#P=
+A=${P}.tar.gz
+S=${WORKDIR}/${P}
+DESCRIPTION="lcdproc - displays system status on Matrix-Orbital 20x4 LCD on a serial port."
+SRC_URI="http://lcdproc.omnipotent.net/${A}"
+HOMEPAGE="http://lcdproc.omnipotent.net"
+
+DEPEND=""
+
+src_compile() {
+
+ ./configure --infodir=/usr/share/info --mandir=/usr/share/man --prefix=/usr --host=${CHOST} || die
+ try make
+
+}
+
+src_install () {
+
+ exeinto /usr/local/bin
+ doexe server/LCDd
+ doexe clients/lcdproc/lcdproc
+ exeinto /etc/init.d
+ doexe ${FILESDIR}/lcdproc
+ doman docs/lcdproc.1
+ dodoc README ChangeLog COPYING INSTALL
+ docinto docs
+ dodoc docs/README.dg docs/README.dg2 docs/hd44780_howto.txt docs/menustuff.txt docs/netstuff.txt
+ docinto clients/example
+ dodoc clients/examples/fortune.pl clients/examples/iosock.pl clients/examples/tail.pl clients/examples/x11amp.pl
+ docinto clients/headlines
+ dodoc clients/headlines/lcdheadlines
+}
+
+pkg_postinst () {
+
+ cp -s /etc/init.d/lcdproc /etc/runlevels/default/lcdproc
+}
+
+pkg_postrm () {
+
+ rm -f /etc/runlevels/default/lcdproc
+} \ No newline at end of file