cat > /etc/apt/sources.list.d/kolab.list <<FINISH
deb http://obs.kolabsys.com/repositories/Kolab:/3.4/Debian_7.0/ ./
deb http://obs.kolabsys.com/repositories/Kolab:/3.4:/Updates/Debian_7.0/ ./
FINISH
wget http://obs.kolabsys.com/repositories/Kolab:/3.4/Debian_7.0/Release.key
apt-key add Release.key; rm -rf Release.key
wget http://obs.kolabsys.com/repositories/Kolab:/3.4:/Updates/Debian_7.0/Release.key
apt-key add Release.key; rm -rf Release.key
cat > /etc/apt/preferences.d/kolab <<FINISH
Package: *
Pin: origin obs.kolabsys.com
Pin-Priority: 501
FINISH
echo "web" > /etc/hostname
echo "127.0.0.1 web.opensrc.fr web localhost" > /etc/hosts
/etc/init.d/hostname.sh
apt-get update
apt-get install kolab
setup-kolab



 ns-slapd ldif2db \
    -D /etc/dirsrv/slapd-web \
    -n opensrc_fr \
    -i /tmp/kolab/ldif