]>
Commit | Line | Data |
---|---|---|
89396620 MT |
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 | PKG_NAME = pxe | |
28 | PKG_VER = | |
29 | PKG_REL = -1 | |
30 | ||
31 | THISAPP = $(PKG_NAME) | |
32 | ||
33 | OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP) | |
34 | ||
35 | MAINTAINER = | |
36 | GROUP = | |
37 | CORE = no | |
38 | EXTRA = no | |
39 | DEBUG = no | |
40 | DEPS = | |
41 | ||
42 | URL = | |
43 | LICENSE = | |
44 | ||
45 | PXE_DIR = $(CDROM_DIR) | |
46 | ||
47 | ############################################################################### | |
48 | # Top-level Rules | |
49 | ############################################################################### | |
50 | ||
51 | objects = | |
52 | ||
53 | download: $(objects) | |
54 | ||
55 | info: | |
56 | $(DO_PKG_INFO) | |
57 | ||
58 | install: $(OBJECT) | |
59 | ||
60 | package: | |
61 | @$(DO_PACKAGE) | |
62 | ||
63 | $(objects): | |
64 | @$(LOAD) | |
65 | ||
66 | ############################################################################### | |
67 | # Installation Details | |
68 | ############################################################################### | |
69 | ||
70 | $(OBJECT): $(objects) | |
71 | @rm -rf $(PXE_DIR)/* && mkdir -pv $(PXE_DIR)/{pxelinux.cfg,$(SNAME)} | |
72 | ||
73 | # Make image with networking support | |
74 | mkliveramfs -f --with-net $(CDROM_DIR)/$(SNAME)/initrd0 $(KVER) | |
75 | ||
76 | cp -vf /boot/ipfirekernel-$(KVER) $(CDROM_DIR)/$(SNAME)/$(SNAME)0 | |
77 | cp -vf /usr/share/syslinux/vesamenu.c32 \ | |
78 | $(DIR_CONF)/bootloader/splash.{jpg,lss} \ | |
79 | $(DIR_CONF)/bootloader/*.msg $(CDROM_DIR)/$(SNAME)/ | |
80 | ||
81 | cp -vf /usr/share/syslinux/pxelinux.0 $(CDROM_DIR)/ | |
82 | sed -e "s/SNAME/$(SNAME)/g" \ | |
83 | -e "s/NAME/$(NAME)/g" \ | |
84 | -e "s/VERSION/$(VERSION)/g" \ | |
85 | -e "s@$(SNAME)0@$(SNAME)/$(SNAME)0@g" \ | |
86 | -e "s@initrd0@$(SNAME)/initrd0@g" \ | |
87 | -e "s@splash@$(SNAME)/splash@g" \ | |
88 | -e "s@vesamenu.c32@$(SNAME)/vesamenu.c32@g" \ | |
89 | $(DIR_CONF)/bootloader/installer.conf \ | |
90 | > $(CDROM_DIR)/pxelinux.cfg/$(SNAME)-pxe-$(VERSION).model | |
91 | ||
92 | sed -e "s@splash@$(SNAME)/splash@g" \ | |
93 | -i $(CDROM_DIR)/$(SNAME)/boot.msg | |
94 | ||
95 | cd $(CDROM_DIR) && \ | |
96 | tar cfz $(IMAGES_DIR)/$(IMAGENAME).pxe.tar.gz * | |
97 | ||
98 | @rm -rf $(PXE_DIR)/* |