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:
Blake Harnden 2020-09-09 14:23:37 -07:00
parent d981d88a6f
commit 9e3d6681c5
3 changed files with 7 additions and 6 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "ospf-mdr"]
path = ospf-mdr
url = https://github.com/USNavalResearchLaboratory/ospf-mdr.git

1
ospf-mdr Submodule

@ -0,0 +1 @@
Subproject commit 26fe5a4401a26760c553fcadfde5311199e89450

View file

@ -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) c.run("sudo apt install -y libtool gawk libreadline-dev git", hide=hide)
elif os_info.like == OsLike.REDHAT: elif os_info.like == OsLike.REDHAT:
c.run("sudo yum install -y libtool gawk readline-devel git", hide=hide) c.run("sudo yum install -y libtool gawk readline-devel git", hide=hide)
clone_dir = "/tmp/ospf-mdr" ospf_mdr_dir = "ospf-mdr"
c.run( c.run(f"git submodule update --init -- {ospf_mdr_dir}", hide=hide)
f"git clone https://github.com/USNavalResearchLaboratory/ospf-mdr {clone_dir}", with c.cd(ospf_mdr_dir):
hide=hide
)
with c.cd(clone_dir):
c.run("./bootstrap.sh", hide=hide) c.run("./bootstrap.sh", hide=hide)
c.run( c.run(
"./configure --disable-doc --enable-user=root --enable-group=root " "./configure --disable-doc --enable-user=root --enable-group=root "