X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fcdrom;h=5fa6730f2277133e50c76fc7dd10fb4e66c6e0a3;hb=449749f1ef56fa7eb147f4637e867c6e076f21d7;hp=4a1165c0b59d987eef11064544b7838c04497d63;hpb=edd536b61215b7bd9f88b0de8b10de6bc1f5ba29;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/cdrom b/lfs/cdrom index 4a1165c0b5..5fa6730f22 100644 --- a/lfs/cdrom +++ b/lfs/cdrom @@ -1,22 +1,20 @@ ############################################################################### -# This file is part of the IPCop Firewall. # # # -# IPCop is free software; you can redistribute it and/or modify # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # -# the Free Software Foundation; either version 2 of the License, or # +# the Free Software Foundation, either version 3 of the License, or # # (at your option) any later version. # # # -# IPCop is distributed in the hope that it will be useful, # +# This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # -# along with IPCop; if not, write to the Free Software # -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# # -# Makefiles are based on LFSMake, which is # -# Copyright (C) 2002 Rod Roard # +# along with this program. If not, see . # # # ############################################################################### @@ -29,43 +27,19 @@ include Config VER = ipfire THISAPP = cdrom -DL_FILE = rawrite.exe -DL_FROM = $(URL_IPFIRE) TARGET = $(DIR_INFO)/$(THISAPP) ############################################################################### # Top-level Rules ############################################################################### -objects = $(DL_FILE) \ - rawwritewin-0.7.zip - -$(DL_FILE) = $(DL_FROM)/$(DL_FILE) -rawwritewin-0.7.zip = http://uranus.it.swin.edu.au/~jn/linux/rawwritewin-0.7.zip - -$(DL_FILE)_MD5 = 7dac6ea496014d32dbce6c50feb254ca -rawwritewin-0.7.zip_MD5 = 0130b497c8c3bc7d136a4236b0d9fbf6 - install : $(TARGET) -check : $(patsubst %,$(DIR_CHK)/%,$(objects)) - -download :$(patsubst %,$(DIR_DL)/%,$(objects)) - -md5 : $(subst %,%_MD5,$(objects)) +check : -############################################################################### -# Downloading, checking, md5sum -############################################################################### - -$(patsubst %,$(DIR_CHK)/%,$(objects)) : - @$(CHECK) - -$(patsubst %,$(DIR_DL)/%,$(objects)) : - @$(LOAD) +download : -$(subst %,%_MD5,$(objects)) : - @$(MD5) +md5 : ############################################################################### # Installation Details @@ -74,35 +48,48 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) rm -rf /install/cdrom /tmp/* + #Clear mtab (prevents .journal problems) + echo > /etc/mtab + # Compress root filesystem # Reason for this tar+untar+tar is removing of entries listed two or more in src/ROOTFILES - mkdir -p /install/cdrom/{doc,dosutils,images} + mkdir -p /install/cdrom/doc find $(DIR_SRC)/config/rootfiles/common -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES - find $(DIR_SRC)/config/rootfiles/ver_$(IPFVER) -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES + find $(DIR_SRC)/config/rootfiles/ver_$(ED) -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES + find $(DIR_SRC)/config/rootfiles/core/*/files -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES + sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES + tar -c -C / --files-from=/tmp/ROOTFILES \ -f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \ --exclude='proc/*' --exclude='tmp/ROOTFILES' rm -f /tmp/ROOTFILES tar -x -C /tmp -f /$(SNAME).tar rm -f /$(SNAME).tar + @mkdir /tmp/sys cd /tmp && tar jcf /install/cdrom/$(SNAME)-$(VERSION).tbz2 * && rm -rf * # Other files sed 's/VERSION/$(VERSION)/' $(DIR_SRC)/config/cdrom/README.txt > /install/cdrom/README.txt cp $(DIR_SRC)/doc/COPYING /install/cdrom/ - cp /install/images/*.img /install/cdrom/images cp $(DIR_SRC)/doc/{ChangeLog,packages-list.txt} /install/cdrom/doc - cp $(DIR_DL)/rawrite.exe /install/cdrom/dosutils - unzip -j -L $(DIR_DL)/rawwritewin*.zip -x "*.txt" -d /install/cdrom/dosutils + + # Configuration + mkdir -p /install/cdrom/boot + cp $(DIR_SRC)/config/syslinux/unattended.conf /install/cdrom/boot/unattended.conf # Make the ISO mkdir -p /install/cdrom/boot/isolinux; \ dd if=/dev/zero bs=1k count=2 > /install/cdrom/boot/isolinux/boot.catalog; \ - cp /install/images/cdinitrd.gz /install/cdrom/boot/isolinux/instroot.gz; \ - cp /boot/vmlinuz-$(KVER) /install/cdrom/boot/isolinux/vmlinuz; \ - cp $(DIR_SRC)/config/kernel/syslinux.cfg /install/cdrom/boot/isolinux/isolinux.cfg; \ - cp $(DIR_SRC)/config/kernel/install-message /install/cdrom/boot/isolinux/message; \ + cp /install/images/initrd /install/cdrom/boot/isolinux/instroot; \ + cp /boot/vmlinuz-$(KVER)-ipfire /install/cdrom/boot/isolinux/vmlinuz; \ + cp $(DIR_SRC)/config/syslinux/syslinux.cfg /install/cdrom/boot/isolinux/isolinux.cfg; \ + cp $(DIR_SRC)/config/syslinux/boot.msg /install/cdrom/boot/isolinux/boot.msg; \ + cp $(DIR_SRC)/config/syslinux/options.msg /install/cdrom/boot/isolinux/options.msg; \ + cp $(DIR_SRC)/config/syslinux/splash.lss /install/cdrom/boot/isolinux/splash.lss; \ + cp /usr/lib/memtest86+/memtest.bin /install/cdrom/boot/isolinux/memtest; \ cp /usr/lib/syslinux/isolinux.bin /install/cdrom/boot/isolinux/isolinux.bin; \ + cd /install/cdrom && find -type f ! -name md5sum.txt | grep -v "./boot" | \ + xargs md5sum > md5sum.txt; \ cd /install/cdrom && mkisofs -J -r -V "$(NAME)_$(VERSION)" \ -b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table \ - -c boot/isolinux/boot.catalog . > /install/images/$(SNAME)-$(VERSION).$(MACHINE)-$(IPFVER).iso + -c boot/isolinux/boot.catalog . > /install/images/$(SNAME)-$(VERSION).$(MACHINE)-$(ED)-core$(CORE).iso