1 export VSERVER_ROOT
=/var
/lib
/vservers
/
2 export CIT_APACHE_DIR
=/home
/debiancitadel
/
3 export APACHE_ROOT
=${VSERVER_ROOT}/apache
/${CIT_APACHE_DIR}
4 export TARGETS
=/home
/citbuild
/targets
5 export CHECKOUT_DIR
=/home
/checkout
/
6 export CONTRIB_DIR
=/home
/contrib
/
8 # retrieve the debian sources.
10 # $2: the inner Directory, aka CHECKOUT_DIR
11 # $3: the Program Component.
14 cd ${VSERVER_ROOT}/$1/${2}; apt-get
source $3
17 # compile the sources of one component.
18 # $1: the VSERVER_BASE
19 # $2: the inner Directory, aka CHECKOUT_DIR
20 # $3: the Program Component.
23 chroot
${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}/${3}*; fakeroot dpkg-buildpackage
"
26 # Install a contrib library into the build system.
27 # $1: the VSERVER_BASE
28 # $2: the inner Directory, aka CHECKOUT_DIR
29 # $3: the Program Component.
32 chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}; dpkg -i ${3}*.deb"
36 # $1: the VSERVER_BASE
37 # $2: the distro dir on the webserver
40 mv ${VSERVER_ROOT}/${1}/${CHECKOUT_DIR}/*.deb
$APACHE_ROOT/public_html
/$2/
41 cp ${VSERVER_ROOT}/${1}/${CONTRIB_DIR}/*.deb
$APACHE_ROOT/public_html
/$2/
44 # $1: the VSERVER_BASE
45 # $2: the inner Directory, aka CHECKOUT_DIR
48 rm -rf ${VSERVER_ROOT}/$1/${2}/*
52 # $1: the distro dir on the webserver
55 rm -f $APACHE_ROOT/public_html
/$1/*.deb
59 # Install a contrib library into the build system.
60 # $1: the VSERVER_BASE
63 chroot
${VSERVER_ROOT}/$1/ /bin
/bash
-c "apt-get update; apt-get upgrade"