# all cuurently supported dists
allnddists="nd+debian-lenny nd+debian-squeeze nd+debian-wheezy nd+debian-sid \
- nd+ubuntu-oneiric nd+ubuntu-natty nd+ubuntu-maverick nd+ubuntu-lucid nd+ubuntu-karmic nd+ubuntu-hardy"
+ nd+ubuntu-hardy nd+ubuntu-karmic nd+ubuntu-lucid nd+ubuntu-maverick nd+ubuntu-natty nd+ubuntu-oneiric"
alldists="$allnddists debian-lenny debian-squeeze debian-wheezy debian-sid"
# default is debian
Package: neurodebian-dev
Architecture: all
Depends: ${misc:Depends}, devscripts, cowbuilder, python, neurodebian-keyring
-Recommends: virtualbox-ose, virtualbox-ose-fuse, zerofree, moreutils
+Recommends: zerofree, moreutils, time
+Suggests: virtualbox-ose, virtualbox-ose-fuse
Suggests:
Description: NeuroDebian development tools
neuro.debian.net sphinx website sources and development tools used by
--mirror "$mirror" \
--debootstrapopts --arch=$a \
--othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free"
- # deploy our key manually since archive with package is not yet
- # available at this point
- cp --preserve=mode {,${cow}}/etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg
+ # deploy our key manually since archive with package is not yet
+ # available at this point
+ mkdir -p ${cow}/etc/apt/trusted.gpg.d
+ cp --preserve=mode {,${cow}}/etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg
+ # Old ubuntus might not have capability to ready from that key yet,
+ # so we would need to manually add it
+ if [ $dist = 'karmic' ] || [ $dist = 'hardy' ]; then
+ chroot ${cow} bash -c "apt-get install -y --force-yes gnupg \
+ && /usr/bin/apt-key add /etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg \
+ && /usr/bin/apt-get update"
+ fi
else
cowbuilder --create --basepath ${cow} $opts \
--components "$components" \
--- /dev/null
+#!/bin/bash
+# Little helper to bootstrap all ND chroots as specified in
+# /etc/neurodebian/cmdsettings.sh unless a list provided in command line
+
+. /etc/neurodebian/cmdsettings.sh
+
+[ -z "$@" ] && dists="$allnddists" || dists="$@"
+
+echo "Initiating creation of chroots for $dists"
+
+set -eu
+
+CMD=
+MSGS="SUMMARY:\n"
+for dist in $dists; do
+ if [ -e "$cowbuilderroot/cow/$dist-amd64.cow" ]; then
+ status=exists
+ else
+ $CMD sudo $PWD/nd_adddist ${dist%%-*} ${dist#*-} && status=ok || status=failed
+ fi
+ MSGS+=" $(printf '%-30s\\t%s' $dist $status)\n"
+done
+echo -en $MSGS
+