]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - lfs/pxe
pxe image is done in own lfs file.
[people/ms/ipfire-3.x.git] / lfs / pxe
CommitLineData
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
25include Config
26
27PKG_NAME = pxe
28PKG_VER =
29PKG_REL = -1
30
31THISAPP = $(PKG_NAME)
32
33OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
34
35MAINTAINER =
36GROUP =
37CORE = no
38EXTRA = no
39DEBUG = no
40DEPS =
41
42URL =
43LICENSE =
44
45PXE_DIR = $(CDROM_DIR)
46
47###############################################################################
48# Top-level Rules
49###############################################################################
50
51objects =
52
53download: $(objects)
54
55info:
56 $(DO_PKG_INFO)
57
58install: $(OBJECT)
59
60package:
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)/*