From 1368d6f38aea282a5cb8efb6126ebabad8213a9f Mon Sep 17 00:00:00 2001 From: Cecil Date: Fri, 24 Feb 2012 20:02:30 -0800 Subject: web-on-linhes:Version 1.00.0 --- abs/extra/web-on-linhes/PKGBUILD | 19 ++-- abs/extra/web-on-linhes/stop_xss.sh | 12 +++ abs/extra/web-on-linhes/web-on-linhes.install | 131 ++++++++++++++++++++++++++ abs/extra/web-on-linhes/web-on-linhes.sh | 11 +++ abs/extra/web-on-linhes/web-on-tv.install | 131 -------------------------- 5 files changed, 166 insertions(+), 138 deletions(-) create mode 100644 abs/extra/web-on-linhes/stop_xss.sh create mode 100644 abs/extra/web-on-linhes/web-on-linhes.install create mode 100644 abs/extra/web-on-linhes/web-on-linhes.sh delete mode 100644 abs/extra/web-on-linhes/web-on-tv.install diff --git a/abs/extra/web-on-linhes/PKGBUILD b/abs/extra/web-on-linhes/PKGBUILD index cfa481c..2c9f185 100644 --- a/abs/extra/web-on-linhes/PKGBUILD +++ b/abs/extra/web-on-linhes/PKGBUILD @@ -2,15 +2,20 @@ # Maintainer: Cecil Watson pkgname=web-on-linhes -pkgver=0.01.0 -pkgrel=14 -pkgdesc="Added multiple websites with 10' UIs to Online Streams." +pkgver=1.00.0 +pkgrel=1 +pkgdesc="Added multiple websites with 10' UIs to Play Online Streams." arch=('i686' 'x86_64') license=('GPL2') url="http://www.linhes.org/" depends=('chromium' 'flashplugin') -install=web-on-tv.install +install=web-on-linhes.install +source=('stop_xss.sh' 'web-on-linhes.sh') -#build() { -#} -md5sums=() +build() { + cd ${srcdir} + install -d ${pkgdir}/usr/LH/bin + install -D -m755 *.sh ${pkgdir}/usr/LH/bin +} +md5sums=('3f5877b4b44b6fddb3b42491318c6441' + 'bf15498dcbdc3852aca9cccb0aacd913') diff --git a/abs/extra/web-on-linhes/stop_xss.sh b/abs/extra/web-on-linhes/stop_xss.sh new file mode 100644 index 0000000..5ed0ae1 --- /dev/null +++ b/abs/extra/web-on-linhes/stop_xss.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +while [ 1=1 ]; +do + + if [ "$(pidof chromium)" ] + then + xscreensaver-command -deactivate + fi + sleep 60 + +done diff --git a/abs/extra/web-on-linhes/web-on-linhes.install b/abs/extra/web-on-linhes/web-on-linhes.install new file mode 100644 index 0000000..631806a --- /dev/null +++ b/abs/extra/web-on-linhes/web-on-linhes.install @@ -0,0 +1,131 @@ +# arg 1: the new package version +post_install() { + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp + grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo " " >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + echo "" >> /tmp/is.xml.tmp + mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml +} +post_upgrade() { + post_remove $1 + post_install $1 +} +post_remove() { + mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp + sed -e '/\#WebOn/,/\#WebOn/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml +} + +op=$1 +shift +$op $* diff --git a/abs/extra/web-on-linhes/web-on-linhes.sh b/abs/extra/web-on-linhes/web-on-linhes.sh new file mode 100644 index 0000000..11098ba --- /dev/null +++ b/abs/extra/web-on-linhes/web-on-linhes.sh @@ -0,0 +1,11 @@ +#!/bin/sh +#Script to facilitate Web On LinHES +#Runs irxevent +irxevent /home/mythtv/.mythtv/wol-lircrc & +#Stops xscreensaver from running. +stop_xss.sh & +#Launches chromium in full screen +chromium $@ +#Once done, stops irxevent and stop_xss.sh +killall irxevent +killall stop_xss.sh diff --git a/abs/extra/web-on-linhes/web-on-tv.install b/abs/extra/web-on-linhes/web-on-tv.install deleted file mode 100644 index ca0f643..0000000 --- a/abs/extra/web-on-linhes/web-on-tv.install +++ /dev/null @@ -1,131 +0,0 @@ -# arg 1: the new package version -post_install() { - mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp - grep -v -e /mythmenu /tmp/is.xml > /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo " " >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - echo "" >> /tmp/is.xml.tmp - mv /tmp/is.xml.tmp /usr/share/mythtv/themes/defaultmenu/is.xml -} -post_upgrade() { - post_remove $1 - post_install $1 -} -post_remove() { - mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp - sed -e '/\#WebOn/,/\#WebOn/d' < /tmp/is.xml.tmp > /usr/share/mythtv/themes/defaultmenu/is.xml -} - -op=$1 -shift -$op $* -- cgit v0.12