#!/bin/bash
rm -rf *.deb dists

wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-aoe-storage-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-citrix-4.2.1.0-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-cloud-4.2.1.0-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-dhcpd-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-dns-4.2.1.0-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-highavailability-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-image-shelf-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-iscsi-storage-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-kvm-4.2.1.0-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-linux-vserver-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-local-server-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-local-storage-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-lvm-storage-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-nagios2-4.2.1.2-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-netapp-storage-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-nfs-storage-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-puppet-4.2.1.0-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-sshterm-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-tftpd-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-vmware-esx-4.2.1.0-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-vmware-server-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-plugin-xen-4.2.1.1-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-server-4.2-debian40.i386.deb
wget http://nchc.dl.sourceforge.net/sourceforge/openqrm/openqrm-server-entire-4.2-debian40.i386.deb

mkdir -p dists/etch/stable/binary-i386/
apt-get install apt-utils
apt-ftparchive packages . > dists/etch/stable/binary-i386/Packages
echo "deb file:///root/openqrm etch stable" > /etc/apt/sources.list.d/openqrm.list
apt-get update
apt-get install openqrm-server-entire postfix

