This is as much for my own reference as anything else. I have a pair of Solaris 10 machines upon which I would like to install various utilities (for different reasons). I'm not totally happy with Blastwave or sunfreeware, and I'm really unhappy with rolling my own for everything. I'm used to BSD and used NetBSD as a desktop for a year or so, about 7 years back mind. So I figured I'd give pkgsrc a try. One machine is sparc64 (a SunFire 280R), the other x86_64 (a SunFire X4100) so it should be a good test of both old and new architectures. If things go well, I may try this stuff out on a T2000 we have kicking around too.
I got bootstrap binary packages from here, although it turns out I didn't need them. I grabbed the pkgsrc sourceball from here, although I see there's a 2008Q2 directory dated a couple days later - maybe I should have grabbed that, I'm not up on my releases. Never mind though, new enough.
I'd done full installations on both my machines, so I had to remind myself about /usr/sfw/bin/gcc before I could bootstrap the pkgsrc install. I put everything in /usr/pkgsrc, so
cd /usr/pkgsrc/bootstrap ; ./bootstrap
was enough to get things started.
A PATH of something like
export PATH="/usr/pkg/bin:/usr/pkg/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/sfw/bin"
seems to work nicely.
Caveat: Solaris 10 does not have a cvs utility. NetBSD has cvs as part of its base, so it's not in pkgsrc. Now you have a chicken/egg: the first package I tried installing from pkgsrc (mutt) actually has a security vulnerability, so I thought I'd grab the latest pkgsrc via cvs. Guess I build that by hand.