]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/cdrom
Wieder einige Pakete zur ISO/Pakfire hinzugefuegt.
[ipfire-2.x.git] / lfs / cdrom
CommitLineData
cd1a2927
MT
1###############################################################################
2# This file is part of the IPCop Firewall. #
3# #
4# IPCop is free software; you can redistribute it and/or modify #
5# it under the terms of the GNU General Public License as published by #
6# the Free Software Foundation; either version 2 of the License, or #
7# (at your option) any later version. #
8# #
9# IPCop is distributed in the hope that it will be useful, #
10# but WITHOUT ANY WARRANTY; without even the implied warranty of #
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12# GNU General Public License for more details. #
13# #
14# You should have received a copy of the GNU General Public License #
15# along with IPCop; if not, write to the Free Software #
16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
17# #
18# Makefiles are based on LFSMake, which is #
19# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
20# #
cd1a2927
MT
21###############################################################################
22
23###############################################################################
24# Definitions
25###############################################################################
26
27include Config
28
0fbb45e9
MT
29VER = ipfire
30
cd1a2927 31THISAPP = cdrom
cd1a2927
MT
32TARGET = $(DIR_INFO)/$(THISAPP)
33
34###############################################################################
35# Top-level Rules
36###############################################################################
37
cd1a2927
MT
38install : $(TARGET)
39
fd0763dc 40check :
cd1a2927 41
fd0763dc 42download :
cd1a2927 43
fd0763dc 44md5 :
cd1a2927
MT
45
46###############################################################################
47# Installation Details
48###############################################################################
49
50$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
51 rm -rf /install/cdrom /tmp/*
52
53 # Compress root filesystem
54 # Reason for this tar+untar+tar is removing of entries listed two or more in src/ROOTFILES
fd0763dc 55 mkdir -p /install/cdrom/doc
0fbb45e9 56 find $(DIR_SRC)/config/rootfiles/common -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES
97de2cae 57 find $(DIR_SRC)/config/rootfiles/ver_$(ED) -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES
376e42ce
MT
58 sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES
59
50f96334 60 tar -c -C / --files-from=/tmp/ROOTFILES \
90c973a6 61 -f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
5609904b 62 --exclude='proc/*' --exclude='tmp/ROOTFILES'
50f96334 63 rm -f /tmp/ROOTFILES
cd1a2927
MT
64 tar -x -C /tmp -f /$(SNAME).tar
65 rm -f /$(SNAME).tar
069680ac 66 @mkdir /tmp/sys
03ad5f93
MT
67 cd /tmp && tar jcf /install/cdrom/$(SNAME)-$(VERSION).tbz2 * && rm -rf *
68
cd1a2927 69 # Other files
03ad5f93
MT
70 sed 's/VERSION/$(VERSION)/' $(DIR_SRC)/config/cdrom/README.txt > /install/cdrom/README.txt
71 cp $(DIR_SRC)/doc/COPYING /install/cdrom/
03ad5f93 72 cp $(DIR_SRC)/doc/{ChangeLog,packages-list.txt} /install/cdrom/doc
cd1a2927 73
33634aa8
MT
74 # Configuration
75 mkdir -p /install/cdrom/boot
fd0763dc 76 cp $(DIR_SRC)/config/syslinux/unattended.conf /install/cdrom/boot/unattended.conf
33634aa8 77
0afc6d83 78 # Make the ISO
03ad5f93
MT
79 mkdir -p /install/cdrom/boot/isolinux; \
80 dd if=/dev/zero bs=1k count=2 > /install/cdrom/boot/isolinux/boot.catalog; \
26ec9513 81 cp /install/images/initrd /install/cdrom/boot/isolinux/instroot; \
376e42ce 82 cp /boot/vmlinuz-$(KVER)-ipfire /install/cdrom/boot/isolinux/vmlinuz; \
fd0763dc
MT
83 cp $(DIR_SRC)/config/syslinux/syslinux.cfg /install/cdrom/boot/isolinux/isolinux.cfg; \
84 cp $(DIR_SRC)/config/syslinux/boot.msg /install/cdrom/boot/isolinux/boot.msg; \
85 cp $(DIR_SRC)/config/syslinux/options.msg /install/cdrom/boot/isolinux/options.msg; \
86 cp $(DIR_SRC)/config/syslinux/splash.lss /install/cdrom/boot/isolinux/splash.lss; \
87 cp /usr/lib/memtest86+/memtest.bin /install/cdrom/boot/isolinux/memtest; \
03ad5f93
MT
88 cp /usr/lib/syslinux/isolinux.bin /install/cdrom/boot/isolinux/isolinux.bin; \
89 cd /install/cdrom && mkisofs -J -r -V "$(NAME)_$(VERSION)" \
90 -b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table \
97de2cae 91 -c boot/isolinux/boot.catalog . > /install/images/$(SNAME)-$(VERSION).$(MACHINE)-$(ED).iso