]>
Commit | Line | Data |
---|---|---|
9607771a | 1 | ############################################################################### |
9607771a | 2 | # # |
70df8302 MT |
3 | # IPFire.org - A linux based firewall # |
4 | # Copyright (C) 2007 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
9607771a | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
9607771a MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
9607771a MT |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
9607771a MT |
18 | # # |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
27 | VER = ipfire | |
28 | ||
29 | THISAPP = pxe | |
30 | TARGET = $(DIR_INFO)/$(THISAPP) | |
31 | ||
32 | ############################################################################### | |
33 | # Top-level Rules | |
34 | ############################################################################### | |
35 | ||
36 | install : $(TARGET) | |
37 | ||
38 | check : | |
39 | ||
40 | download : | |
41 | ||
42 | md5 : | |
43 | ||
44 | ############################################################################### | |
45 | # Installation Details | |
46 | ############################################################################### | |
47 | ||
48 | $(TARGET) : | |
49 | # Create install pxe package as an alternate way to boot during install | |
50 | rm -rf /tmp/* | |
51 | mkdir -p /tmp/$(VERSION) /tmp/pxelinux.cfg | |
52 | cp /usr/lib/syslinux/pxelinux.0 /tmp | |
26ec9513 | 53 | cp /install/images/initrd /tmp/$(VERSION)/instroot |
376e42ce | 54 | cp /boot/vmlinuz-$(KVER)-ipfire /tmp/$(VERSION)/vmlinuz |
fd0763dc MT |
55 | cp $(DIR_SRC)/config/syslinux/options.msg /tmp/$(VERSION)/options.msg |
56 | cp $(DIR_SRC)/config/syslinux/splash.lss /tmp/$(VERSION)/splash.lss | |
57 | cp /usr/lib/memtest86+/memtest.bin /tmp/$(VERSION)/memtest | |
bc9f0c12 | 58 | sed -e "s|splash.lss|$(VERSION)/splash.lss|" \ |
fd0763dc MT |
59 | $(DIR_SRC)/config/syslinux/boot.msg \ |
60 | > /tmp/$(VERSION)/boot.msg | |
61 | sed -e "s|vmlinuz|$(VERSION)/vmlinuz|" \ | |
9607771a | 62 | -e "s|instroot|$(VERSION)/instroot|" \ |
fd0763dc MT |
63 | -e "s|KERNEL memtest|KERNEL $(VERSION)/memtest|" \ |
64 | -e "s|boot.msg|$(VERSION)/boot.msg|" \ | |
65 | -e "s|options.msg|$(VERSION)/options.msg|" \ | |
66 | $(DIR_SRC)/config/syslinux/syslinux.cfg \ | |
9607771a | 67 | > /tmp/pxelinux.cfg/$(SNAME)-pxe-$(VERSION).model |
02c629b9 | 68 | ln -s $(SNAME)-pxe-$(VERSION).model /tmp/pxelinux.cfg/default |
26ec9513 | 69 | chmod 444 /tmp/$(VERSION)/instroot |
9607771a | 70 | cd /tmp && tar cvzf \ |
6f61f8c6 | 71 | /install/images/$(SNAME)-$(VERSION).$(MACHINE)-pxe.tgz * |
9607771a | 72 | rm -rf /tmp/* |