]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/pxe
Ein Paar Dateien fuer die GPLv3 angepasst.
[people/pmueller/ipfire-2.x.git] / lfs / pxe
1 ###############################################################################
2 # #
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 #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
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 #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
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
53 cp /install/images/initrd /tmp/$(VERSION)/instroot
54 cp /boot/vmlinuz-$(KVER)-ipfire /tmp/$(VERSION)/vmlinuz
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
58 sed -e "s|splash.lss|$(VERSION)/splash.lss|" \
59 $(DIR_SRC)/config/syslinux/boot.msg \
60 > /tmp/$(VERSION)/boot.msg
61 sed -e "s|vmlinuz|$(VERSION)/vmlinuz|" \
62 -e "s|instroot|$(VERSION)/instroot|" \
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 \
67 > /tmp/pxelinux.cfg/$(SNAME)-pxe-$(VERSION).model
68 ln -s $(SNAME)-pxe-$(VERSION).model /tmp/pxelinux.cfg/default
69 chmod 444 /tmp/$(VERSION)/instroot
70 cd /tmp && tar cvzf \
71 /install/images/$(SNAME)-$(VERSION).$(MACHINE)-pxe.tgz *
72 rm -rf /tmp/*