From 9341d756cc3a1fc356e37fe417280006ebd26ed7 Mon Sep 17 00:00:00 2001 From: Sudheesh Singanamalla Date: Mon, 25 Nov 2019 10:23:13 -0800 Subject: [PATCH] Prepares an easy install script for mac builds and initializes gitignore Signed-off-by: Sudheesh Singanamalla --- .gitignore | 6 ++++++ misc/mac/setup.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ webui/.gitignore | 1 + 3 files changed, 51 insertions(+) create mode 100644 .gitignore create mode 100755 misc/mac/setup.sh create mode 100644 webui/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..d8e414b74 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.idea/* +build/* + +# This directory is fetched during first build and is present in this directory +subprojects/* +install/* \ No newline at end of file diff --git a/misc/mac/setup.sh b/misc/mac/setup.sh new file mode 100755 index 000000000..8c6335b5e --- /dev/null +++ b/misc/mac/setup.sh @@ -0,0 +1,44 @@ +echo "Installing MongoDB on your Mac using Homebrew" +brew tap mongodb/brew +brew install mongodb-community@4.2 + +echo "Registering MongoDB as a startup service" +brew services start mongodb/brew/mongodb-community + +declare -a dependencies=("iproute2mac" + "libmongoc" + "libidn" + "ninja" + "gnu-sed" + "libusrsctp" + "gnutls" + "libidn" + "libyaml" + "pkg-config" + "libgcrypt") + +for dependency in ${dependencies[*]} +do + if brew ls --version $dependency > /dev/null; then + echo "[OK] $dependency is already installed." + else + echo "[WARN] $dependency is not installed. Going ahead and installing $dependency" + brew install $dependency + fi; +done + + +echo "Installing tools for IP" +brew install iproute2mac + +brew install libmongoc +brew install libidn +brew install ninja + +echo "Installing tuntap. This would need sudo permissions and an explicit allow for Kernel Extensions to load on mac" +brew cask install tuntap +echo "Follow the TN2459 Documentation to allow user approved kernel extension loading for tuntap. \\ + https://developer.apple.com/library/archive/technotes/tn2459/_index.html" + +echo "Run the misc/netconf.sh to configure the required TUN devices and enable IP Forwarding" +echo "All dependencies are upto date. Ready to build with meson and ninja" diff --git a/webui/.gitignore b/webui/.gitignore new file mode 100644 index 000000000..8d87b1d26 --- /dev/null +++ b/webui/.gitignore @@ -0,0 +1 @@ +node_modules/*