Prepares an easy install script for mac builds and initializes gitignore

Signed-off-by: Sudheesh Singanamalla <sudheesh@cs.washington.edu>
This commit is contained in:
Sudheesh Singanamalla 2019-11-25 10:23:13 -08:00
parent a808423631
commit 9341d756cc
No known key found for this signature in database
GPG Key ID: 742D0191EF5FE2D2
3 changed files with 51 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
.idea/*
build/*
# This directory is fetched during first build and is present in this directory
subprojects/*
install/*

44
misc/mac/setup.sh Executable file
View File

@ -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"

1
webui/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/*