#
# $USAGI: INSTALL.USAGI,v 1.8 2002/09/16 03:43:38 yoshfuji Exp $
#

How to install USAGI kit:

1) After downloading proper USAGI tarball, unpack it on SOMEWHERE:

	% bzip2 -cd usagi-linuxXX-s2001XXXX.tar.bz2 | tar xvf -

2) Before starting to bulid packages, prepare for building:

	% cd SOMEWHERE/usagi
	% make prepare TARGET=$(TARGET)

where $(TARGET) is linux22 or linux24, which is suitable for 
your system.

3) Installing USAGI kernel / modules:

Please read kernel/$(TARGET)/README for instructions for 
installing kernels.

3.1) Configure kernel

	% cd kernel
	% cd $(TARGET)
	% make mrproper
	% make menuconfig

You may want to use "make config" or "make xconfig" etc. 
instead of "make menuconfig."

3.2) Build kernel and modules

	% make dep
	% make bzImage
	% make modules

3.3) Install kernel and modules

	% su
	# make install
	# make modules_install

3.4) Setup boot manager

Configure your boot manager properly.
For example, if you use lilo as boot manager, you probably 
want to edit its configuration, and commit.

	# vi /etc/lilo.conf
	# /sbin/lilo


5) Building and installing userland applications

	% cd SOMEWHERE/usagi/usagi
	% ./configure
	% make
	% su
	# make install

6) Installing USAGI include files (optional)

Installing USAGI include files of libinet6, you can use advanced 
features of USAGI package when compiling other IPv6 applications.
If you are unsure the meaning, you should not install include 
files.  Please skip the step.

Because USAGI package will overwrite some include files, you'd
better backup original include files. If you made the backup file 
before, you should skip making backup.

	# cd /usr
	# tar cvzf include.orig.tar.gz include

	# cd SOMEWHERE/usagi/usagi
	# make install-includes

When you compile other IPv6 applications with enhanced USAGI library,
please add the following ld options:
	-L/usr/local/v6/lib -linet6

