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
14a0b1f4
Commit
14a0b1f4
authored
May 06, 2005
by
Leigh B. Stoller
Browse files
And still more screwing around with packages.
parent
85c3f6ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/boss-install.in
View file @
14a0b1f4
...
...
@@ -25,6 +25,7 @@ my $SRCDIR = '@srcdir@';
my
$TOP_SRCDIR
=
'
@top_srcdir@
';
my
$DBNAME
=
"
@TBDBNAME
@
";
my
$ELABINELAB
=
@ELABINELAB@
;
my
$WINSUPPORT
=
@WINSUPPORT@
;
my
$OURDOMAIN
=
'
@OURDOMAIN@
';
...
...
@@ -368,21 +369,23 @@ Phase "portfixup", "Fixing up packages", sub {
PhaseSkip
("
rsync already installed
");
}
if
(
exists
(
$ENV
{"
PKG_PATH
"}))
{
ExecQuietFatal
("
$PKG_ADD
rsync-2.6.3_1
");
}
else
{
#
# This port is dead-simple, so it's safe to do it from this script
#
my
$pwd
=
`
$PWD
`;
chomp
$pwd
;
chdir
"
$PORTSDIR
/net/rsync
"
or
PhaseFail
"
Unable to change to
$PORTSDIR
/net/rsync: $!
";
ExecQuietFatal
("
make -DBATCH install
");
chdir
$pwd
;
}
PhaseFail
("
Must have a PKG_PATH variable set in your environment
")
if
(
!
exists
(
$ENV
{"
PKG_PATH
"}));
ExecQuietFatal
("
$PKG_ADD
rsync-2.6.3_1
");
};
if
(
$WINSUPPORT
)
{
Phase
"
gcc30
",
"
Looking for GCC 3.0 and installing
",
sub
{
if
(
!
ExecQuiet
("
$PKG_INFO
-x gcc30
"))
{
PhaseSkip
("
GCC 3.0 already installed
");
}
PhaseFail
("
Must have a PKG_PATH variable set in your environment
")
if
(
!
exists
(
$ENV
{"
PKG_PATH
"}));
ExecQuietFatal
("
$PKG_ADD
gcc30-3.0.4_1
");
};
}
};
Phase
"
patches
",
"
Applying patches
",
sub
{
...
...
install/ops-install.in
View file @
14a0b1f4
...
...
@@ -258,39 +258,31 @@ Phase "portfixup", "Fixing up packages", sub {
PhaseSkip
("
rsync already installed
");
}
if
(
exists
(
$ENV
{"
PKG_PATH
"}))
{
ExecQuietFatal
("
$PKG_ADD
rsync-2.6.3_1
");
}
else
{
#
# This port is dead-simple, so it's safe to do it from this script
#
my
$pwd
=
`
$PWD
`;
chomp
$pwd
;
chdir
"
$PORTSDIR
/net/rsync
"
or
PhaseFail
"
Unable to change to
$PORTSDIR
/net/rsync: $!
";
ExecQuietFatal
("
make -DBATCH install
");
chdir
$pwd
;
}
PhaseFail
("
Must have a PKG_PATH variable set in your environment
")
if
(
!
exists
(
$ENV
{"
PKG_PATH
"}));
ExecQuietFatal
("
$PKG_ADD
rsync-2.6.3_1
");
};
if
(
$WINSUPPORT
)
{
Phase
"
samba
",
"
Looking for Samba and installing
",
sub
{
if
(
!
ExecQuiet
("
$PKG_INFO
-x samba
"))
{
PhaseSkip
("
samba already installed
");
}
if
(
exists
(
$ENV
{"
PKG_PATH
"}))
{
ExecQuietFatal
("
$PKG_ADD
samba-3.0.7,1
");
}
else
{
my
$pwd
=
`
$PWD
`;
chomp
$pwd
;
chdir
"
$PORTSDIR
/net/samba3
"
or
PhaseFail
"
Unable to change to
$PORTSDIR
/net/samba3: $!
";
ExecQuietFatal
("
make -DBATCH -DSAMBA_SUBPORT install
");
ExecQuietFatal
("
make -k post-install
");
chdir
$pwd
;
PhaseFail
("
Must have a PKG_PATH variable set in your environment
")
if
(
!
exists
(
$ENV
{"
PKG_PATH
"}));
ExecQuietFatal
("
$PKG_ADD
samba-3.0.7,1
");
};
Phase
"
gcc30
",
"
Looking for GCC 3.0 and installing
",
sub
{
if
(
!
ExecQuiet
("
$PKG_INFO
-x gcc30
"))
{
PhaseSkip
("
GCC 3.0 already installed
");
}
PhaseFail
("
Must have a PKG_PATH variable set in your environment
")
if
(
!
exists
(
$ENV
{"
PKG_PATH
"}));
ExecQuietFatal
("
$PKG_ADD
gcc30-3.0.4_1
");
};
}
};
...
...
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