Last active
August 29, 2015 14:24
-
-
Save Incognito/252843bd6190cc9a515a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Brian Graham (github.com/Incognito) | |
# License: 2-clause BSD license | |
echo "Downloading toolchain..." | |
git clone \ | |
--recurse-submodules \ | |
--depth 1 \ | |
--progress \ | |
http://repo.rumpkernel.org/rumprun \ | |
rumprun | |
echo "Installing toolchain..." | |
cd rumprun | |
./build-rr.sh hw | |
echo "Appending app-tools to path envar." | |
export PATH=${PATH}:$(pwd)/app-tools | |
echo "Leaving toolchain directory." | |
cd .. | |
echo "Fetching Rumprun-packages" | |
git clone \ | |
--recurse-submodules \ | |
--depth 1 \ | |
--progress \ | |
http://repo.rumpkernel.org/rumprun-packages\ | |
rumprun-packages | |
cd rumprun-packages | |
echo "Configuring packages config.mk" | |
cp config.mk{.dist,} | |
sed -i.bak 's/^\(RUMPRUN_TOOLCHAIN_TUPLE=\).*/\1x86_64-rumprun-netbsd/' config.mk | |
echo "Building nginx" | |
cd nginx | |
make | |
rumpbake hw_virtio ./nginx.bin bin/nginx | |
echo "nginx bin created" | |
echo "Please configure your network" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment