1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
30 TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
32 ###############################################################################
34 ###############################################################################
40 ###############################################################################
41 # Installation Details
42 ###############################################################################
44 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
45 @rm -rf $(CDROM_DIR)/*
47 mkdir -p $(CDROM_DIR)/{boot/grub,doc,grub}
51 cd / && find $(DIR_SOURCE)/rootfiles/core -maxdepth 1 -type f | xargs cat | \
52 sed -e "s/KVER/$(KVER)/g" | grep -v '#' | sort | uniq | cpio -o -H newc | \
53 lzma e -si -so > $(CDROM_DIR)/$(SNAME)-$(VERSION).img
56 sed 's/VERSION/$(VERSION)/' $(DIR_CONF)/cdrom/README.txt > $(CDROM_DIR)/README.txt
57 cp $(DIR_SRC)/doc/COPYING $(CDROM_DIR)
58 cp $(DIR_SRC)/doc/{ChangeLog,packages-list.txt} $(CDROM_DIR)/doc
60 cp $(IMAGES_DIR)/initramfs-$(VERSION).img $(CDROM_DIR)/boot/grub/initramfs.img
61 cp /boot/ipfirekernel-$(KVER) $(CDROM_DIR)/boot/grub/ipfirekernel
63 cp /usr/lib/grub/i386-pc/stage2_eltorito $(CDROM_DIR)/boot/grub/stage2_eltorito
64 #cp $(DIR_CONF)/grub/installer.conf $(CDROM_DIR)/boot/grub/grub.conf
65 #cp $(DIR_CONF)/grub/ipfire.xpm.gz $(CDROM_DIR)/boot/grub/ipfire.xpm.gz
67 #cp /usr/lib/memtest86+/memtest.bin $(CDROM_DIR)/boot/grub/memtest
69 cd $(CDROM_DIR) && mkisofs -J -r -V "$(NAME)_$(VERSION)" \
70 -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table \
71 . > $(IMAGES_DIR)/$(SNAME)-$(VERSION).$(MACHINE)-$(ED).iso
73 @rm -rf $(CDROM_DIR)/*
75 ### REBUILD THIS AT EVERY PASS