pkgname=LinHES-config
pkgver=2.2
pkgrel=7
conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config )
pkgdesc="Install and configure your system"
depends=('bc' 'libstatgrab'  'mysql-python' 'expect' 'curl' 'dnsutils' 'parted'
	 'sg3_utils' 'nmbscan' 'system-templates' 'rsync' 'python-parted'
	 'ddcxinfo' 'python-pexpect' 'python-netifaces' 'LinHES-timezone'
	 'python-iplib' 'mythinstall>=2-10')
arch=('i686')

source=(mv_install.py
	mv_config.py
	myth_user_call
	file_time_offset.py
	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
	autocard.py
	restore_km_db_chroot.sh
	README
	mv_advanced.py
	mv_common.py
	mv_ddns.py
	mv_ir.py
	mv_misc.py
	mv_network.py
	mv_screensaver.py
	mv_smolt.py
	mv_software.py
	mv_webuser.py
	mv_hostype.py
	systemconfig.py
	myth_user_call.py
	mythvantage.cfg)

backup=(etc/mythvantage.cfg)
install=LinHES.install

build() {
    mkdir -p $startdir/pkg/etc
    mkdir -p $startdir/pkg/usr/share/mythtv/themes/default

    MVDIR=$startdir/pkg/usr/MythVantage
    mkdir  $startdir/pkg/etc/profile.d
    install -m 0755 MythVantage.sh  $startdir/pkg/etc/profile.d/MythVantage.sh
    mkdir -p $MVDIR/bin
    mkdir -p $MVDIR/etc

    #copy in all the installer specific stuff
#    install -m0700 myth_user_call  $MVDIR/bin/myth_user_call
    install -m0700 myth_user_call.py $MVDIR/bin/myth_user_call
    install -m 0755 install_proxy.sh  $MVDIR/bin/install_proxy.sh
    install -m 0755 install_functions.sh  $MVDIR/bin/install_functions.sh
    install -m 0755 systemconfig.sh  $MVDIR/bin/systemconfig.sh
    install -m 0755 xconfig.sh  $MVDIR/bin/xconfig.sh
    install -m 0755 install_db_chroot.sh $MVDIR/bin/install_db_chroot.sh
    install -m 0755 restore_km_db_chroot.sh $MVDIR/bin/restore_km_db_chroot.sh
    install -m 0755 restore_default_settings.sh $MVDIR/bin/restore_default_settings.sh
    install -m 0755 soundconfig.sh $MVDIR/bin/soundconfig.sh
    install -m 0755 networkconfig.sh $MVDIR/bin/networkconfig.sh
    install -m 0755 create_master.sh $MVDIR/bin/create_master.sh
    install -m 0755 build_diskless.sh $MVDIR/bin/build_diskless.sh
    install -m 0755 timezip.py $MVDIR/bin/timezip.py
    install -m 0755 autocard.py $MVDIR/bin/autocard.py
    install -m 0755 mv_config.py $MVDIR/bin/mv_config.py
    install -m 0755 mv_install.py $MVDIR/bin/mv_install.py
    install -m 0755 mv_advanced.py  $MVDIR/bin/
    install -m 0755 mv_common.py $MVDIR/bin/
    install -m 0755 mv_ddns.py  $MVDIR/bin/
    install -m 0755 mv_ir.py  $MVDIR/bin/
    install -m 0755 mv_misc.py  $MVDIR/bin/
    install -m 0755 mv_network.py  $MVDIR/bin/
    install -m 0755 mv_screensaver.py  $MVDIR/bin/
    install -m 0755 mv_smolt.py  $MVDIR/bin/
    install -m 0755 mv_software.py  $MVDIR/bin/
    install -m 0755 mv_webuser.py $MVDIR/bin/
    install -m 0755 mv_hostype.py $MVDIR/bin/
    install -m 0755 systemconfig.py $MVDIR/bin/
    install -m 0755 mythvantage.cfg $startdir/pkg/etc/

    #README file displayed on install
    install -m 0755 README $MVDIR/README

    mkdir -p $startdir/pkg/usr/bin
    install -m 0755 file_time_offset.py $startdir/pkg/usr/bin/file_time_offset.py

    #Copy in the branding stuff
    install -m 0755 LinHES-release $startdir/pkg/etc/LinHES-release
    install -m 0755 issue $startdir/pkg/etc/issue

}
md5sums=('381de315bceff755c7c5106ee693059f'
         '1a4694fcd694b362c339bda781ed0f3e'
         'e36da536dd651ef182e7642337889e77'
         '3baa23764e1b6bcb2d66d7d859096940'
         'd7a8cd4a0060399ae22e69f74e04eb07'
         '7a45287a07145fde5aa664583d4f6fba'
         'f88d2fb88339a4bf8ec9217a3fbcdef7'
         '8ac1cfd2eca0f641737da0d0aca416a7'
         '9ae8d79f620c6d19973c55c32a921874'
         '4620f6f498ef4523398635cb0bd59425'
         '06188493e5ed79cb501d3c5694dee8ca'
         'e459ed069317bccb20351f037a9df3d2'
         '22c5e24bf87ad94ee2244d9016a0eea2'
         '6aff504ed5e860adc1b7317cd0780900'
         '55fccb1da0417a896b724f7cfc32dd5a'
         'ab2aa42c2947148c2b1cac0ade6d1d55'
         'd429b59d3cfb37b0624c6a4a71a7c2c0'
         'a225143e3df6f56d451c2875e54ddbae'
         '687555968d4ca688d8f95c8f13e1d8d4'
         '3d1e4a119f38cff0498bf8a67e94e4b3'
         '5b41cfc6f4ad5cdbcd28cf980110f135'
         'ee7c8e1f025ce1527ecfffabafb26806'
         '41b03fb1e0a9d9ae7588e3b813212772'
         'a9ffe72c3ede99d505fdc97572a7c256'
         'df43bce1712320508d4eef8449c5d223'
         '65d93f15ac85adf8299552581789a731'
         '4badc3c664c55f87396a473e6c14d4bc'
         '36f5953944f98c50c0212a584996028e'
         'fe5e31b833cc6707209e9d656b6eb53c'
         'd328d63eaa4252f3d4888476c79bbff6'
         '23d0e12b7ca1cc6ea6b993c1d7ff20b9'
         '857a831e8627727306208f0e776b1b98'
         'cf35353141b70145f3ee8b0bd852c9f1'
         'cf60e7ba4cf3467bb5539d5c51da61b6'
         'a63ff9ef5250965aeabc74bfa8e43981')
md5sums=('381de315bceff755c7c5106ee693059f'
         '1a4694fcd694b362c339bda781ed0f3e'
         'e36da536dd651ef182e7642337889e77'
         '3baa23764e1b6bcb2d66d7d859096940'
         'd7a8cd4a0060399ae22e69f74e04eb07'
         '7a45287a07145fde5aa664583d4f6fba'
         'f88d2fb88339a4bf8ec9217a3fbcdef7'
         '8ac1cfd2eca0f641737da0d0aca416a7'
         '9ae8d79f620c6d19973c55c32a921874'
         '4620f6f498ef4523398635cb0bd59425'
         '06188493e5ed79cb501d3c5694dee8ca'
         'e459ed069317bccb20351f037a9df3d2'
         '22c5e24bf87ad94ee2244d9016a0eea2'
         '6aff504ed5e860adc1b7317cd0780900'
         '55fccb1da0417a896b724f7cfc32dd5a'
         'ab2aa42c2947148c2b1cac0ade6d1d55'
         'd429b59d3cfb37b0624c6a4a71a7c2c0'
         'a225143e3df6f56d451c2875e54ddbae'
         '687555968d4ca688d8f95c8f13e1d8d4'
         '3d1e4a119f38cff0498bf8a67e94e4b3'
         '5b41cfc6f4ad5cdbcd28cf980110f135'
         'ee7c8e1f025ce1527ecfffabafb26806'
         '41b03fb1e0a9d9ae7588e3b813212772'
         'a9ffe72c3ede99d505fdc97572a7c256'
         'df43bce1712320508d4eef8449c5d223'
         '65d93f15ac85adf8299552581789a731'
         '4badc3c664c55f87396a473e6c14d4bc'
         '36f5953944f98c50c0212a584996028e'
         'fe5e31b833cc6707209e9d656b6eb53c'
         'd328d63eaa4252f3d4888476c79bbff6'
         '23d0e12b7ca1cc6ea6b993c1d7ff20b9'
         '857a831e8627727306208f0e776b1b98'
         'ca78d5533d02ade8f98a5dc0714ce0a6'
         'cf60e7ba4cf3467bb5539d5c51da61b6'
         'a63ff9ef5250965aeabc74bfa8e43981')
md5sums=('381de315bceff755c7c5106ee693059f'
         '1a4694fcd694b362c339bda781ed0f3e'
         'e36da536dd651ef182e7642337889e77'
         '3baa23764e1b6bcb2d66d7d859096940'
         'd7a8cd4a0060399ae22e69f74e04eb07'
         '7a45287a07145fde5aa664583d4f6fba'
         'f88d2fb88339a4bf8ec9217a3fbcdef7'
         '8ac1cfd2eca0f641737da0d0aca416a7'
         '9ae8d79f620c6d19973c55c32a921874'
         '4620f6f498ef4523398635cb0bd59425'
         '06188493e5ed79cb501d3c5694dee8ca'
         'e459ed069317bccb20351f037a9df3d2'
         '22c5e24bf87ad94ee2244d9016a0eea2'
         '6aff504ed5e860adc1b7317cd0780900'
         '55fccb1da0417a896b724f7cfc32dd5a'
         'ab2aa42c2947148c2b1cac0ade6d1d55'
         'd429b59d3cfb37b0624c6a4a71a7c2c0'
         'a225143e3df6f56d451c2875e54ddbae'
         '687555968d4ca688d8f95c8f13e1d8d4'
         '3d1e4a119f38cff0498bf8a67e94e4b3'
         '5b41cfc6f4ad5cdbcd28cf980110f135'
         'ee7c8e1f025ce1527ecfffabafb26806'
         '41b03fb1e0a9d9ae7588e3b813212772'
         'a9ffe72c3ede99d505fdc97572a7c256'
         'df43bce1712320508d4eef8449c5d223'
         '65d93f15ac85adf8299552581789a731'
         '4badc3c664c55f87396a473e6c14d4bc'
         '36f5953944f98c50c0212a584996028e'
         'fe5e31b833cc6707209e9d656b6eb53c'
         'd328d63eaa4252f3d4888476c79bbff6'
         '23d0e12b7ca1cc6ea6b993c1d7ff20b9'
         '857a831e8627727306208f0e776b1b98'
         '8d95633ac2f1d4705206f7bef6d8a524'
         'cf60e7ba4cf3467bb5539d5c51da61b6'
         'a63ff9ef5250965aeabc74bfa8e43981')