File:  [LON-CAPA] / loncom / anaconda / Attic / Makefile
Revision 1.8: download - view: text, annotated - select for diffs
Thu Jan 25 18:43:52 2001 UTC (23 years, 5 months ago) by harris41
Branches: MAIN
CVS tags: stable_2002_spring, stable_2001_fall, HEAD
some hastily written build targets to build the reconfiguration
component for LON-CAPA -Scott

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

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)

loncapaconfig:
	rm -Rf $(CONFIGTARGET)/*
	install -d $(CONFIGTARGET)/usr/bin
	install RedHat/instimage/usr/bin/loncapaconfig $(CONFIGTARGET)/usr/bin/loncapaconfig
	install $(TARGET)/RedHat/instimage/usr/bin/python $(CONFIGTARGET)/usr/bin/python
	install $(TARGET)/RedHat/instimage/usr/bin/python1.5 $(CONFIGTARGET)/usr/bin/python1.5
	install -d $(CONFIGTARGET)/usr/lib
	cp -pR $(TARGET)/RedHat/instimage/usr/lib/* $(CONFIGTARGET)/usr/lib

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/partitioning.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/partitioning.py
	install RedHat/instimage/usr/lib/anaconda/textw/userauth.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/userauth.py
	install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py
	install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/accessconf.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
	install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py /tmp/hdstg2_img/anaconda/textw/partitioning.py
	install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py /tmp/hdstg2_img/anaconda/textw/libraryconf.py
	install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py /tmp/hdstg2_img/anaconda/textw/accessconf.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/partitioning.py /tmp/netstg2_img/anaconda/textw/partitioning.py
	install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/netstg2_img/anaconda/textw/userauth.py
	install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py /tmp/netstg2_img/anaconda/textw/libraryconf.py
	install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py /tmp/netstg2_img/anaconda/textw/accessconf.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>