daemon: added ospf-mdr checkout out to the current latest commit as a sub module to help avoid future changes breaking a working state and a common place to keep files for uninstall
This commit is contained in:
parent
d981d88a6f
commit
9e3d6681c5
3 changed files with 7 additions and 6 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "ospf-mdr"]
|
||||
path = ospf-mdr
|
||||
url = https://github.com/USNavalResearchLaboratory/ospf-mdr.git
|
1
ospf-mdr
Submodule
1
ospf-mdr
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 26fe5a4401a26760c553fcadfde5311199e89450
|
9
tasks.py
9
tasks.py
|
@ -186,12 +186,9 @@ def install_ospf_mdr(c: Context, os_info: OsInfo, hide: bool) -> None:
|
|||
c.run("sudo apt install -y libtool gawk libreadline-dev git", hide=hide)
|
||||
elif os_info.like == OsLike.REDHAT:
|
||||
c.run("sudo yum install -y libtool gawk readline-devel git", hide=hide)
|
||||
clone_dir = "/tmp/ospf-mdr"
|
||||
c.run(
|
||||
f"git clone https://github.com/USNavalResearchLaboratory/ospf-mdr {clone_dir}",
|
||||
hide=hide
|
||||
)
|
||||
with c.cd(clone_dir):
|
||||
ospf_mdr_dir = "ospf-mdr"
|
||||
c.run(f"git submodule update --init -- {ospf_mdr_dir}", hide=hide)
|
||||
with c.cd(ospf_mdr_dir):
|
||||
c.run("./bootstrap.sh", hide=hide)
|
||||
c.run(
|
||||
"./configure --disable-doc --enable-user=root --enable-group=root "
|
||||
|
|
Loading…
Reference in a new issue