mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 12:32:59 +02:00
Typo von Meisterwinter behoben. Clamav Update. Neuen Source-Server unter source.ipfire.eu in Betrieb genommen. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@338 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
117 lines
5.5 KiB
Plaintext
117 lines
5.5 KiB
Plaintext
###############################################################################
|
|
# This file is part of the IPCop Firewall. #
|
|
# #
|
|
# IPCop 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 #
|
|
# (at your option) any later version. #
|
|
# #
|
|
# IPCop 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 <rod@sunsetsystems.com> #
|
|
# #
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
# Definitions
|
|
###############################################################################
|
|
|
|
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 \
|
|
install-en-1.4.0.pdf.zip \
|
|
quickstart-en.pdf.zip
|
|
|
|
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
|
rawwritewin-0.7.zip = http://uranus.it.swin.edu.au/~jn/linux/rawwritewin-0.7.zip
|
|
install-en-1.4.0.pdf.zip = $(URL_SFNET)/ipcop/install-en-1.4.0.pdf.zip
|
|
quickstart-en.pdf.zip = http://www.ipcop.org/1.4.0/en/quickstart/quickstart-en.pdf.zip
|
|
|
|
$(DL_FILE)_MD5 = 7dac6ea496014d32dbce6c50feb254ca
|
|
rawwritewin-0.7.zip_MD5 = 0130b497c8c3bc7d136a4236b0d9fbf6
|
|
install-en-1.4.0.pdf.zip_MD5 = 07e0b5131f1434010d8a00571f9acd81
|
|
quickstart-en.pdf.zip_MD5 = ca77ef5f1efca6bc519cc42acfd69aa4
|
|
|
|
install : $(TARGET)
|
|
|
|
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
|
|
|
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
|
|
|
md5 : $(subst %,%_MD5,$(objects))
|
|
|
|
###############################################################################
|
|
# Downloading, checking, md5sum
|
|
###############################################################################
|
|
|
|
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
|
@$(CHECK)
|
|
|
|
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
|
@$(LOAD)
|
|
|
|
$(subst %,%_MD5,$(objects)) :
|
|
@$(MD5)
|
|
|
|
###############################################################################
|
|
# Installation Details
|
|
###############################################################################
|
|
|
|
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|
rm -rf /install/cdrom /tmp/*
|
|
|
|
# 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}
|
|
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
|
|
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
|
|
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
|
|
unzip $(DIR_DL)/install-en-1.4.0.pdf.zip -d /install/cdrom/doc
|
|
unzip $(DIR_DL)/quickstart-en.pdf.zip -d /install/cdrom/doc
|
|
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
|
|
|
|
# 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 /usr/lib/syslinux/isolinux.bin /install/cdrom/boot/isolinux/isolinux.bin; \
|
|
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
|