Commit 5b9079b9 authored by Mike Hibler's avatar Mike Hibler

Hack support for a "local" (non-boss) version of the power command.

Uses text files for getting the controller info and outlet map.
Only supported for the APC and Raritan modules. Some of the other
modules might work...but we don't care. Others would not work without
more effort as they use the Emulab DB directly.

Included hack makefile targets "localboss" and "localboss-install"
to install this version and the minimum number of modules.
parent 7618db64
......@@ -34,6 +34,9 @@ SYSTEM := $(shell uname -s)
include $(OBJDIR)/Makeconf
LOCALBOSS_BIN_STUFF = powerlocal
LOCALBOSS_LIB_STUFF = libtestbed.pm power_apc.pm power_raritan.pm
SUBBOSS_SBIN_SCRIPTS = reportboot reportboot_daemon
SUBDIRS = checkpass ns2ir nseparse checkup template_cvsroot \
snmpit
......@@ -160,6 +163,8 @@ COMPILED_TARGETS =
#
all: $(TARGETS) $(addprefix compiled/, $(COMPILED_TARGETS))
localboss: $(LOCALBOSS_BIN_STUFF) $(LOCALBOSS_LIB_STUFF)
subboss: $(SUBBOSS_SBIN_SCRIPTS)
$(SUBBOSS_SBIN_SCRIPTS):
......@@ -212,6 +217,9 @@ endif
boss-install: all script-install subdir-install
@echo "Don't forget to do a post-install as root"
localboss-install: $(addprefix $(INSTALL_BINDIR)/, $(LOCALBOSS_BIN_STUFF)) \
$(addprefix $(INSTALL_LIBDIR)/, $(LOCALBOSS_LIB_STUFF))
subboss-install: $(addprefix $(INSTALL_SBINDIR)/, $(SUBBOSS_SBIN_SCRIPTS))
ln -sf $(INSTALL_SBINDIR)/reportboot \
$(DESTDIR)$(CLIENT_BINDIR)/reportboot
......
This diff is collapsed.
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