ports-install 707 Bytes
Newer Older
1 2 3 4 5 6
#!/bin/sh

#
# A little script to put the testbed ports into the ports tree
#

7
PORTSDIR=${PORTSDIR:-/usr/ports}
8 9
PORTSUBDIR=misc
SRCDIR=`dirname $0`
10
PORTS="abac emulab-boss emulab-extras emulab-fs emulab-ops emulab-protogeni emulab-pubsub emulab-py-m2crypto emulab-tftp-hpa emulab-tipserv ipmitool-devel libtelnet otcl xerces-c2 p5-IO-EventMux p5-IO-EventMux-Socket-MsgHdr p5-Privileges-Drop p5-RPC-Async"
11

12
echo "Copying ports ..."
13 14 15
for PORT in $PORTS
do
    cp -r $SRCDIR/$PORT $PORTSDIR/$PORTSUBDIR
16
    if [ "$?" != "0" ]
17 18 19 20
    then
	exit 1
    fi
done
21

22
# "register" the emulab ports
Mike Hibler's avatar
Mike Hibler committed
23 24
echo "Patching $PORTSDIR/$PORTSUBDIR/Makefile ..."
patch -p0 $PORTSDIR/$PORTSUBDIR/Makefile ports.patch
25 26

echo "Done!"
27
exit 0