-# 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}
+if [[ $PLATFORM == ub16 ]]; then
+ # install the RIFT platform code:
+ sudo apt-get install -y --allow-downgrades 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-rwdts=${PLATFORM_VERSION} \
+ rw.automation.core-RWAUTO=${PLATFORM_VERSION} \
+ rw.core.rwvx-rwha-1.0=${PLATFORM_VERSION}
+
+ sudo chmod 777 /usr/rift /usr/rift/usr/share
+
+ if $installSO; then
+ sudo apt-get install -y \
+ rw.core.mc-\*=${PLATFORM_VERSION}
+ fi
+
+ if $installUI; then
+ sudo apt-get install -y \
+ rw.ui-about=${PLATFORM_VERSION} \
+ rw.ui-logging=${PLATFORM_VERSION} \
+ rw.ui-skyquake=${PLATFORM_VERSION} \
+ rw.ui-accounts=${PLATFORM_VERSION} \
+ rw.ui-composer=${PLATFORM_VERSION} \
+ rw.ui-launchpad=${PLATFORM_VERSION} \
+ rw.ui-debug=${PLATFORM_VERSION} \
+ rw.ui-config=${PLATFORM_VERSION} \
+ rw.ui-dummy_component=${PLATFORM_VERSION}
+ fi
+elif [[ $PLATFORM == fc20 ]]; then
+
+ 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}
+
+ # Install one at a time so that pre-installed packages will not cause a failure
+ for pkg in *rpm; do
+ # Check to see if the package is already installed; do not try to install
+ # it again if it does, since this causes rpm -i to return failure.
+ if rpm -q $(rpm -q -p $pkg) >/dev/null; then
+ echo "WARNING: package already installed: $pkg"
+ else
+ sudo rpm -i --replacefiles --nodeps $pkg
+ fi
+ done
+
+ 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