summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/recstat
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-10-23 18:17:40 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-10-23 18:19:39 (GMT)
commitadbcf19958300e9b6598990184c8815b945ba0ee (patch)
treef4283c850ac0ac202c17e78a637ee7ca8147621b /abs/extra-testing/recstat
parent61a68250df10d29b624650948484898334ff22d0 (diff)
downloadlinhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz
linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/extra-testing/recstat')
-rw-r--r--abs/extra-testing/recstat/PKGBUILD19
-rw-r--r--abs/extra-testing/recstat/recstat56
-rw-r--r--abs/extra-testing/recstat/recstat.install13
-rw-r--r--abs/extra-testing/recstat/recstat.py38
-rwxr-xr-xabs/extra-testing/recstat/run7
5 files changed, 0 insertions, 133 deletions
diff --git a/abs/extra-testing/recstat/PKGBUILD b/abs/extra-testing/recstat/PKGBUILD
deleted file mode 100644
index 023a0ed..0000000
--- a/abs/extra-testing/recstat/PKGBUILD
+++ /dev/null
@@ -1,19 +0,0 @@
-pkgname=recstat
-pkgver=1
-pkgrel=20
-pkgdesc="pkg to help use the System LEDs for Recording Status"
-arch=('i686' 'x86_64')
-url=""
-depends=('python' 'python-pyserial')
-license=('GPL')
-source=(recstat recstat.py run)
-md5sums=('626acb8cdd9e5cdb3a502bc12b828067')
-install=recstat.install
-build () {
-# install -D $startdir/src/recstat $startdir/pkg/etc/rc.d/recstat
- install -D $startdir/src/recstat.py $startdir/pkg/usr/bin/recstat.py
- install -D $startdir/src/run $startdir/pkg/etc/sv/recstat/run
-}
-md5sums=('7f4ba41b65ed4d693d60d5ea00e8411b'
- '7bc206d78a096e6ee80b9bb346619ed4'
- '3a7cd3382212650e9233b910ed28d046')
diff --git a/abs/extra-testing/recstat/recstat b/abs/extra-testing/recstat/recstat
deleted file mode 100644
index 2d72c61..0000000
--- a/abs/extra-testing/recstat/recstat
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh
-
-set -e
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DESC="serial port encoder status script"
-NAME=recstat
-DAEMON=/usr/bin/$NAME.py
-PIDFILE=/var/run/$NAME.pid
-SCRIPTNAME=/etc/init.d/$NAME
-
-# Gracefully exit if the package has been removed.
-test -x $DAEMON || exit 0
-
-#
-# Function that starts the daemon/service.
-#
-d_start() {
- start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE \
- --exec $DAEMON &
-}
-
-#
-# Function that stops the daemon/service.
-#
-d_stop() {
- kill -9 `cat $PIDFILE`
-}
-
-case "$1" in
- start)
- echo -n "Starting $DESC: $NAME"
- d_start
- echo "."
- ;;
- stop)
- echo -n "Stopping $DESC: $NAME"
- d_stop
- echo "."
- ;;
- restart|force-reload)
- echo -n "Stopping $DESC: $NAME"
- d_stop
- sleep 1
- echo "."
- echo -n "Starting $DESC: $NAME"
- d_start
- echo "."
- ;;
- *)
- echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0 \ No newline at end of file
diff --git a/abs/extra-testing/recstat/recstat.install b/abs/extra-testing/recstat/recstat.install
deleted file mode 100644
index ecd58f0..0000000
--- a/abs/extra-testing/recstat/recstat.install
+++ /dev/null
@@ -1,13 +0,0 @@
-# arg 1: the new package version
-post_install() {
- echo ""
- echo ""
- echo ""
- echo " Edit /usr/bin/recstat.py to fit your tuner setup"
- echo " http://linhes.org/bugs/projects/lin-hes/wiki/_Using_System_LEDs_for_Recording_Status_"
- echo " To start this program at boot run add_service.sh recstat "
-}
-
-op=$1
-shift
-$op $*
diff --git a/abs/extra-testing/recstat/recstat.py b/abs/extra-testing/recstat/recstat.py
deleted file mode 100644
index 8def041..0000000
--- a/abs/extra-testing/recstat/recstat.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/python
-
-import httplib
-import serial,time
-
-mythStatus = "127.0.0.1:6544"
-encoder1 = "Encoder 1 "
-encoder2 = "Encoder 2 "
-recording = "is local on mythtv and is recording"
-watching = "is local on mythtv and is watching"
-
-#Open COM2
-s = serial.Serial(1)
-#Turn off all lights
-s.setDTR(0)
-s.setRTS(0)
-
-while(True):
- conn = httplib.HTTPConnection(mythStatus)
- conn.request("GET", "/")
- r1 = conn.getresponse()
- results = r1.read()
-
- if(results.find(encoder1+recording)!=-1):
- s.setDTR(1)
- elif (results.find(encoder1+watching) !=-1):
- s.setDTR(1)
- else:
- s.setDTR(0)
-
- if(results.find(encoder2+recording)!=-1):
- s.setRTS(1)
- elif (results.find(encoder2+watching) !=-1):
- s.setRTS(1)
- else:
- s.setRTS(0)
-
- time.sleep(1)
diff --git a/abs/extra-testing/recstat/run b/abs/extra-testing/recstat/run
deleted file mode 100755
index 150fdb4..0000000
--- a/abs/extra-testing/recstat/run
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-exec 2>&1
-export TERM=linux
-. /etc/rc.conf
-. /etc/rc.d/functions
-stat_runit "Starting recstat"
-exec /usr/bin/recstat.py