-
-
-# inside RIFT.io this is an NFS mount
-# so just to be safe
-test -h /usr/rift && sudo rm -f /usr/rift
-
-# get the container tools from the correct repository
-sudo rm -f /etc/yum.repos.d/private.repo
-sudo curl -o /etc/yum.repos.d/${PLATFORM_REPOSITORY}.repo \
- http://buildtracker.riftio.com/repo_file/fc20/${PLATFORM_REPOSITORY}/
-sudo yum install --assumeyes rw.tools-container-tools rw.tools-scripts
-
-
-# enable the OSM repository hosted by RIFT.io
-# this contains the RIFT platform code and tools
-# and install of the packages required to build and run
-# this module
-sudo /usr/rift/container_tools/mkcontainer --modes build --modes ext --repo ${PLATFORM_REPOSITORY}
-
-temp=$(mktemp -d /tmp/rw.XXX)
-pushd $temp
-
-# yum does not accept the --nodeps and --replacefiles options so we
-# download first and then install
-yumdownloader rw.toolchain-rwbase-${PLATFORM_VERSION} \
- rw.toolchain-rwtoolchain-${PLATFORM_VERSION} \
- rw.core.mgmt-mgmt-${PLATFORM_VERSION} \
- rw.core.util-util-${PLATFORM_VERSION} \
- rw.core.rwvx-rwvx-${PLATFORM_VERSION} \
- rw.core.rwvx-rwha-1.0-${PLATFORM_VERSION} \
- rw.core.rwvx-rwdts-${PLATFORM_VERSION} \
- rw.automation.core-RWAUTO-${PLATFORM_VERSION}
-
-sudo rpm -i --replacefiles --nodeps *rpm
-popd
-rm -rf $temp
-
-# this file gets in the way of the one generated by the build
-sudo rm -f /usr/rift/usr/lib/libmano_yang_gen.so
-
-
-sudo chmod 777 /usr/rift /usr/rift/usr/share
-
-if $installSO; then
- sudo apt-get install -y \
- rw.core.mc-\*-${PLATFORM_VERSION}