PKGSRC on your Accelerator
Introduction
Joyent customers need a set of pkgsrc packages that, you know, work without too much fuss. Configuration files should be installed, SMFs should be available, the appropriate symlinks should be made, etc. I've made available a set of pkgsrc files that have been customized for use on accelerators.
The git repository for changes to the pkgsrc source tree is at http://github.com/joevandyk/pkgsrc/tree/stable
Just installing the packages
Grab the pkgsrc tarballs and extract it to /opt as root.
su - cd /opt wget http://static.tanga.com/uploaded_files/files/accelerator-pkgsrc.tar.gz wget http://static.tanga.com/uploaded_files/files/accelerator-pkgsrc-install-skeleton.tar.gz gtar zxf accelerator-pkgsrc.tar.gz gtar zxf accelerator-pkgsrc-install-skeleton.tar.gz
mv accelerator-pkgsrc.tar.gz / cd / gtar zxf accelerator-pkgsrc.tar.gz
(This is an error in packing the tarball, and may be corrected on the next update. Try unpacking it as directed first, and only use this workaround if all packages are in /opt/opt/pkgsrc)
Add /opt/local/bin to your path.
Then install your packages.
/opt/local/sbin/pkg_add /opt/pkgsrc/packages/All/*
That's it. Enjoy. See the forum topic at http://forum.textdrive.com/viewtopic.php?id=17568 for more information.
If you want to install other software, navigate to its directory and type 'bmake package'.
cd /opt/pkgsrc/benchmark/httperf bmake package
This will configure, build, install, and package up the software. The package will end up in /opt/pkgsrc/packages/All. If you end up having to make changes, or you come up with a SMF or other cool configuration file for the package that would be useful to others, send an email to joe@tanga.com and I'll package it up for you. Or, you could use git (repository is at git://beavis.tanga.com/) and make the modifications to pkgsrc yourself, then submit a patch.
Modifying pkgsrc to make life easier for others
If you come across something that doesn't seem to build or install correctly, and you're the type of nerd that enjoys fixing stuff, perhaps you could join the development team for this pkgsrc/accelerator effort.
I'm sure there's an easier way to do this, feel free to modify these instructions.
Follow the above instructions and install git.
Then:
su - cd /opt rm -rf pkgsrc git config --global user.name "Your Name Comes Here" git config --global user.email you@yourdomain.example.com git clone git://beavis.tanga.com/pkgsrc
Read up on git: http://git.or.cz/course/svn.html and http://www.kernel.org/pub/software/scm/git/docs/tutorial.html
If git://beavis.tanga.com seems down, email joe@tanga.com. Joyent's supposed to get me an accelerator just for doing this pkgsrc stuff on soon, so the address for the git/pkgsrc repository might change.
