How to install the ksb tools with mbuild

There used to me no good way to get the ksb tool-chain off the ground. The msrc0 package boot sequence was hard enough that few people tried it. And my penchant for putting things in the "old place" drives young programmers nuts.

Hey, remember when I was young there was no "/var", "/usr/libexec", "/usr/share" or "/usr/sbin", buddy.

This is a first-step at getting my tools installed on a host the I never visited. You can boot-strap a FreeBSD or Solaris host in about 20 minutes if you follow the commands pretty closely. You'll want to view the script output from my run through the process.

I'll type a ## comment where I skipped a step or did something less obvious.

How to install my tools

Install "rdist" and "libpcap" from the local ports system
On FreeBSD I installed rdist with:
	# pkg_add -r rdist
	# ln /usr/local/bin/rdist6 /usr/local/bin/rdist
Then I made sure "libpcap" was installed (it was). On other systems one might have to build rdist and libpcap from sources.
Build an account "charon" in group "charon" with home "/var/Tomb"
On FreeBSD I used adduser
	# adduser
	Username? charon
	...
	# chmod 0770 ~charon
I chmod'd charon's home directory (/var/Tomb) mode 0770 to make it a valid Tomb.
Download the Admin-bin package to get mbuild and makeme
The tools-chain is available at ftp://ftp.npcguild.org/pub/ksb, or rsync://rsync.npcguild.org/tools (AKA rsync.npcguild.org::tools) or even http://www.npcguild.org/tools/.

I prefer you use rsync for mirrors and ftp for builds. The http website is on a slow link.

Mbuild most of the prerequisites in auto mode
We build up to about libtomb in auto mode.
Mbuild libtomb in manual mode
We do this to allow us to fix the uid/gid to the local settings put in place when we built the charon account and group.
Mbuild the rest in auto mode
No other basic tool needs any help to install itself.
So I started a script and ran the commands, this tool about 10 minutes, largely because I knew what I wanted (didn't have to read the prompts so much).

To complete the upgrade

You'd want to:

Then we'll see about the next level (SOX accounting, staters, PEG, other data services, etc.) which come in another mbuild.db file and assume you've installed most of these.


ksb, Oct 2005