------------------------------------------------------------------------

                                Wulfware

                                   by

                            Robert G. Brown


------------------------------------------------------------------------
By FAR the desireable way to install this suite is via RPMs from a
suitable repository via e.g. yum.  On a good day you can accomplish this
by any of the following means (you will likely need RPM_TOPDIR to point
to a valid rpm build tree):

 rpmbuild --rebuild wulfware-whatever.src.rpm

or just:

 make rpm

in the toplevel directory of the untarballed source (where you are
reading this file, presumably).  Give it a try, what can it hurt?  Or
you can unpack it, put the tarball in your SOURCE directory, the
specfile in your SPECS directory and do an

 rpmbuild -ba warewulf.spec

where this would let you hack away on the sources first.  Note that

 make tgz

should in general make you a tarball that can go in SOURCE so that this
works.

------------------------------------------------------------------------

If you can't use rpms, on most linux boxes, you should be able to build
and install all of the packages by means of:

 make BUILDROOT=/ PREFIX=/usr install

Or you can edit BUILDROOT and PREFIX in the toplevel Makefile by hand.
Note well that if you fail to change them, make install for the project
will install WITHIN the source tree, which is good for testing certain
things but not so good for root-based functionality like xinetd or
chkconfig control.

Note that the Makefile has other parameters you can toy with, and some
very clever make targets (like "make installrepo" -- a way of firing
changes you're really happy with straight off into a yum repo if you
have one).

This will leave certain chores undone, however.  These are things that
are handled in the %post sections of the wulfware specfile.  The
following scriptlet may do them, if you edit in the correct version
number for the library.  You will also very likely want to only add
wulf2html if you actually plan to run it on the host in question.

#!/bin/sh

VERSION=2.0.0
cd /usr/lib
ln -sf libwulf.so.$VERSION libwulf.so 
ldconfig -n .
chkconfig --add wulf2html
chkconfig wulf2html off
chkconfig xmlsysd on
service xinetd condrestart

Note well that if you go this route, you'll have to work to UNinstall
things or to avoid collisions between old and new versions of e.g.
configuration files as you upgrade.

------------------------------------------------------------------------

Feel free to write me with bug reports or to ask (within reason) for
features.  Please do this via the wulfware mailing list:

  https://lists.phy.duke.edu/mailman/listinfo/wulfware

(which is a LOW TRAFFIC mailing list for users/contributors of the
project) although I generally answer personal mail as well at
rgb at phy duke edu (obfuscated).
