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

When ELVIN_COMPAT is on, make sure that turn on the elvin_gateway by

renaming the startup file in /usr/local/etc/rc.d (which of course
needs to be there, and will be, cause someone will turn pubsub into a
package that we can pkg_add).
parent c823433d
......@@ -46,6 +46,7 @@ my $LOGDIR = "$PREFIX/log";
my $ETCDIR = "$PREFIX/etc";
my $LIBDIR = "$PREFIX/lib";
my $SCRATCHDIR = '@FSDIR_SCRATCH@';
my $ELVIN_COMPAT= @ELVIN_COMPAT@;
#
# Fixed paths for clients
......@@ -946,6 +947,16 @@ Phase "rc.d", "Setting up rc.d scripts", sub {
PhaseFail("Unable to remove $RCDIR/mysql-server: $!");
}
};
if ($ELVIN_COMPAT) {
Phase "elvin-gateway", "Installing elvin gateway startup file", sub {
DoneIfExists("$RCDIR/3.elvin_gateway.sh");
PhaseFail("Pubsub system or elvin_gateway is not installed")
if (! -e "$RCDIR/3.elvin_gateway");
ExecQuietFatal("mv $RCDIR/3.elvin_gateway ".
" $RCDIR/3.elvin_gateway.sh");
};
}
Phase "rc.testbed", "Installing testbed RC scripts", sub {
Phase "elvind.sh", "Removing port version of elvind.sh", sub {
DoneIfDoesntExist("$RCDIR/elvind.sh");
......
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