Commit ddfb2e76 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add stub libtestbed.pm to provide some functionality needed by

event.pm (swigged event code).

Add symlink from /usr/testbed/lib to /usr/local/etc/emulab.
parent 3344c1f1
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -29,6 +29,7 @@ BINDIR = $(DESTDIR)$(CLIENT_BINDIR)
VARDIR = $(DESTDIR)$(CLIENT_VARDIR)
RCDIR = $(DESTDIR)/usr/local/etc/rc.d
TBBINDIR = $(DESTDIR)/usr/testbed/bin
TBLIBDIR = $(DESTDIR)/usr/testbed/lib
INSTALL = /usr/bin/install -c
install:
......@@ -65,6 +66,7 @@ path-install: dir-install
common-script-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/../libsetup.pm $(BINDIR)/libsetup.pm
$(INSTALL) -m 755 $(SRCDIR)/libtmcc.pm $(BINDIR)/libtmcc.pm
$(INSTALL) -m 755 $(SRCDIR)/libtestbed.pm $(BINDIR)/libtestbed.pm
$(INSTALL) -m 755 $(SRCDIR)/tmcc.pl $(BINDIR)/tmcc
$(INSTALL) -m 755 $(SRCDIR)/watchdog $(BINDIR)/watchdog
$(INSTALL) -m 755 $(SRCDIR)/ntpstart $(BINDIR)/ntpstart
......@@ -81,6 +83,8 @@ symlinks: dir-install
ln -s $(BINDIR)/tevc $(TBBINDIR)/tevc
rm -f $(TBBINDIR)/emulab-sync
ln -s $(BINDIR)/emulab-sync $(TBBINDIR)/emulab-sync
rm -f $(TBLIBDIR)
ln -s $(BINDIR) $(TBLIBDIR)
local-script-install: common-script-install
$(INSTALL) -m 755 $(SRCDIR)/bootsetup $(BINDIR)/bootsetup
......
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
#
# This is a stub library to provide a few things that libtestbed on
# boss provides.
#
package libtestbed;
use Exporter;
@ISA = "Exporter";
@EXPORT = qw( TB_BOSSNODE );
# Must come after package declaration!
use English;
#
# Turn off line buffering on output
#
$| = 1;
# Load up the paths. Done like this in case init code is needed.
BEGIN
{
if (! -e "/etc/emulab/paths.pm") {
die("Yikes! Could not require /etc/emulab/paths.pm!\n");
}
require "/etc/emulab/paths.pm";
import emulabpaths;
}
# Need this.
use libtmcc;
#
# Return name of the bossnode.
#
sub TB_BOSSNODE()
{
return tmccbossname();
}
1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment