From 629343a454985ccdcdf2d8ef926d669a318ec08b Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 6 Mar 2009 15:26:53 -0600
Subject: Adding in support for DDNS. Currently it's using dyndns.org for ddns
 services.

---
 abs/core-testing/LinHES-config/PKGBUILD                 |  4 ++--
 abs/core-testing/LinHES-config/systemconfig.sh          | 17 ++++++++++++++++-
 abs/core-testing/mythtv/stable/mythtv/PKGBUILD          |  2 +-
 .../mythtv/stable/mythtv/menu-xml/HOST_SETTINGS.xml     |  5 +++++
 4 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/abs/core-testing/LinHES-config/PKGBUILD b/abs/core-testing/LinHES-config/PKGBUILD
index 4da7463..84c7bf0 100644
--- a/abs/core-testing/LinHES-config/PKGBUILD
+++ b/abs/core-testing/LinHES-config/PKGBUILD
@@ -1,9 +1,9 @@
 pkgname=LinHES-config
 pkgver=1.0
-pkgrel=296
+pkgrel=298
 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev )
 pkgdesc="Install and configure your system"
-depends=(bc libstatgrab  mysql-python expect curl dnsutils parted sg3_utils nmbscan )
+depends=(bc libstatgrab  mysql-python expect curl dnsutils parted sg3_utils nmbscan system-templates )
 arch=('i686')
 
 source=(mythinstall.bin myth_user_call file_time_offset.py install-ui.xml install_proxy.sh install_functions.sh systemconfig.sh install_db_chroot.sh restore_default_settings.sh xconfig.sh timezip.py soundconfig.sh LinHES-release issue MythVantage.sh create_master.sh build_diskless.sh networkconfig.sh timezone.bin autocard.py restore_km_db_chroot.sh README)
diff --git a/abs/core-testing/LinHES-config/systemconfig.sh b/abs/core-testing/LinHES-config/systemconfig.sh
index 52b7ba3..19cdbf9 100755
--- a/abs/core-testing/LinHES-config/systemconfig.sh
+++ b/abs/core-testing/LinHES-config/systemconfig.sh
@@ -727,6 +727,15 @@ then
 fi
 
 
+if [ x$DDnsEnable = x1 ]
+then
+           ser_daemon_add="inadyn $ser_daemon_add"
+           ser_install="inadyn $ser_install"
+else
+           ser_daemon_remove="inadyn $ser_daemon_remove"
+           ser_remove="inadyn $ser_remove"
+fi
+
 
 
 #Setting the default, just to avoid the or statement..
@@ -1067,6 +1076,7 @@ function setup_web_auth {
 
 }
 
+
 #----------------------------------------------------MAIN PROGRAM-------------------------------------------
 #misc,sleep,hostype,advanced,audio
 eval LAST=\$$#
@@ -1104,6 +1114,12 @@ case $i in
         ;;
     reloadfe)  reloadfe
         ;;
+    ddns) services
+          install=$ser_install
+          remove=$ser_remove
+          daemon_add=$ser_daemon_add
+          daemon_remove=$ser_daemon_remove
+         ;;
 
     this_is_install) MV_NEW_INSTALL="true"
         ;;
@@ -1321,7 +1337,6 @@ then
 fi
 
 
-
 daemons
 #add check for lcd, and restart if needed.
 
diff --git a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
index 9ab8834..5220e37 100644
--- a/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
+++ b/abs/core-testing/mythtv/stable/mythtv/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=mythtv
 pkgver=0.21
-pkgrel=42
+pkgrel=43
 pkgdesc="A Homebrew PVR project"
 arch=('i686' 'x86_64')
 depends=('bash' 'mysql-clients>=5.0' 'qt3' 'lame' 'lirc-utils' 'ffmpeg' \
diff --git a/abs/core-testing/mythtv/stable/mythtv/menu-xml/HOST_SETTINGS.xml b/abs/core-testing/mythtv/stable/mythtv/menu-xml/HOST_SETTINGS.xml
index f257920..b77febf 100755
--- a/abs/core-testing/mythtv/stable/mythtv/menu-xml/HOST_SETTINGS.xml
+++ b/abs/core-testing/mythtv/stable/mythtv/menu-xml/HOST_SETTINGS.xml
@@ -7,6 +7,11 @@
    </button>
 
    <button>
+       <type>MV_NETWORK_SETUP_MENU</type>
+      <text>DDNS setttings</text>
+      <action>EXEC  mythinstall -s ddns </action>
+   </button>
+   <button>
        <type>MV_SYSTEM_SETUP_MENU</type>
       <text>System type</text>
         <action>EXEC  mythinstall -s hostype </action>
-- 
cgit v0.12