1: TARGET=/mnt/drive/install.lon-capa.org/3.1/currentcdsource
2: CONFIGTARGET=/mnt/drive/loncapaconfig
3:
4: all: instimage hdstg2_img netstg2_img hdlist
5:
6: hdlist:
7: /bin/rm -f $(TARGET)/RedHat/base/hdlist
8: cd $(TARGET)/misc/src/anaconda/utils; chmod u+x genhdlist; ./genhdlist $(TARGET)
9:
10: loncapaconfig:
11: rm -Rf $(CONFIGTARGET)/*
12: install -d $(CONFIGTARGET)/usr/bin
13: install RedHat/instimage/usr/bin/loncapaconfig $(CONFIGTARGET)/usr/bin/loncapaconfig
14: install $(TARGET)/RedHat/instimage/usr/bin/python $(CONFIGTARGET)/usr/bin/python
15: install $(TARGET)/RedHat/instimage/usr/bin/python1.5 $(CONFIGTARGET)/usr/bin/python1.5
16: install -d $(CONFIGTARGET)/usr/lib
17: cp -pR $(TARGET)/RedHat/instimage/usr/lib/* $(CONFIGTARGET)/usr/lib
18:
19: instimage:
20: install RedHat/instimage/usr/lib/anaconda/todo.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/todo.py
21: install RedHat/instimage/usr/lib/anaconda/installclass.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/installclass.py
22: install RedHat/instimage/usr/lib/anaconda/text.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/text.py
23: install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/partitioning.py
24: install RedHat/instimage/usr/lib/anaconda/textw/userauth.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/userauth.py
25: install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py
26: install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/accessconf.py
27: install RedHat/instimage/usr/bin/anaconda $(TARGET)/RedHat/instimage/usr/bin/anaconda
28: install ../../packaging/comps $(TARGET)/RedHat/base/comps
29:
30: hdstg2_img:
31: rm -Rf /tmp/hdstg2_img; install -d /tmp/hdstg2_img
32: install $(TARGET)/RedHat/base/hdstg2.img /tmp/hdstg2_img
33: gzip -dc /tmp/hdstg2_img/hdstg2.img > /tmp/hdstg2_img/hdstg2.ext2
34: install -d /tmp/hdstg2_img/ext2
35: mount -o loop /tmp/hdstg2_img/hdstg2.ext2 /tmp/hdstg2_img/ext2
36: install RedHat/instimage/usr/bin/anaconda /tmp/hdstg2_img/ext2/usr/bin/anaconda.real
37: gzip -dc /tmp/hdstg2_img/ext2/usr/lib/anaconda.cgz >/tmp/hdstg2_img/anaconda.cpio
38: cd /tmp/hdstg2_img; cpio -idumv < anaconda.cpio
39: install RedHat/instimage/usr/lib/anaconda/todo.py /tmp/hdstg2_img/anaconda/todo.py
40: install RedHat/instimage/usr/lib/anaconda/installclass.py /tmp/hdstg2_img/anaconda/installclass.py
41: install RedHat/instimage/usr/lib/anaconda/text.py /tmp/hdstg2_img/anaconda/text.py
42: install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/hdstg2_img/anaconda/textw/userauth.py
43: install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py /tmp/hdstg2_img/anaconda/textw/partitioning.py
44: install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py /tmp/hdstg2_img/anaconda/textw/libraryconf.py
45: install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py /tmp/hdstg2_img/anaconda/textw/accessconf.py
46: cd /tmp/hdstg2_img; find anaconda | cpio --quiet -H crc -o | gzip -9 > anaconda.cgz
47: install /tmp/hdstg2_img/anaconda.cgz /tmp/hdstg2_img/ext2/usr/lib/anaconda.cgz
48: umount /tmp/hdstg2_img/ext2
49: gzip -c /tmp/hdstg2_img/hdstg2.ext2 > /tmp/hdstg2_img/hdstg2.img
50: install /tmp/hdstg2_img/hdstg2.img $(TARGET)/RedHat/base/hdstg2.img
51:
52: netstg2_img:
53: rm -Rf /tmp/netstg2_img; install -d /tmp/netstg2_img
54: install $(TARGET)/RedHat/base/netstg2.img /tmp/netstg2_img
55: gzip -dc /tmp/netstg2_img/netstg2.img > /tmp/netstg2_img/netstg2.ext2
56: install -d /tmp/netstg2_img/ext2
57: mount -o loop /tmp/netstg2_img/netstg2.ext2 /tmp/netstg2_img/ext2
58: install RedHat/instimage/usr/bin/anaconda /tmp/netstg2_img/ext2/usr/bin/anaconda.real
59: gzip -dc /tmp/netstg2_img/ext2/usr/lib/anaconda.cgz >/tmp/netstg2_img/anaconda.cpio
60: cd /tmp/netstg2_img; cpio -idumv < anaconda.cpio
61: install RedHat/instimage/usr/lib/anaconda/todo.py /tmp/netstg2_img/anaconda/todo.py
62: install RedHat/instimage/usr/lib/anaconda/installclass.py /tmp/netstg2_img/anaconda/installclass.py
63: install RedHat/instimage/usr/lib/anaconda/text.py /tmp/netstg2_img/anaconda/text.py
64: install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py /tmp/netstg2_img/anaconda/textw/partitioning.py
65: install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/netstg2_img/anaconda/textw/userauth.py
66: install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py /tmp/netstg2_img/anaconda/textw/libraryconf.py
67: install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py /tmp/netstg2_img/anaconda/textw/accessconf.py
68: cd /tmp/netstg2_img; find anaconda | cpio --quiet -H crc -o | gzip -9 > anaconda.cgz
69: install /tmp/netstg2_img/anaconda.cgz /tmp/netstg2_img/ext2/usr/lib/anaconda.cgz
70: umount /tmp/netstg2_img/ext2
71: gzip -c /tmp/netstg2_img/netstg2.ext2 > /tmp/netstg2_img/netstg2.img
72: install /tmp/netstg2_img/netstg2.img $(TARGET)/RedHat/base/netstg2.img
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>