<live_helper>
 <build_depents>splashy xfdesktop4-data</build_depents>
 <common>
  <lh_initramfs>live-initramfs</lh_initramfs>
  <apt_options>--yes --force-yes</apt_options>
  <lh_apt_recommends>disabled</lh_apt_recommends>
 </common>
 <bootstrap>
  <lh_architecture>i386</lh_architecture>
  <lh_distribution>lenny</lh_distribution>
  <lh_mirror_bootstrap>http://ftp.uni-koeln.de/debian/</lh_mirror_bootstrap>
  <lh_mirror_chroot>http://ftp.uni-koeln.de/debian/</lh_mirror_chroot>
  <lh_mirror_chroot_security>http://security.debian.org/</lh_mirror_chroot_security>
  <lh_mirror_binary>http://ftp.uni-koeln.de/debian/</lh_mirror_binary>
  <lh_mirror_binary_security>http://security.debian.org/</lh_mirror_binary_security>
  <lh_sections>main contrib non-free</lh_sections>
 </bootstrap>
 <chroot>
  <lh_packages_lists>standard-x11 common unixconf x11 x11-web x11-soft sxframe sxframe-dev xfce stm32-dev rcos-dev avr-dev python rx12-tools audio-tools arduino-deps tcl</lh_packages_lists>
 </chroot>
 <binary>
  <lh_binary_images>iso</lh_binary_images>
  <lh_bootloader>syslinux</lh_bootloader>
  <lh_syslinux_timeout>3</lh_syslinux_timeout>
  <lh_syslinux_splash>../Website/tools/livecd/syslinux.rle</lh_syslinux_splash>
  <lh_hostname>rcos</lh_hostname>
  <lh_username>rcos</lh_username>
  <lh_bootappend_live>utc=no keyb=de timezone=Europe/Berlin locale=de splash quiet xdebconf xautologin vga=0x314</lh_bootappend_live>
  <lh_bootappend_install>utc=no keyb=de timezone=Europe/Berlin locale=de splash quiet xdebconf xautologin vga=0x314</lh_bootappend_install>
 </binary>
 <files>
  <chroot>

   <sources>
    <unixconf.binary>deb http://www.multixmedia.org/Debian lenny unixconf</unixconf.binary>
    <unixconf.chroot>deb http://www.multixmedia.org/Debian lenny unixconf</unixconf.chroot>
    <sxframe.binary>deb http://www.multixmedia.org/Debian lenny sxframe</sxframe.binary>
    <sxframe.chroot>deb http://www.multixmedia.org/Debian lenny sxframe</sxframe.chroot>
    <contrib-nonfree.binary>deb http://ftp.de.debian.org/debian/ lenny contrib non-free</contrib-nonfree.binary>
    <contrib-nonfree.chroot>deb http://ftp.de.debian.org/debian/ lenny contrib non-free</contrib-nonfree.chroot>
   </sources>

   <local-packageslists>
    <common>linux-image-2.6-686 loop-aes-modules-2.6-686 lzma-modules-2.6-686 squashfs-modules-2.6-686 aufs-modules-2.6-686 hal splashy splashy-themes dbus ssh libfuse2 fusesmb rexima less unzip zip</common>
    <unixconf>unixconf unixconf-installer unixconf-installer-debian</unixconf>
    <x11>xdebconfigurator xorg xdebconfigurator xterm mousepad ttf-dustin</x11>
    <x11-web>epiphany-gecko</x11-web>
    <x11-soft>geany</x11-soft>
    <xfce>gdm xfce4</xfce>
    <icewm>gdm icewm thunar</icewm>
    <lxde>gdm lxde lxde-common lxde-core lxde-settings-daemon</lxde>
    <sxframe>sxf-mediacenter</sxframe>
    <sxframe-dev>build-essential libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-pango-dev libsdl-sge-dev libsdl-sound1.2-dev libsdl-stretch-dev libsdl-ttf2.0-dev libsdl1.2-dev</sxframe-dev>
    <oe-dev>build-essential bitbake</oe-dev>
    <stm32-dev>tkdiff cvs subversion git-core git-gui openocd</stm32-dev>
    <rcos-dev>zenity dialog ftdi-eeprom libftdi-dev libftdi1 wine mingw32 mingw32-binutils mingw32-runtime</rcos-dev>
    <avr-dev>binutils-avr avr-libc gcc-avr uisp usbprog usbprog-gui avarice gdb-avr avrprog avrp avrdude avrdude-doc avra hexedit</avr-dev>
    <python>python python-serial</python>
    <tcl>tcl tk tcllib libtk-img</tcl>
    <rx12-tools>gnuplot imagemagick</rx12-tools>
    <audio-tools>espeak sox rezound alsamixergui xoscope</audio-tools>
    <arduino-deps>java-common odbcinst1debian1 unixodbc openjdk-6-jre</arduino-deps>
   </local-packageslists>

   <local-hooks>
    <stripped><![CDATA[#!/bin/sh
	for PACKAGE in apt-utils aptitude man-db manpages info dselect module-assistant
	do
		apt-get remove --purge --yes "${PACKAGE}"
	done
	apt-get autoremove --yes || true
	find . -name *~ | xargs rm -f
	rm -rf /usr/share/info/* /usr/share/lintian/* /usr/share/linda/* /var/cache/man/* /var/lib/apt/lists /var/cache/apt
	mkdir -p /var/lib/apt/lists/partial /var/cache/apt/archives/partial
	for FILE in $(find /var/log/ -type f)
	do
		echo "" > ${FILE}
	done
    ]]></stripped>

    <splashy><![CDATA[#!/bin/sh
	cp -a /etc/splashy/themes/default /etc/splashy/themes/rcos-development
	cd /etc/splashy/themes/rcos-development
	rm -rf background.png 
	wget -O background.png http://www.rcos.eu/tools/livecd/livecd-bootsplash.png
	sed -i 's|<current_theme>.*</current_theme>|<current_theme>rcos-development</current_theme>|g' /etc/splashy/config.xml
	sed -i "/^vesafb.*/d" /etc/initramfs-tools/modules
	echo "uvesafb" >> /etc/initramfs-tools/modules
	update-initramfs -u -k all 
	test -e /usr/share/xfce4/backdrops/xfce-smoke.png && test -e background.png && cp background.png /usr/share/xfce4/backdrops/xfce-smoke.png
    ]]></splashy>

    <eagle-install.sh><![CDATA[#!/bin/sh
	mkdir -p /opt
	cd /opt
	if ! test -x /opt/eagle-5.10.0/bin/eagle
	then
		wget ftp://ftp.cadsoft.de/eagle/program/5.10/eagle-lin-5.10.0.run && sh eagle-lin-5.10.0.run /opt && rm -rf eagle-lin-5.10.0.run
	fi
	ln -sf /opt/eagle-5.10.0/bin/eagle /usr/bin/eagle
	mkdir -p /etc/skel/Desktop
	echo "#!/bin/sh" > /etc/skel/Desktop/Eagle
	echo "sudo /usr/bin/eagle &" >> /etc/skel/Desktop/Eagle
	chmod 755 /etc/skel/Desktop/Eagle
    ]]></eagle-install.sh>

    <googleearth-installer.sh><![CDATA[#!/bin/sh
	mkdir -p /opt
	cd /opt
	if ! test -x /opt/GoogleEarthLinux.bin
	then
		wget http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
	fi
	echo "#!/bin/sh" > /usr/bin/google-earth
	echo "if ! test -x /opt/google-earth/googleearth" >> /usr/bin/google-earth
	echo "then" >> /usr/bin/google-earth
	echo "	cd /opt" >> /usr/bin/google-earth
	echo "	sh GoogleEarthLinux.bin && rm -rf GoogleEarthLinux.bin" >> /usr/bin/google-earth
	echo "else" >> /usr/bin/google-earth
	echo "	cd /opt/google-earth" >> /usr/bin/google-earth
	echo "	/opt/google-earth/googleearth" >> /usr/bin/google-earth
	echo "fi" >> /usr/bin/google-earth
	chmod 755 /usr/bin/google-earth
	mkdir -p /etc/skel/Desktop
	echo "#!/bin/sh" > /etc/skel/Desktop/Google-Earth
	echo "sudo xterm -e /usr/bin/google-earth &" >> /etc/skel/Desktop/Google-Earth
	chmod 755 /etc/skel/Desktop/Google-Earth
    ]]></googleearth-installer.sh>

    <arduino-install.sh><![CDATA[#!/bin/sh
	mkdir -p /opt
	cd /opt
	if ! test -e /opt/arduino/arduino
	then
		wget http://arduino.googlecode.com/files/arduino-0018.tgz && tar xzvpf arduino-0018.tgz && mv arduino-0018 arduino && rm -rf arduino-0018.tgz
	fi
	echo "#!/bin/sh" > /usr/bin/arduino
	echo "cd /opt/arduino" >> /usr/bin/arduino
	echo "/opt/arduino/arduino" >> /usr/bin/arduino
	chmod 755 /usr/bin/arduino
	mkdir -p /etc/skel/Desktop
	echo "#!/bin/sh" > /etc/skel/Desktop/Arduino
	echo "cd /usr/src/" >> /etc/skel/Desktop/Arduino
	echo "sudo /usr/bin/arduino &" >> /etc/skel/Desktop/Arduino
	chmod 755 /etc/skel/Desktop/Arduino
    ]]></arduino-install.sh>

    <airview-install.sh><![CDATA[#!/bin/sh
	mkdir -p /opt
	cd /opt
	if ! test -e /opt/airview/airview.sh
	then
		wget http://www.ubnt.com/airview/download/AirView-Spectrum-Analyzer-v1.0.11.tar.gz && tar xzvpf AirView-Spectrum-Analyzer-v1.0.11.tar.gz && mv AirView-Spectrum-Analyzer-v1.0.11 airview && rm -rf AirView-Spectrum-Analyzer-v1.0.11.tar.gz
	fi	
	echo "#!/bin/sh" > /usr/bin/airview
	echo "cd /opt/airview" >> /usr/bin/airview
	echo "sh ./airview.sh" >> /usr/bin/airview
	chmod 755 /usr/bin/airview
	mkdir -p /etc/skel/Desktop
	echo "#!/bin/sh" > /etc/skel/Desktop/AirView
	echo "cd /usr/src/" >> /etc/skel/Desktop/AirView
	echo "sudo /usr/bin/airview &" >> /etc/skel/Desktop/AirView
	chmod 755 /etc/skel/Desktop/AirView
    ]]></airview-install.sh>

    <xfce-tips.sh><![CDATA[#!/bin/sh
	cat << EOF > /usr/share/xfce4/tips/tips
rCOS-DevCon starts the Develpment-Console for the rCOS-Develpment.
%
you can found all rCOS and RCOPEN24 Source's in the '/usr/src' Directory
%
you can flash AVR, ARM and STM32 CPU's (uisp, avrdude, avrprog, meshprog, stm32loader, ...)
%
you can compile C-Programms for Linux with SDL-Support (gcc, libc, SDL, SDL_image, SDL_ttf, ..)
%
you can cross compile C-Programms for AVR, ARM and STM32 (gcc-avr, avr-libc, gcc-cortex-m3, newlib, ..)
%
you can cross compile C-Programms for Windows with SDL-Support (i586-mingw32msvc-gcc, libc, SDL, SDL_image, SDL_ttf, ..)
%
you can compile C-Programms to control the FTDI-FT232R USB-Chip (libftdi, ftdi-eeprom)
%
you can flash Meshnetics-ZigBit-Modules (meshprog)
%
you can test the rCOS-Frontend and rCOS-Backend
%
you can test your RCOPEN24-Hardware (rcopen24)
%
you can scann the 2.4Ghz-Band with your RCOPEN24-Hardware (rcopen24-scann)
%
you can scann the 35/40Mhz-Band with your ACT-Hardware (act-scann)
%
you can use a Joy-Pad to test the rCOS-Software
%
EOF
	strfile /usr/share/xfce4/tips/tips /usr/share/xfce4/tips/tips.dat
    ]]></xfce-tips.sh>

    <rcos-dev.sh><![CDATA[#!/bin/sh
	chmod 777 -R /usr/src
	cd /usr/src
	wget -O rcos.tgz "http://www.rcos.eu/sources.tgz"
	tar xzpf rcos.tgz
	chmod 777 -R ./rcos/
	cp -a ./rcos/winlibs/includes/* /usr/i586-mingw32msvc/include/
	cp -a ./rcos/winlibs/*.dll ./rcos/winlibs/*.a /usr/i586-mingw32msvc/lib/
	cp -a ./rcos/winlibs/*.dll ./rcos/src/
	wget -O /usr/bin/rcos-frontend "http://www.rcos.eu/targets/pc-frontend/pc-frontend"
	chmod 755 -R /usr/bin/rcos-frontend
	mkdir -p /etc/skel/Desktop
	echo "#!/bin/sh" > /etc/skel/Desktop/rCOS-DevCon
	echo "export PATH=\"\$PATH:/usr/arm-elf-cortex-m3/bin\"" >> /etc/skel/Desktop/rCOS-DevCon
	echo "cd /usr/src/" >> /etc/skel/Desktop/rCOS-DevCon
	echo "sudo xterm &" >> /etc/skel/Desktop/rCOS-DevCon
	chmod 755 /etc/skel/Desktop/rCOS-DevCon
	echo "#!/bin/sh" > /etc/skel/Desktop/rCOS-Frontend
	echo "cd /usr/src/rcos/src/ ; rcos-frontend" >> /etc/skel/Desktop/rCOS-Frontend
	chmod 755 /etc/skel/Desktop/rCOS-Frontend
    ]]></rcos-dev.sh>

    <stm32-dev.sh><![CDATA[#!/bin/sh
	chmod 777 -R /usr/src
	cd /usr/src
	wget "http://www.rcos.eu/tools/cortex-m3-toolchain_0.1.deb"
	dpkg -i cortex-m3-toolchain_0.1.deb ; rm -rf cortex-m3-toolchain_0.1.deb
	apt-get install -f -y
	echo "export PATH=\"\$PATH:/usr/arm-elf-cortex-m3/bin\"" >> /etc/profile
	echo "export PATH=\"\$PATH:/usr/arm-elf-cortex-m3/bin\"" >> /root/.bashrc
	echo "export PATH=\"\$PATH:/usr/arm-elf-cortex-m3/bin\"" >> /etc/skel/.bashrc
	cd /usr/src
	wget "http://www.rcos.eu/tools/stm32loader/stm32loader"
	mv stm32loader /usr/bin/stm32loader
	chmod 755 /usr/bin/stm32loader
    ]]></stm32-dev.sh>

    <meshprog.sh><![CDATA[#!/bin/sh
	wget -O /usr/bin/meshprog "http://www.rcopen24.org/tools/meshprog/meshprog"
	chmod 755 -R /usr/bin/meshprog
    ]]></meshprog.sh>

    <rcopen24-dev.sh><![CDATA[#!/bin/sh
	cd /usr/src
	wget -O rcopen24.tgz "http://www.rcopen24.org/sources.tgz"
	tar xzpf rcopen24.tgz
	chmod 777 -R ./rcopen24/
    ]]></rcopen24-dev.sh>

    <avrspeak-dev.sh><![CDATA[#!/bin/sh
	cd /usr/src
	wget -O avrspeak.tgz "http://avrspeak.rcos.eu/sources.tgz"
	tar xzpf avrspeak.tgz
	chmod 777 -R ./avrspeak/
    ]]></avrspeak-dev.sh>

    <bksave-dev.sh><![CDATA[#!/bin/sh
	cd /usr/src
	wget -O bksave.tgz "http://bksave.rcos.eu/sources.tgz"
	tar xzpf bksave.tgz
	chmod 777 -R ./bksave/
    ]]></bksave-dev.sh>

    <rx12-avr-dev.sh><![CDATA[#!/bin/sh
	cd /usr/src
	wget -O rx12.tgz "http://rx12-avr.rcos.eu/sources.tgz"
	tar xzpf rx12.tgz
	chmod 777 -R ./rx12/
    ]]></rx12-avr-dev.sh>

    <oe-dev.sh><![CDATA[#!/bin/sh
#	echo "##### Gumstix-OE #####"
#	USER_NAME="oe"
#	HOME_DIRECTORY="/home/$USER_NAME"
#	useradd -u 10001 -m -k /etc/skel -s /bin/bash -d "$HOME_DIRECTORY" "$USER_NAME"
#	echo "$USER_NAME:$USER_NAME" | chpasswd
#	mkdir -p "$HOME_DIRECTORY"
#	cd "$HOME_DIRECTORY"
#	wget "http://oliver.multixmedia.org/modellbau/elektronik/RC-Sender/gumstix-oe.tgz"
#	tar xzpf gumstix-oe.tgz ; rm gumstix-oe.tgz
#	chmod -R $USER_NAME:$USER_NAME "$HOME_DIRECTORY"
#	mkdir /usr/share/sources
#	chown $USER_NAME:$USER_NAME /usr/share/sources
#	chmod 0775 /usr/share/sources
#	chmod ug+s /usr/share/sources
#	echo ". ~/gumstix/gumstix-oe/extras/profile" >> /etc/profile
    ]]></oe-dev.sh>

    <init.sh><![CDATA[#!/bin/sh
	echo snd-mixer-oss >> /etc/modules
	echo snd-pcm-oss >> /etc/modules
	splashy_config -s debian-cubism
	mkdir -p /etc/
	cat << EOF > /etc/rc.local
	test -e /usr/bin/fusesmb && (
		mkdir -p /media/Samba
		modprobe fuse
		/usr/bin/fusesmb /media/Samba
	) &
	test -x /usr/bin/rexima && /usr/bin/rexima vol 20 video 90 pcm 90 cd 90 line 90 mic 0 2> /dev/null > /dev/null &
	exit 0
EOF
	chmod 755 /etc/rc.local
    ]]></init.sh>

   </local-hooks>
  </chroot>
  <binary>
   <local-hooks>
    <qemu.sh><![CDATA[#!/bin/sh
	cd binary
	wget http://www.klabs.be/~fpiat/projects/autorun4linuxCD/autorun4linuxCD.tar.gz
	tar xfz autorun4linuxCD.tar.gz
	mv autorun4linuxCD/* .
	rm -f autorun4linuxCD.tar.gz
	rm -rf autorun4linuxCD
	cd "${OLDPWD}"
    ]]></qemu.sh>
    <rcos-x86.sh><![CDATA[#!/bin/sh
	wget -O binary/live/rcos.c32 http://www.rcos.eu/tools/livecd/rcos.c32
	wget -O binary/isolinux/menu.cfg http://www.rcos.eu/tools/livecd/bootmenu.cfg
    ]]></rcos-x86.sh>
   </local-hooks>
  </binary>
 </files>
</live_helper>

