ports-install 993 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="emulab-boss emulab-fs emulab-ops emulab-tftp-hpa net-snmp4 p5-GD-old p5-DBD-mysql50-old ulsshxmlrpcpp emulab-iperf emulab-php4 emulab-php5 emulab-py-m2crypto emulab-mailman emulab-pubsub emulab-extras emulab-clrhouse emulab-protogeni p5-IO-EventMux p5-IO-EventMux-Socket-MsgHdr p5-Privileges-Drop p5-RPC-Async p5-SNMP libtelnet emulab-dhcp30-client"
11 12 13

EPORTS="elvind libelvin emulab-pubsub-elvincompat"
EPATCH=ports-elvin.patch
14

15
echo "Copying ports ..."
16 17 18
for PORT in $PORTS
do
    cp -r $SRCDIR/$PORT $PORTSDIR/$PORTSUBDIR
Robert Ricci's avatar
Robert Ricci committed
19
    if [ "$?" != "0" ]
20 21 22 23
    then
	exit 1
    fi
done
Robert Ricci's avatar
Robert Ricci committed
24

25
# "register" the emulab ports
Mike Hibler's avatar
Mike Hibler committed
26 27
echo "Patching $PORTSDIR/$PORTSUBDIR/Makefile ..."
patch -p0 $PORTSDIR/$PORTSUBDIR/Makefile ports.patch
28 29 30 31 32 33 34

## recreate the index
#echo "Recreating ports INDEX (this will take forever) ..."
#cd $PORTSDIR
#make index

echo "Done!"
Robert Ricci's avatar
Robert Ricci committed
35
exit 0