ifeq "$(ROOT)" ""
TARGET = $(DIR_INFO)/$(THISAPP)
EXTRA_CONFIG = --prefix=/usr --enable-shared --disable-nls
- EXTRA_MAKE = tooldir=/usr LD_LIBRARY_PATH=/usr/lib
- EXTRA_INSTALL = tooldir=/usr LD_LIBRARY_PATH=/usr/lib
+ EXTRA_MAKE = tooldir=/usr
+ EXTRA_INSTALL = tooldir=/usr
else
ifeq "$(PASS)" "1"
TARGET = $(DIR_INFO)/$(THISAPP)-tools1
ifeq "$(PASS)" "1"
cd $(DIR_SRC)/binutils-build && make configure-host
endif
- # $(MAKETUNING) stil is disabled here
- cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE)
+ cd $(DIR_SRC)/binutils-build && make $(EXTRA_MAKE) $(MAKETUNING)
cd $(DIR_SRC)/binutils-build && make $(EXTRA_INSTALL) install
ifeq "$(ROOT)" ""
cp -v $(DIR_APP)/include/libiberty.h /usr/include
mv -v /tools/i686-pc-linux-gnu/bin/{ld,ld-old}
cp -v /tools/bin/{ld-new,ld}
ln -sv /tools/bin/ld /tools/i686-pc-linux-gnu/bin/ld
- /tools/bin/gcc -dumpspecs > /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
+ gcc -dumpspecs > /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
sed 's@^/lib/ld-linux.so.2@/tools&@g' /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs > tempspecfile
mv -vf tempspecfile /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
- GCC_INCLUDEDIR=/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include
find /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \;
rm -vf `grep -l "DO NOT EDIT THIS FILE" /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/include/*`
endif
ln -sv /tools/bin/ld /tools/i686-pc-linux-gnu/bin/ld
gcc -dumpspecs | \
perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \
- -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \
- `dirname $(gcc --print-libgcc-file-name)`/specs
+ -e 's@\*startfile_prefix_spec:\n@$$_/usr/lib/ @g;' > \
+ /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs
endif
@$(POSTBUILD)
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/bin/{head,sleep,nice} /bin
ln -sf test /bin/[
- ln -sf ../../bin/install /usr/bin
+ #ln -sf ../../bin/install /usr/bin
mv -f /bin/uname /bin/uname.bak
echo '#!/bin/bash' > /bin/uname
echo '/bin/uname.bak $$* | sed 's/i.86/$(MACHINE)/g'' >> /bin/uname
THISAPP = fetchmail-$(VER)
DL_FILE = $(THISAPP).tar.bz2
-DL_FROM = http://download2.berlios.de/fetchmail
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = fetchmail
-PAK_VER = ipfire-beta1
+PAK_VER = 1
###############################################################################
# Top-level Rules
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++ \
- --disable-nls \
- --host=i686-pc-linux-gnu \
- --target=$(BUILDTARGET)
-# This is not taken from the LFS but a fix,
-# because the compiler tries to do a cross-compile.
- EXTRA_MAKE = LD_LIBRARY_PATH=/usr/lib
- EXTRA_INSTALL = LD_LIBRARY_PATH=/usr/lib
+ --disable-nls
+ EXTRA_MAKE =
+ EXTRA_INSTALL =
else
ifeq "$(PASS)" "1"
TARGET = $(DIR_INFO)/$(THISAPP)-tools1
EXTRA_CONFIG = --prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c
- EXTRA_MAKE = bootstrap #BOOT_LDFLAGS="-static"
+ EXTRA_MAKE = bootstrap BOOT_LDFLAGS="-static"
EXTRA_INSTALL =
else
TARGET = $(DIR_INFO)/$(THISAPP)-tools2
###############################################################################
objects = $(DL_FILE)
-$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+$(DL_FILE = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 6ff1af12c53cbb3f79b27f2d6a9a3d50
+$(DL_FILE)_MD5 = 6ff1af12c53cbb3f79b27f2d6a9a3d50
install : $(TARGET)
THISAPP = logwatch-$(VER)
DL_FILE = $(THISAPP).tar.gz
-DL_FROM = ftp://ftp.kaybee.org/pub/old/linux
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
done
ln -sfv libncurses++w.a /usr/lib/libncurses++.a4
- echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so &&
- ln -sfv libncurses.so /usr/lib/libcurses.so &&
- ln -sfv libncursesw.a /usr/lib/libcursesw.a &&
+ echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so
+ ln -sfv libncurses.so /usr/lib/libcurses.so
+ ln -sfv libncursesw.a /usr/lib/libcursesw.a
ln -sfv libncurses.a /usr/lib/libcurses.a
endif
@rm -rf $(DIR_APP)
endif
ifeq "$(ROOT)" ""
cd $(DIR_APP) && ./configure.gnu --prefix=/usr -Dman1dir=/usr/share/man/man1 \
- -Dman3dir=/usr/share/man/man3 -Dpager="/usr/bin/less -isR" \
- -Dmyhostname=localhost
+ -Dman3dir=/usr/share/man/man3 -Dpager="/usr/bin/less -isR"
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
else
- cd $(DIR_APP) && ./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX' -Dmyhostname=localhost
- cd $(DIR_APP) && make $(MAKETUNING) perl utilities
+ cd $(DIR_APP) && ./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper Fcntl IO POSIX'
+ cd $(DIR_APP) && sed -i 's/^0$$//' makefile
+ cd $(DIR_APP) && sed -i 's/^0$$//' x2p/makefile
+ cd $(DIR_APP) && make perl utilities
cd $(DIR_APP) && cp -v perl pod/pod2man /tools/bin
cd $(DIR_APP) && mkdir -pv /tools/lib/perl5/$(VER)
cd $(DIR_APP) && cp -Rv lib/* /tools/lib/perl5/$(VER)
# 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: squid-graph,v 1.3.2.2 2005/02/05 15:38:16 gespinasse Exp $
-# #
###############################################################################
###############################################################################
THISAPP = squid-graph-$(VER)
DL_FILE = $(THISAPP).tar.gz
-DL_FROM = http://squid-graph.securlogic.com/files/stable
+DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
SLOGAN="www.ipfire.eu" # Software slogan
CONFIG_ROOT=/var/ipfire # Configuration rootdir
NICE=10 # Nice level
-MAX_RETRIES=3 # prefetch/check loop
+MAX_RETRIES=1 # prefetch/check loop
KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'`
MACHINE=`uname -m`
SVN_REVISION=`svn info | grep Revision | cut -c 11-`
# Make all sources and proc available under lfs build
mount --bind /dev $BASEDIR/build/dev
- mount -t devpts devpts $BASEDIR/build/dev/pts
- mount -t tmpfs shm $BASEDIR/build/dev/shm
- mount -t proc proc $BASEDIR/build/proc
- mount -t sysfs sysfs $BASEDIR/build/sys
+ mount --bind /dev/pts $BASEDIR/build/dev/pts
+ mount --bind /dev/shm $BASEDIR/build/dev/shm
+ mount --bind /proc $BASEDIR/build/proc
+ mount --bind /sys $BASEDIR/build/sys
mount --bind $BASEDIR/cache $BASEDIR/build/usr/src/cache
mount --bind $BASEDIR/ccache $BASEDIR/build/usr/src/ccache
mount --bind $BASEDIR/config $BASEDIR/build/usr/src/config
mkdir $BASEDIR/cache
fi
mkdir -p $BASEDIR/log
- echo "`date -u '+%b %e %T'`:Preload all source files" | tee -a $LOGFILE
+ echo -e "${BOLD}Preload all source files${NORMAL}" | tee -a $LOGFILE
FINISHED=0
cd $BASEDIR/lfs
for c in `seq $MAX_RETRIES`; do