summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/lcdproc
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-09 02:33:06 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-09 02:33:06 (GMT)
commit1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e (patch)
treef336ee91ce16c6591fff50340562e07e15aa1a55 /abs/mv-core/lcdproc
parent75b1bceb21faab32d8f519d6f7f7062a226f9047 (diff)
downloadlinhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.zip
linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.tar.gz
linhes_pkgbuild-1ba69cc033dfbd0a6c4c29c6d877c7e753f96e8e.tar.bz2
MythVantage specific pkgs
Diffstat (limited to 'abs/mv-core/lcdproc')
-rwxr-xr-xabs/mv-core/lcdproc/PKGBUILD25
-rwxr-xr-xabs/mv-core/lcdproc/lcdd38
-rw-r--r--abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gzbin0 -> 838429 bytes
-rw-r--r--abs/mv-core/lcdproc/mythvantage.patch14
4 files changed, 77 insertions, 0 deletions
diff --git a/abs/mv-core/lcdproc/PKGBUILD b/abs/mv-core/lcdproc/PKGBUILD
new file mode 100755
index 0000000..cb536e9
--- /dev/null
+++ b/abs/mv-core/lcdproc/PKGBUILD
@@ -0,0 +1,25 @@
+pkgname=lcdproc
+#pkgver=0.5.2
+pkgver=20080326
+pkgrel=7
+pkgdesc="LCDproc is a utility to drive one or more LCD (and LCD-like) devices attached to a host."
+url="http://lcdproc.omnipotent.net/"
+license="GPL"
+depends=(libusb xosd)
+backup=(etc/LCDd.conf)
+arch=('i686')
+#source=(http://switch.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz lcdd mythvantage.patch)
+source=(lcdproc-CVS-current.tar.gz lcdd mythvantage.patch)
+
+build() {
+ #cd $startdir/src/$pkgname-$pkgver
+ cd $startdir/src/$pkgname-CVS-current-$pkgver
+# lcdproc-CVS-current-20080326
+ patch -p0 < ../mythvantage.patch
+ ./configure --prefix=/usr --sysconfdir=/etc --enable-libusb --enable-drivers=all
+ make
+ make DESTDIR=$startdir/pkg install
+ sed -e "s/server\/drivers\//\/usr\/lib\/lcdproc\//g" LCDd.conf > $startdir/pkg/etc/LCDd.conf
+ mkdir -p $startdir/pkg/etc/rc.d
+ install -m 755 $startdir/src/lcdd $startdir/pkg/etc/rc.d
+}
diff --git a/abs/mv-core/lcdproc/lcdd b/abs/mv-core/lcdproc/lcdd
new file mode 100755
index 0000000..fa3547a
--- /dev/null
+++ b/abs/mv-core/lcdproc/lcdd
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PID=`pidof -o %PPID /usr/sbin/LCDd`
+case "$1" in
+ start)
+ stat_busy "Starting LCDd daemon"
+ [ -z "$PID" ] && /usr/sbin/LCDd -c /etc/LCDd.conf
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ echo $PID > /var/run/lcdd.pid
+ add_daemon lcdd
+ stat_done
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping ProFTPd daemon"
+ [ ! -z "$PID" ] && kill $PID &> /dev/null
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ rm /var/run/lcdd.pid
+ rm_daemon lcdd
+ stat_done
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+exit 0
diff --git a/abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz b/abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz
new file mode 100644
index 0000000..e0f6df4
--- /dev/null
+++ b/abs/mv-core/lcdproc/lcdproc-CVS-current.tar.gz
Binary files differ
diff --git a/abs/mv-core/lcdproc/mythvantage.patch b/abs/mv-core/lcdproc/mythvantage.patch
new file mode 100644
index 0000000..70feff7
--- /dev/null
+++ b/abs/mv-core/lcdproc/mythvantage.patch
@@ -0,0 +1,14 @@
+--- server/serverscreens.c.orig 2007-09-17 18:35:57.000000000 +0000
++++ server/serverscreens.c 2007-09-17 18:36:32.000000000 +0000
+@@ -167,9 +167,9 @@
+
+ char *top = "Thanks for using";
+ #ifdef LINUX
+- char *low = "LCDproc & Linux!";
++ char *low = "MythVantage";
+ #else
+- char *low = " LCDproc! ";
++ char *low = " MythVantage ";
+ #endif
+
+ drivers_string(1+xoffs, 1+yoffs, top);