Skip to content

Instantly share code, notes, and snippets.

@sjorge
Last active August 29, 2015 14:18
Show Gist options
  • Save sjorge/5e96011c67dc53feb908 to your computer and use it in GitHub Desktop.
Save sjorge/5e96011c67dc53feb908 to your computer and use it in GitHub Desktop.
pkgin -y install gcc47 git-base
PKG_VER=$(cat /opt/local/etc/pkgin/repositories.conf | grep 'SmartOS' | cut -d"/" -f 6)
mkdir -p /content/{distfiles,packages}
cd /content
git clone git://github.com/joyent/pkgsrc.git
cd /content/pkgsrc
git checkout joyent/release/${PKG_VER}
git submodule init
git submodule update
## PKG_VAR = 2014Q4 in my case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment