Include extra repos

This commit is contained in:
Bob Mottram 2017-06-15 12:43:52 +01:00
parent 67230ecaca
commit e65779aa0b
3 changed files with 38 additions and 4 deletions

View File

@ -983,7 +983,16 @@ function image_install_inadyn {
mkdir -p $rootdir/root/build mkdir -p $rootdir/root/build
fi fi
chroot "$rootdir" apt-get -yq install build-essential curl libgnutls28-dev automake1.11 libconfuse-dev chroot "$rootdir" apt-get -yq install build-essential curl libgnutls28-dev automake1.11 libconfuse-dev
git clone $INADYN_REPO $rootdir/root/build/inadyn
if [ -d /repos/inadyn ]; then
mkdir $rootdir/root/build/inadyn
cp -r -p /repos/inadyn/* $rootdir/root/build/inadyn
cd $rootdir/root/build/inadyn
git pull
else
git clone $INADYN_REPO $rootdir/root/build/inadyn
fi
if [ ! -d $rootdir/root/build/inadyn ]; then if [ ! -d $rootdir/root/build/inadyn ]; then
echo 'Failed to clone inadyn' echo 'Failed to clone inadyn'
exit 728252 exit 728252
@ -1225,6 +1234,8 @@ function image_preinstall_repos {
if [ ! -d $rootdir/repos ]; then if [ ! -d $rootdir/repos ]; then
mkdir $rootdir/repos mkdir $rootdir/repos
fi fi
git clone $CMAKE_REPO $rootdir/repos/cmake
git clone $INADYN_REPO $rootdir/repos/inadyn
git clone $CRYPTPAD_REPO $rootdir/repos/cryptpad git clone $CRYPTPAD_REPO $rootdir/repos/cryptpad
git clone $DOKUWIKI_REPO $rootdir/repos/dokuwiki git clone $DOKUWIKI_REPO $rootdir/repos/dokuwiki
git clone $ETHERPAD_REPO $rootdir/repos/etherpad git clone $ETHERPAD_REPO $rootdir/repos/etherpad

View File

@ -38,7 +38,15 @@ function mesh_install_cmake {
chroot "$rootdir" apt-get -yq install build-essential chroot "$rootdir" apt-get -yq install build-essential
git clone $CMAKE_REPO $rootdir$INSTALL_DIR/cmake if [ -d /repos/cmake ]; then
mkdir $rootdir$INSTALL_DIR/cmake
cp -r -p /repos/cmake/* $rootdir$INSTALL_DIR/cmake
cd $rootdir$INSTALL_DIR/cmake
git pull
else
git clone $CMAKE_REPO $rootdir$INSTALL_DIR/cmake
fi
cd $rootdir$INSTALL_DIR/cmake cd $rootdir$INSTALL_DIR/cmake
git checkout $CMAKE_COMMIT -b $CMAKE_COMMIT git checkout $CMAKE_COMMIT -b $CMAKE_COMMIT
@ -85,7 +93,15 @@ function install_cmake {
apt-get -yq install build-essential apt-get -yq install build-essential
git_clone $CMAKE_REPO $INSTALL_DIR/cmake if [ -d /repos/cmake ]; then
mkdir $INSTALL_DIR/cmake
cp -r -p /repos/cmake/* $INSTALL_DIR/cmake
cd $INSTALL_DIR/cmake
git pull
else
git_clone $CMAKE_REPO $INSTALL_DIR/cmake
fi
cd $INSTALL_DIR/cmake cd $INSTALL_DIR/cmake
git checkout $CMAKE_COMMIT -b $CMAKE_COMMIT git checkout $CMAKE_COMMIT -b $CMAKE_COMMIT
./bootstrap ./bootstrap

View File

@ -441,7 +441,14 @@ function install_dynamicdns {
apt-get -yq install build-essential curl libgnutls28-dev automake1.11 apt-get -yq install build-essential curl libgnutls28-dev automake1.11
if [ ! -d $INSTALL_DIR/inadyn ]; then if [ ! -d $INSTALL_DIR/inadyn ]; then
git_clone $INADYN_REPO $INSTALL_DIR/inadyn if [ -d /repos/inadyn ]; then
mkdir $INSTALL_DIR/inadyn
cp -r -p /repos/inadyn/* $INSTALL_DIR/inadyn
cd $INSTALL_DIR/inadyn
git pull
else
git_clone $INADYN_REPO $INSTALL_DIR/inadyn
fi
fi fi
if [ ! -d $INSTALL_DIR/inadyn ]; then if [ ! -d $INSTALL_DIR/inadyn ]; then
echo 'inadyn repo not cloned' echo 'inadyn repo not cloned'