File:  [LON-CAPA] / loncom / anaconda / Attic / Makefile
Revision 1.2: download - view: text, annotated - select for diffs
Tue Jan 23 16:47:07 2001 UTC (23 years, 3 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
fixing installation of the usr/bin/anaconda launching script -Scott

TARGET=/mnt/drive/install.lon-capa.org/3.1/currentcdsource

all: instimage hdstg2_img netstg2_img hdlist

hdlist:
	/bin/rm -f $(TARGET)/RedHat/base/hdlist
	cd $(TARGET)/misc/src/anaconda/utils; chmod u+x genhdlist; ./genhdlist $(TARGET)

instimage:
	install RedHat/instimage/usr/lib/anaconda/todo.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/todo.py
	install RedHat/instimage/usr/lib/anaconda/installclass.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/installclass.py
	install RedHat/instimage/usr/lib/anaconda/text.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/text.py
	install RedHat/instimage/usr/lib/anaconda/textw/userauth.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/userauth.py
	install RedHat/instimage/usr/bin/anaconda $(TARGET)/RedHat/instimage/usr/bin/anaconda
	install ../../packaging/comps $(TARGET)/RedHat/base/comps

hdstg2_img:
	rm -Rf /tmp/hdstg2_img; install -d /tmp/hdstg2_img
	install $(TARGET)/RedHat/base/hdstg2.img /tmp/hdstg2_img
	gzip -dc /tmp/hdstg2_img/hdstg2.img > /tmp/hdstg2_img/hdstg2.ext2
	install -d /tmp/hdstg2_img/ext2
	mount -o loop /tmp/hdstg2_img/hdstg2.ext2 /tmp/hdstg2_img/ext2
	install RedHat/instimage/usr/bin/anaconda /tmp/hdstg2_img/ext2/usr/bin/anaconda.real
	gzip -dc /tmp/hdstg2_img/ext2/usr/lib/anaconda.cgz >/tmp/hdstg2_img/anaconda.cpio
	cd /tmp/hdstg2_img; cpio -idumv < anaconda.cpio
	install RedHat/instimage/usr/lib/anaconda/todo.py /tmp/hdstg2_img/anaconda/todo.py
	install RedHat/instimage/usr/lib/anaconda/installclass.py /tmp/hdstg2_img/anaconda/installclass.py
	install RedHat/instimage/usr/lib/anaconda/text.py /tmp/hdstg2_img/anaconda/text.py
	install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/hdstg2_img/anaconda/textw/userauth.py
	cd /tmp/hdstg2_img; find anaconda | cpio --quiet -H crc -o | gzip -9 > anaconda.cgz
	install /tmp/hdstg2_img/anaconda.cgz /tmp/hdstg2_img/ext2/usr/lib/anaconda.cgz
	umount /tmp/hdstg2_img/ext2
	gzip -c /tmp/hdstg2_img/hdstg2.ext2 > /tmp/hdstg2_img/hdstg2.img
	install /tmp/hdstg2_img/hdstg2.img $(TARGET)/RedHat/base/hdstg2.img

netstg2_img:
	rm -Rf /tmp/netstg2_img; install -d /tmp/netstg2_img
	install $(TARGET)/RedHat/base/netstg2.img /tmp/netstg2_img
	gzip -dc /tmp/netstg2_img/netstg2.img > /tmp/netstg2_img/netstg2.ext2
	install -d /tmp/netstg2_img/ext2
	mount -o loop /tmp/netstg2_img/netstg2.ext2 /tmp/netstg2_img/ext2
	install RedHat/instimage/usr/bin/anaconda /tmp/netstg2_img/ext2/usr/bin/anaconda.real
	gzip -dc /tmp/netstg2_img/ext2/usr/lib/anaconda.cgz >/tmp/netstg2_img/anaconda.cpio
	cd /tmp/netstg2_img; cpio -idumv < anaconda.cpio
	install RedHat/instimage/usr/lib/anaconda/todo.py /tmp/netstg2_img/anaconda/todo.py
	install RedHat/instimage/usr/lib/anaconda/installclass.py /tmp/netstg2_img/anaconda/installclass.py
	install RedHat/instimage/usr/lib/anaconda/text.py /tmp/netstg2_img/anaconda/text.py
	install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/netstg2_img/anaconda/textw/userauth.py
	cd /tmp/netstg2_img; find anaconda | cpio --quiet -H crc -o | gzip -9 > anaconda.cgz
	install /tmp/netstg2_img/anaconda.cgz /tmp/netstg2_img/ext2/usr/lib/anaconda.cgz
	umount /tmp/netstg2_img/ext2
	gzip -c /tmp/netstg2_img/netstg2.ext2 > /tmp/netstg2_img/netstg2.img
	install /tmp/netstg2_img/netstg2.img $(TARGET)/RedHat/base/netstg2.img

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>