Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
68f1865e
Commit
68f1865e
authored
Feb 26, 2006
by
Leigh B. Stoller
Browse files
Add more low hanging Collaboratory support; CVS repos, including the
public stuff needed on ops (cvsd).
parent
4547dac5
Changes
4
Hide whitespace changes
Inline
Side-by-side
defs-elabinelab
View file @
68f1865e
...
...
@@ -36,7 +36,7 @@ BUGDBSUPPORT=0
MAILMANSUPPORT=changeme
WINSUPPORT=0
SFSSUPPORT=0
CVSSUPPORT=
0
CVSSUPPORT=
changeme
NFSTRACESUPPORT=0
DISABLE_NSE=1
# This means it is an inner elab!
...
...
install/ops-install.in
View file @
68f1865e
...
...
@@ -37,10 +37,11 @@ my $LOGFACIL = '@TBLOGFACIL@';
my
$ELABINELAB
=
@ELABINELAB@
;
my
$WINSUPPORT
=
@WINSUPPORT@
;
my
$MAILMANSUPPORT
=
@MAILMANSUPPORT@
;
my
$CVSSUPPORT
=
@CVSSUPPORT@
;
my
$QUOTA_FSLIST
=
'
@FS_WITH_QUOTAS@
';
my
$LOGDIR
=
"
$PREFIX
/log
";
my
$ETCDIR
=
"
$PREFIX
/etc
";
my
$LIBDIR
=
"
$PREFIX
/lib
";
# True if we are also the FS node
my
$ISFS
=
(
$USERNODE
eq
$FSNODE
)
?
1
:
0
;
...
...
@@ -324,6 +325,26 @@ Phase "ports", "Installing ports", sub {
ExecQuietFatal
("
$ENV
PKG_PATH=
$packagedir
$PKG_ADD
$pname
");
};
}
if
(
$CVSSUPPORT
)
{
Phase
"
cvsd
",
"
Installing cvsd package
",
sub
{
PhaseSkip
("
cvsd not supported on ops
")
if
(
$FBSD_VERSION
<
6
);
if
(
!
ExecQuiet
("
$PKG_INFO
-x -e cvsd
"))
{
PhaseSkip
("
cvsd package already installed
");
}
if
(
!
$packagedir
)
{
PhaseSkip
("
No package directory provided
");
}
# Lets not hardwire the package name; whatever it is will do.
my
$pname
=
`
ls
$packagedir
/cvsd-*.tbz
`;
PhaseFail
("
Cannot find cvsd package in
$packagedir
!
")
if
(
$?
);
chomp
(
$pname
);
ExecQuietFatal
("
$ENV
PKG_PATH=
$packagedir
$PKG_ADD
$pname
");
};
}
PhaseSkip
("
Package directory provided; not installing from source
")
if
(
$packagedir
);
...
...
@@ -1000,6 +1021,59 @@ if ($MAILMANSUPPORT) {
};
};
}
if
(
$CVSSUPPORT
)
{
my
$CVSDDIR
=
"
/usr/local/etc/cvsd
";
my
$CVSDCONF
=
"
$CVSDDIR
/cvsd.conf
";
my
$CVSDHEAD
=
"
$LIBDIR
/cvsd.conf.head
";
my
$CVSDJAIL
=
"
/var/cvsjail
";
my
$BUILDROOT
=
"
/usr/local/sbin/cvsd-buildroot
";
my
$REPOSDIR
=
"
/proj/cvsrepos
";
Phase
"
cvsd
",
"
Installing cvsd
",
sub
{
PhaseSkip
("
cvsd not supported on ops
")
if
(
$FBSD_VERSION
<
6
);
Phase
"
files
",
"
Installing cvsd files
",
sub
{
DoneIfExists
(
$CVSDHEAD
);
ExecQuietFatal
("
$GMAKE
-C
$TOP_OBJDIR
/collab/cvs control-install
");
};
Phase
"
cvsd.conf
",
"
Installing cvsd.conf
",
sub
{
DoneIfExists
(
$CVSDCONF
);
ExecQuietFatal
("
$CP
-f
$CVSDHEAD
$CVSDCONF
");
};
Phase
"
jail
",
"
Creating cvsd jail hierarchy
",
sub
{
DoneIfExists
(
$CVSDJAIL
);
ExecQuietFatal
("
$BUILDROOT
$CVSDJAIL
");
};
Phase
"
dirs
",
"
Creating extra directories
",
sub
{
if
(
!
-
e
"
$CVSDJAIL
/dummy
")
{
mkdir
("
$CVSDJAIL
/dummy
",
0755
)
or
PhaseFail
("
Unable to make
$CVSDJAIL
/dummy : $!
");
}
if
(
!
-
e
"
$CVSDJAIL
/cvsrepos
")
{
mkdir
("
$CVSDJAIL
/cvsrepos
",
0755
)
or
PhaseFail
("
Unable to make
$CVSDJAIL
/cvsrepos : $!
");
}
ExecQuietFatal
("
$CHGRP
nobody
$CVSDJAIL
/dummy
$CVSDJAIL
/cvsrepos
");
if
(
!
-
e
"
$REPOSDIR
")
{
mkdir
("
$REPOSDIR
",
0775
)
or
PhaseFail
("
Unable to make
$REPOSDIR
: $!
");
}
};
Phase
"
cvsd.sh
",
"
Installing cvsd.sh
",
sub
{
DoneIfExists
("
$RCDIR
/cvsd.sh
");
ExecQuietFatal
("
mv
$RCDIR
/cvsd.sh.sample
$RCDIR
/cvsd.sh
");
ExecQuietFatal
("
$CHMOD
a+x
$RCDIR
/cvsd.sh
");
};
};
}
exit
(
0
)
if
(
$ELABINELAB
);
...
...
install/ports/emulab-ops/Makefile
View file @
68f1865e
...
...
@@ -86,6 +86,10 @@ RUN_DEPENDS+= \
RUN_DEPENDS
+=
smbd:
${PORTSDIR}
/net/samba3
.
endif
.if
${OSMAJOR}
>=
6
RUN_DEPENDS
+=
${LOCALBASE}
/sbin/cvsd:
${PORTSDIR}
/devel/cvsd
.
endif
NO_BUILD
=
yes
USE_PYTHON
=
yes
USE_PERL5
=
yes
...
...
tmcd/common/config/rc.mkelab
View file @
68f1865e
...
...
@@ -1483,6 +1483,15 @@ sub CreateDefsFile($)
}
last
SWITCH
;
};
/^CVSSUPPORT$/
&&
do
{
if
(
$FBSD_VERSION
==
6
)
{
print
OUTDEFS
"
CVSSUPPORT=1
\n
";
}
else
{
print
OUTDEFS
"
CVSSUPPORT=0
\n
";
}
last
SWITCH
;
};
print
OUTDEFS
$_
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment