Skip to content

Instantly share code, notes, and snippets.

@rubenerd
Created October 7, 2017 13:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenerd/85fe9fccffcede827d222c04f0570a3b to your computer and use it in GitHub Desktop.
Save rubenerd/85fe9fccffcede827d222c04f0570a3b to your computer and use it in GitHub Desktop.
Bootstrap pkgsrc on macOS
#!/bin/sh
_TARGET="/opt"
_BRANCH="pkgsrc-2017Q3"
cd "$_TARGET"
######
## CVS is official source, but mirror also available for gits like me!
## cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot checkout pkgsrc
git clone https://github.com/NetBSD/pkgsrc.git
cd pkgsrc
git checkout "$_BRANCH"
######
## With updates from http://wiki.netbsd.org/pkgsrc/pkgsrc_64bit_osx/
cd bootstrap
./bootstrap --abi=64 --prefer-pkgsrc=yes --unprivileged --compiler=clang --prefix="$_TARGET"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment