#
# $USAGI: INSTALL.USAGI,v 1.5 2001/12/29 19:38:32 sekiya 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) Building USAGI kernel:

	% cd kernel
	% cd $(TARGET)
	% make mrproper
	% make menuconfig (or "make config" or "make xconfig" as you like)
		For enabling kernel options, you should read
		CONFIG.$(TARGET) file.
	% make dep
	% make bzImage
	% make modules

4) Installing USAGI kernel:

	% su
	# make install
		or you should copy arch/YOUR_ARCH/boot/bzImage file and
		System.map file into /boot directory.
	# make modules_install
	# vi /etc/lilo.conf
	# /sbin/lilo
		If you use lilo as boot manager, you should edit the file
		properly.

	Note:
	Please read SOMEWHERE/usagi/kernel/linuxXX/README for further
	instructions to	build and install the kernel.

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

	# 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

