From 51e0b638f0d58e4e0507425b8512809208fbbaf8 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sun, 26 Aug 2012 17:04:55 -0500
Subject: LinHES-config:  move backend_contrl to LinHES-config pkg.  Doesn't
 belong here but it's sort of a one off. This was done because backend_control
 is needed by systems that may not have supplemental-web installed.  Like FE
 only systems.

Removed backend-control from supplemental-web.
---
 abs/core/LinHES-config/PKGBUILD              |  8 +++++---
 abs/core/LinHES-config/backend_control.sh    | 28 ++++++++++++++++++++++++++++
 abs/core/supplemental-web/PKGBUILD           |  9 ++++-----
 abs/core/supplemental-web/backend_control.sh | 28 ----------------------------
 4 files changed, 37 insertions(+), 36 deletions(-)
 create mode 100644 abs/core/LinHES-config/backend_control.sh
 delete mode 100644 abs/core/supplemental-web/backend_control.sh

diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD
index 2300509..f39a180 100755
--- a/abs/core/LinHES-config/PKGBUILD
+++ b/abs/core/LinHES-config/PKGBUILD
@@ -20,7 +20,7 @@ source=(mv_install.py 09_mythvantge_runit_grub
 	install_db_chroot.sh
 	restore_default_settings.sh
 	myth_settings_wrapper.sh
-        xconfig.sh
+    xconfig.sh
 	timezip.py
 	soundconfig.sh
 	LinHES-release
@@ -49,7 +49,7 @@ source=(mv_install.py 09_mythvantge_runit_grub
 	mythvantage.cfg
 	config-sudo.rules
 	hdhr.conf blacklist_nouveau.conf  blacklist_pcspkr.conf
-	print_xorg_res.py )
+	print_xorg_res.py backend_control.sh )
 
 backup=(etc/mythvantage.cfg)
 install=config.install
@@ -99,6 +99,7 @@ build() {
     install -m 0755 mv_vnc.py $MVDIR/bin/
     install -m 0755 systemconfig.py $MVDIR/bin/
     install -m 0755 print_xorg_res.py $MVDIR/bin/
+    install -m 0755 backend_control.sh $MVDIR/bin/
     install -m 0755 mythvantage.cfg $startdir/pkg/etc/
 
     #README file displayed on install
@@ -164,4 +165,5 @@ md5sums=('517b2065493bc07355e8e4f2963cb2fd'
          '0fa6fffd87f350380d45f1f8a5b7babe'
          '6ec39b010c0ed8901ea896c7e153d330'
          '3866086e6af5e3528a66eff492f2f4dd'
-         'c9279fa095af624ee3d9bc75d3328360')
+         'c9279fa095af624ee3d9bc75d3328360'
+         '928d183aa7b44049b797864c27a6b675')
diff --git a/abs/core/LinHES-config/backend_control.sh b/abs/core/LinHES-config/backend_control.sh
new file mode 100644
index 0000000..ab58bac
--- /dev/null
+++ b/abs/core/LinHES-config/backend_control.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+#. /etc/systemconfig
+#echo $@ > /tmp/parms
+#start Slavebackend: fusion 192.168.1.120
+COMMAND=$1
+BETYPE=$2
+eval LAST=\$$#
+dbhost=`echo $LAST`
+
+
+MESSAGE=""
+case $COMMAND in
+	stop)   MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestop.cgi 2>/dev/null`
+		;;
+	
+	start ) 
+		MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestart.cgi 2>/dev/null`
+       		;;
+	
+	restart)
+		/usr/MythVantage/bin/backend_control.sh stop $dbhost
+		sleep 2
+		/usr/MythVantage/bin/backend_control.sh start $dbhost	
+		;;
+	clearcache) 
+		MESSAGE2=`/usr/bin/curl http://$dbhost:1337/beclear.cgi 2>/dev/null` 
+esac
+
diff --git a/abs/core/supplemental-web/PKGBUILD b/abs/core/supplemental-web/PKGBUILD
index 24cb893..c9671de 100644
--- a/abs/core/supplemental-web/PKGBUILD
+++ b/abs/core/supplemental-web/PKGBUILD
@@ -1,11 +1,11 @@
 pkgname=supplemental-web
 pkgver=1.0
-pkgrel=18
+pkgrel=19
 arch=('i686' 'x86_64')
 MVDIR=$startdir/pkg/usr/MythVantage
 install=supplemental-web.install
 backup=('extra.cfg.txt')
-source=(lighttpd-supplement.conf extra.cfg.txt wakeonlan.sh backend_control.sh)
+source=(lighttpd-supplement.conf extra.cfg.txt wakeonlan.sh ) 
 depends=('lighttpd'  'php' 'fcgi' 'python2' 'xymonserver' 'certmaster' 'func' 'python_aosd'  'LinHES-system>=2-50')
 
 
@@ -18,7 +18,7 @@ build() {
 	install -m755 -D lighttpd-supplement.conf $MVDIR/etc/lighttpd-supplement.conf
 
 	install -m755 -D wakeonlan.sh $MVDIR/bin/wakeonlan.sh
-	install -m755 -D backend_control.sh $MVDIR/bin/backend_control.sh
+#	install -m755 -D backend_control.sh $MVDIR/bin/backend_control.sh
 	mkdir -p $startdir/pkg/data/srv/httpd/htdocs/
         cp -rp $startdir/contents/* $startdir/pkg/data/srv/httpd/htdocs
         chmod -R 755 $startdir/pkg/data/srv/httpd/htdocs
@@ -34,5 +34,4 @@ build() {
 
 md5sums=('30aa4235aff78c77d544f930f3d92b62'
          '3d8c7b430c1319d706ca420825918d2a'
-         '81cdb6ee6804fa36366c6e259a80e7b4'
-         '928d183aa7b44049b797864c27a6b675')
+         '81cdb6ee6804fa36366c6e259a80e7b4')
diff --git a/abs/core/supplemental-web/backend_control.sh b/abs/core/supplemental-web/backend_control.sh
deleted file mode 100644
index ab58bac..0000000
--- a/abs/core/supplemental-web/backend_control.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-#. /etc/systemconfig
-#echo $@ > /tmp/parms
-#start Slavebackend: fusion 192.168.1.120
-COMMAND=$1
-BETYPE=$2
-eval LAST=\$$#
-dbhost=`echo $LAST`
-
-
-MESSAGE=""
-case $COMMAND in
-	stop)   MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestop.cgi 2>/dev/null`
-		;;
-	
-	start ) 
-		MESSAGE=`/usr/bin/curl http://$dbhost:1337/bestart.cgi 2>/dev/null`
-       		;;
-	
-	restart)
-		/usr/MythVantage/bin/backend_control.sh stop $dbhost
-		sleep 2
-		/usr/MythVantage/bin/backend_control.sh start $dbhost	
-		;;
-	clearcache) 
-		MESSAGE2=`/usr/bin/curl http://$dbhost:1337/beclear.cgi 2>/dev/null` 
-esac
-
-- 
cgit v0.12

