# Makefiles are based on LFSMake, which is #
# Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
# #
-# Modifications by: #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
-# - Modified Makefile for IPCop build #
-# #
-# $Id: cdrom,v 1.1.2.30 2006/01/30 22:54:33 gespinasse Exp $
-# #
###############################################################################
###############################################################################
THISAPP = cdrom
DL_FILE = rawrite.exe
-DL_FROM = http://www.tux.org/pub/dos/rawrite
+DL_FROM = $(URL_IPFIRE)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# 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}
- tar -c -C / --files-from=$(DIR_SRC)/src/ROOTFILES.$(MACHINE) \
- -f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
- --exclude='proc/*'
+ sed -e "s/KVER/$(KVER)/g" $(DIR_SRC)/src/ROOTFILES.$(MACHINE) > /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 zcf /install/cdrom/$(SNAME)-$(VERSION).tgz * && rm -rf *
dd bs=1024 count=$$((`du -k -s ../cdrom|awk '{print $$1}'` + 64)) if=/dev/zero of=/install/images/$(SNAME)-install-usb-$(VERSION).$(MACHINE).iso; \
echo "move boot files on top of disk" && \
rm -rf boot && \
- mkdosfs -n IPCOPBOOT -F 16 -I /install/images/$(SNAME)-install-usb-$(VERSION).$(MACHINE).iso && \
+ mkdosfs -n IPFIREBOOT -F 16 -I /install/images/$(SNAME)-install-usb-$(VERSION).$(MACHINE).iso && \
mount -t vfat -o loop /install/images/$(SNAME)-install-usb-$(VERSION).$(MACHINE).iso /install/mnt && \
cp -R ../cdrom/* /install/mnt && \
cp /install/images/cdinitrd.gz /install/mnt/instroot.gz && \