Skip to content

Instantly share code, notes, and snippets.

@Incognito
Last active August 29, 2015 14:24
Show Gist options
  • Save Incognito/252843bd6190cc9a515a to your computer and use it in GitHub Desktop.
Save Incognito/252843bd6190cc9a515a to your computer and use it in GitHub Desktop.
#!/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