mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Installer
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@349 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
10
lfs/cdrom
10
lfs/cdrom
@@ -38,19 +38,13 @@ TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE) \
|
||||
rawwritewin-0.7.zip \
|
||||
install-en-1.4.0.pdf.zip \
|
||||
quickstart-en.pdf.zip
|
||||
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
|
||||
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)
|
||||
|
||||
@@ -97,8 +91,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
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
|
||||
|
||||
72
lfs/strip
Normal file
72
lfs/strip
Normal file
@@ -0,0 +1,72 @@
|
||||
###############################################################################
|
||||
# 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 = strip
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
check :
|
||||
|
||||
download :
|
||||
|
||||
md5 :
|
||||
|
||||
###############################################################################
|
||||
# Installation Details
|
||||
###############################################################################
|
||||
|
||||
$(TARGET) :
|
||||
|
||||
ifeq "$(LFS_PASS)" "toolchain"
|
||||
-find $(TOOLS_DIR)/lib -type f -exec $(TOOLS_DIR)/bin/strip --strip-debug '{}' ';'
|
||||
-find $(TOOLS_DIR)/{bin,sbin,libexec} -type f -exec $(TOOLS_DIR)/bin/strip --strip-all '{}' ';'
|
||||
rm -rf $(TOOLS_DIR)/{,share/}{doc,info,man}
|
||||
endif
|
||||
|
||||
ifeq "$(LFS_PASS)" "install"
|
||||
# Add -ls before -exec if you want to verify what files are in the path to be stripped
|
||||
# A running binary can't be stripped, so use the version from /tools
|
||||
# It may fail (signal 11) under circonstance not identified by me (Gilles),
|
||||
# to strip libc again so ignore the error now. Probably need a static strip for libc
|
||||
# Don't use --strip-all on libraries, or they'll be destroyed. Don't use --strip-unneeded, either.
|
||||
-/tools/bin/find /lib /usr/lib /usr/share/rrdtool-* /install/initrd/lib \
|
||||
-type f \( -name '*.so' -o -name '*.so[\.0-9]*' \) \
|
||||
-exec $(TOOLS_DIR)/bin/strip --strip-debug {} \; #2>/dev/null
|
||||
|
||||
-/tools/bin/strip --strip-all /{,usr/}{,local/}{bin,sbin}/* /install/{initrd,misc}/bin/*
|
||||
-/tools/bin/strip --strip-all /usr/lib/awk/{grcat,pwcat}
|
||||
-/tools/bin/strip --strip-all /usr/lib/gcc/*-linux-gnu/4.0.3/{cc1*,collect2}
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user