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/bin/* $(CONFIGTARGET)/usr/bin
18: cp -pR $(TARGET)/RedHat/instimage/usr/lib/* $(CONFIGTARGET)/usr/lib
19:
20: instimage:
21: install RedHat/instimage/usr/lib/anaconda/todo.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/todo.py
22: install RedHat/instimage/usr/lib/anaconda/installclass.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/installclass.py
23: install RedHat/instimage/usr/lib/anaconda/text.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/text.py
24: install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/partitioning.py
25: install RedHat/instimage/usr/lib/anaconda/textw/userauth.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/userauth.py
26: install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py
27: install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py $(TARGET)/RedHat/instimage/usr/lib/anaconda/textw/accessconf.py
28: install RedHat/instimage/usr/bin/anaconda $(TARGET)/RedHat/instimage/usr/bin/anaconda
29: install ../../packaging/comps $(TARGET)/RedHat/base/comps
30:
31: hdstg2_img:
32: rm -Rf /tmp/hdstg2_img; install -d /tmp/hdstg2_img
33: install $(TARGET)/RedHat/base/hdstg2.img /tmp/hdstg2_img
34: gzip -dc /tmp/hdstg2_img/hdstg2.img > /tmp/hdstg2_img/hdstg2.ext2
35: install -d /tmp/hdstg2_img/ext2
36: mount -o loop /tmp/hdstg2_img/hdstg2.ext2 /tmp/hdstg2_img/ext2
37: install RedHat/instimage/usr/bin/anaconda /tmp/hdstg2_img/ext2/usr/bin/anaconda.real
38: gzip -dc /tmp/hdstg2_img/ext2/usr/lib/anaconda.cgz >/tmp/hdstg2_img/anaconda.cpio
39: cd /tmp/hdstg2_img; cpio -idumv < anaconda.cpio
40: install RedHat/instimage/usr/lib/anaconda/todo.py /tmp/hdstg2_img/anaconda/todo.py
41: install RedHat/instimage/usr/lib/anaconda/installclass.py /tmp/hdstg2_img/anaconda/installclass.py
42: install RedHat/instimage/usr/lib/anaconda/text.py /tmp/hdstg2_img/anaconda/text.py
43: install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/hdstg2_img/anaconda/textw/userauth.py
44: install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py /tmp/hdstg2_img/anaconda/textw/partitioning.py
45: install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py /tmp/hdstg2_img/anaconda/textw/libraryconf.py
46: install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py /tmp/hdstg2_img/anaconda/textw/accessconf.py
47: cd /tmp/hdstg2_img; find anaconda | cpio --quiet -H crc -o | gzip -9 > anaconda.cgz
48: install /tmp/hdstg2_img/anaconda.cgz /tmp/hdstg2_img/ext2/usr/lib/anaconda.cgz
49: umount /tmp/hdstg2_img/ext2
50: gzip -c /tmp/hdstg2_img/hdstg2.ext2 > /tmp/hdstg2_img/hdstg2.img
51: install /tmp/hdstg2_img/hdstg2.img $(TARGET)/RedHat/base/hdstg2.img
52:
53: netstg2_img:
54: rm -Rf /tmp/netstg2_img; install -d /tmp/netstg2_img
55: install $(TARGET)/RedHat/base/netstg2.img /tmp/netstg2_img
56: gzip -dc /tmp/netstg2_img/netstg2.img > /tmp/netstg2_img/netstg2.ext2
57: install -d /tmp/netstg2_img/ext2
58: mount -o loop /tmp/netstg2_img/netstg2.ext2 /tmp/netstg2_img/ext2
59: install RedHat/instimage/usr/bin/anaconda /tmp/netstg2_img/ext2/usr/bin/anaconda.real
60: gzip -dc /tmp/netstg2_img/ext2/usr/lib/anaconda.cgz >/tmp/netstg2_img/anaconda.cpio
61: cd /tmp/netstg2_img; cpio -idumv < anaconda.cpio
62: install RedHat/instimage/usr/lib/anaconda/todo.py /tmp/netstg2_img/anaconda/todo.py
63: install RedHat/instimage/usr/lib/anaconda/installclass.py /tmp/netstg2_img/anaconda/installclass.py
64: install RedHat/instimage/usr/lib/anaconda/text.py /tmp/netstg2_img/anaconda/text.py
65: install RedHat/instimage/usr/lib/anaconda/textw/partitioning.py /tmp/netstg2_img/anaconda/textw/partitioning.py
66: install RedHat/instimage/usr/lib/anaconda/textw/userauth.py /tmp/netstg2_img/anaconda/textw/userauth.py
67: install RedHat/instimage/usr/lib/anaconda/textw/libraryconf.py /tmp/netstg2_img/anaconda/textw/libraryconf.py
68: install RedHat/instimage/usr/lib/anaconda/textw/accessconf.py /tmp/netstg2_img/anaconda/textw/accessconf.py
69: cd /tmp/netstg2_img; find anaconda | cpio --quiet -H crc -o | gzip -9 > anaconda.cgz
70: install /tmp/netstg2_img/anaconda.cgz /tmp/netstg2_img/ext2/usr/lib/anaconda.cgz
71: umount /tmp/netstg2_img/ext2
72: gzip -c /tmp/netstg2_img/netstg2.ext2 > /tmp/netstg2_img/netstg2.img
73: install /tmp/netstg2_img/netstg2.img $(TARGET)/RedHat/base/netstg2.img
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>