Revision ed2c3597

b/devel/build_chroot
111 111

  
112 112
APT_INSTALL="apt-get install -y --no-install-recommends"
113 113

  
114
echo "deb http://backports.debian.org/debian-backports" \
115
     "$DIST_RELEASE-backports main contrib non-free" \
116
     > $CHDIR/etc/apt/sources.list.d/backports.list
114
if [ DIST_RELEASE = squeeze ]
115
then
116
  echo "deb http://backports.debian.org/debian-backports" \
117
       "$DIST_RELEASE-backports main contrib non-free" \
118
       > $CHDIR/etc/apt/sources.list.d/backports.list
119
fi
117 120

  
118 121
#Install all the packages
119 122
in_chroot -- \
120 123
  apt-get update
121 124

  
125
case $DIST_RELEASE in
126

  
127
  squeeze)
122 128

  
123 129
# do not install libghc6-network-dev, since it's too old, and just
124 130
# confuses the dependencies
......
132 138
    libghc6-vector-dev \
133 139
    libpcre3-dev \
134 140
    hlint hscolour pandoc \
135
    graphviz socat qemu-utils \
141
    graphviz qemu-utils \
136 142
    python-docutils \
137 143
    python-simplejson \
138 144
    python-pyparsing \
......
203 209
    git-email \
204 210
    vim
205 211

  
212
;;
213

  
214
  wheezy)
215

  
206 216
in_chroot -- \
207
  $APT_INSTALL sudo fakeroot rsync locales less
217
  $APT_INSTALL \
218
  autoconf automake ghc ghc-haddock libghc-network-dev \
219
  libghc-test-framework{,-hunit,-quickcheck2}-dev \
220
  libghc-json-dev libghc-curl-dev libghc-hinotify-dev \
221
  libghc-parallel-dev libghc-utf8-string-dev \
222
  libghc-hslogger-dev libghc-crypto-dev \
223
  libghc-regex-pcre-dev libghc-attoparsec-dev \
224
  libghc-vector-dev libghc-temporary-dev \
225
  libghc-snap-server-dev libpcre3 libpcre3-dev hscolour hlint pandoc \
226
  python-setuptools python-sphinx python-epydoc graphviz python-pyparsing \
227
  python-simplejson python-pycurl python-paramiko \
228
  python-bitarray python-ipaddr python-yaml qemu-utils python-coverage pep8 \
229
  shelltestrunner python-dev pylint openssh-client vim git git-email
208 230

  
209
echo "en_US.UTF-8 UTF-8" >> $CHDIR/etc/locale.gen
231
  easy_install pyinotify==0.9.4
232

  
233
;;
234

  
235
  *)
210 236

  
211 237
in_chroot -- \
212
  locale-gen
238
  $APT_INSTALL \
239
  autoconf automake ghc ghc-haddock libghc-network-dev \
240
  libghc-test-framework{,-hunit,-quickcheck2}-dev \
241
  libghc-json-dev libghc-curl-dev libghc-hinotify-dev \
242
  libghc-parallel-dev libghc-utf8-string-dev \
243
  libghc-hslogger-dev libghc-crypto-dev \
244
  libghc-regex-pcre-dev libghc-attoparsec-dev \
245
  libghc-vector-dev libghc-temporary-dev \
246
  libghc-snap-server-dev libpcre3 libpcre3-dev hscolour hlint pandoc \
247
  python-setuptools python-sphinx python-epydoc graphviz python-pyparsing \
248
  python-simplejson python-pyinotify python-pycurl python-paramiko \
249
  python-bitarray python-ipaddr python-yaml qemu-utils python-coverage pep8 \
250
  shelltestrunner python-dev pylint openssh-client vim git git-email
251

  
252
;;
253
esac
254

  
255
echo "en_US.UTF-8 UTF-8" >> $CHDIR/etc/locale.gen
213 256

  
214 257
in_chroot -- \
215
  $APT_INSTALL lvm2 ssh bridge-utils iproute iputils-arping \
216
               ndisc6 python python-pyopenssl openssl \
217
               python-mock \
218
               socat fping
258
  $APT_INSTALL sudo fakeroot rsync locales less socat
219 259

  
220 260
in_chroot -- \
221
  $APT_INSTALL qemu-utils
261
  locale-gen
222 262

  
223 263
in_chroot -- \
224
  easy_install affinity
264
  $APT_INSTALL lvm2 ssh bridge-utils iproute iputils-arping \
265
               ndisc6 python-openssl openssl \
266
               python-mock fping qemu-utils
225 267

  
226
#Python development tools
227 268
in_chroot -- \
228
  $APT_INSTALL python-epydoc
269
  easy_install affinity
229 270

  
230
#Tools for creating debian packages
231 271
in_chroot -- \
232
  $APT_INSTALL debhelper quilt
272
  $APT_INSTALL \
273
  python-epydoc debhelper quilt
233 274

  
234 275
# extra debian packages
235 276

  
......
259 300
echo "Chroot created. In order to run it:"
260 301
echo " * Copy the file $FINAL_CHROOT_CONF to $CONF_DIR/$FINAL_CHROOT_CONF"
261 302
echo " * Copy the file $COMP_FILEPATH to $CHROOT_DIR/$COMP_FILENAME"
262

  
263 303
echo "Then run \"schroot -c $CHROOTNAME\""

Also available in: Unified diff