-# Install web scripts
-echo "* Installing web scripts"
-mkdir -p $root/usr/bin
-install -m 755 \
- $srcdir/plc/scripts/gen-sites-xml.py \
- $srcdir/plc/scripts/gen-slices-xml-05.py \
- $srcdir/plc/scripts/gen-static-content.py \
- $root/usr/bin/
-
-# Install web pages
-echo "* Installing web pages"
-mkdir -p $root/var/www/html
-# Exclude old cruft, unrelated GENI pages, and official documents
-rsync -a \
- --exclude='*2002' --exclude='*2003' \
- --exclude=geni --exclude=PDN --exclude=Talks \
- $srcdir/plc_www/ $root/var/www/html/
-
-# Install node RPMs
-if [ -n "$RPM_BUILD_DIR" ] ; then
- echo "* Installing node RPMs"
- RPM_RPMS_DIR=$(cd $(dirname $RPM_BUILD_DIR)/RPMS && pwd -P)
- mkdir -p $root/var/www/html/install-rpms/planetlab
- # Exclude ourself (e.g., if rebuilding), the bootcd and
- # bootmanager builds, and debuginfo RPMs.
- rsync -a \
- --exclude='myplc-*' \
- --exclude='bootcd-*' --exclude='bootmanager-*' \
- --exclude='*-debuginfo-*' \
- $(find $RPM_RPMS_DIR -type f -and -name '*.rpm') \
- $root/var/www/html/install-rpms/planetlab/
- if [ -f $RPM_RPMS_DIR/yumgroups.xml ] ; then
- install -D -m 644 $RPM_RPMS_DIR/yumgroups.xml \
- $root/var/www/html/install-rpms/planetlab/yumgroups.xml
- fi
- yum-arch $root/var/www/html/install-rpms/planetlab || :
- createrepo $root/var/www/html/install-rpms/planetlab || :
-fi
-
-# XXX Build imprintable BootCD and BootManager images.
-
-# Install configuration file
-echo "* Installing configuration file"
-install -D -m 644 $config $data/etc/planetlab/plc_config.xml
-
-# Move "data" directories out of the installation