From 45abde762d84f351e801596dbd336461959dd157 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 11 Dec 2011 01:14:23 +0100 Subject: [PATCH 01/18] core54: add GeoIP database to updater. --- config/rootfiles/core/54/filelists/GeoIP | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/rootfiles/core/54/filelists/GeoIP diff --git a/config/rootfiles/core/54/filelists/GeoIP b/config/rootfiles/core/54/filelists/GeoIP new file mode 100644 index 000000000..0258236c0 --- /dev/null +++ b/config/rootfiles/core/54/filelists/GeoIP @@ -0,0 +1 @@ +usr/local/share/GeoIP/GeoIP.dat From e23114f49c2cc5d5af3b811fc0e266434606bc9b Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 11 Dec 2011 01:15:07 +0100 Subject: [PATCH 02/18] core54: flush snort rules. --- config/rootfiles/core/54/update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/rootfiles/core/54/update.sh b/config/rootfiles/core/54/update.sh index 59f97cfc8..61d10113d 100644 --- a/config/rootfiles/core/54/update.sh +++ b/config/rootfiles/core/54/update.sh @@ -43,6 +43,10 @@ done # Flush old usb-modeswitch data rm -rf /usr/share/usb_modeswitch +# +# Flush old snort rules +rm -rf /etc/snort/rules + # #Extract files extract_files From 4c8608f0160f9a0e0b3cbf0adece33ac16baeeb5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 11 Dec 2011 12:17:19 +0100 Subject: [PATCH 03/18] Build preload lib to fake output of uname. --- lfs/fake-environ | 58 +++++++++++++++++++++++++++++++++++++++ make.sh | 4 ++- src/fake-environ/Makefile | 31 +++++++++++++++++++++ src/fake-environ/uname.c | 50 +++++++++++++++++++++++++++++++++ tools/make-functions | 21 ++++++++++++++ 5 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 lfs/fake-environ create mode 100644 src/fake-environ/Makefile create mode 100644 src/fake-environ/uname.c diff --git a/lfs/fake-environ b/lfs/fake-environ new file mode 100644 index 000000000..7a0f1a4d3 --- /dev/null +++ b/lfs/fake-environ @@ -0,0 +1,58 @@ +############################################################################### +# # +# 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 3 of the License, or # +# (at your option) any later version. # +# # +# 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 this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.0 + +THISAPP = fake-environ +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP)-tools$(PASS) + +############################################################################### +# Top-level Rules +############################################################################### + +install : $(TARGET) + +check : + +download : + +md5 : + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : + @$(PREBUILD) + @rm -rf $(DIR_APP) + cp -rvf $(DIR_SRC)/src/$(THISAPP) $(DIR_APP) + + cd $(DIR_APP) && make install CFLAGS="$(CFLAGS)" \ + TOOLS_DIR="$(TOOLS_DIR)" + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index f98d84ad2..8b9f48a2b 100755 --- a/make.sh +++ b/make.sh @@ -37,7 +37,7 @@ KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'` MACHINE=`uname -m` GIT_TAG=$(git tag | tail -1) # Git Tag GIT_LASTCOMMIT=$(git log | head -n1 | cut -d" " -f2 |head -c8) # Last commit -TOOLCHAINVER=1 +TOOLCHAINVER=2 BUILDMACHINE=$MACHINE if [ "$MACHINE" = "x86_64" ]; then @@ -242,6 +242,7 @@ buildtoolchain() { export NATIVEGCC GCCmajor=${NATIVEGCC:0:1} GCCminor=${NATIVEGCC:2:1} GCCrelease=${NATIVEGCC:4:1} ORG_PATH=$PATH export PATH=$BASEDIR/build/usr/local/bin:$BASEDIR/build/tools/bin:$PATH + lfsmake1 fake-environ PASS=1 lfsmake1 ccache PASS=1 lfsmake1 make PASS=1 lfsmake1 binutils PASS=1 @@ -253,6 +254,7 @@ buildtoolchain() { fi lfsmake1 glibc lfsmake1 cleanup-toolchain PASS=1 + lfsmake1 fake-environ PASS=2 lfsmake1 tcl lfsmake1 expect lfsmake1 dejagnu diff --git a/src/fake-environ/Makefile b/src/fake-environ/Makefile new file mode 100644 index 000000000..a75bdf27f --- /dev/null +++ b/src/fake-environ/Makefile @@ -0,0 +1,31 @@ + +ifeq "$(CFLAGS)" "" + $(error CLFAGS not defined.) +endif + +ifeq "$(TOOLS_DIR)" "" + $(error TOOLS_DIR not defined.) +endif + +LIB = libpakfire_preload.so + +SOURCES = $(wildcard *.c) +OBJECTS = $(patsubst %.c,%.o,$(SOURCES)) + +.PHONY: all +all: $(LIB) + +%.o: %.c Makefile + $(CC) $(CFLAGS) -o $@ -c $< + +$(LIB): $(OBJECTS) + $(CC) $(CFLAGS) -shared -o $@ $? -ldl + +.PHONY: install +install: all + -mkdir -pv $(TOOLS_DIR)/lib/ + install -p -m 755 $(LIB) $(TOOLS_DIR)/lib + +.PHONY: clean +clean: + $(LIB) diff --git a/src/fake-environ/uname.c b/src/fake-environ/uname.c new file mode 100644 index 000000000..2485a810f --- /dev/null +++ b/src/fake-environ/uname.c @@ -0,0 +1,50 @@ + + +#include +#include +#include +#include /* for EXIT_FAILURE */ +#include /* for _exit() */ +#include +#include +#include +#include +#include + +#ifndef RTLD_NEXT +#define RTLD_NEXT ((void *) -1l) +#endif + +typedef int (*uname_t)(struct utsname * buf); + +static void *get_libc_func(const char *funcname) { + char *error; + + void *func = dlsym(RTLD_NEXT, funcname); + if ((error = dlerror()) != NULL) { + fprintf(stderr, "I can't locate libc function `%s' error: %s", funcname, error); + _exit(EXIT_FAILURE); + } + + return func; +} + +int uname(struct utsname *buf) { + char *env = NULL; + + /* Call real uname to get the information we need. */ + uname_t real_uname = (uname_t)get_libc_func("uname"); + int ret = real_uname((struct utsname *) buf); + + /* Replace release if requested. */ + if ((env = getenv("UTS_RELEASE")) != NULL) { + strncpy(buf->release, env, _UTSNAME_RELEASE_LENGTH); + } + + /* Replace machine type if requested. */ + if ((env = getenv("UTS_MACHINE")) != NULL) { + strncpy(buf->machine, env, _UTSNAME_MACHINE_LENGTH); + } + + return ret; +} diff --git a/tools/make-functions b/tools/make-functions index e693ff94f..144411cd3 100644 --- a/tools/make-functions +++ b/tools/make-functions @@ -270,10 +270,26 @@ exiterror() { exit 1 } +fake_environ() { + [ -e "${BASEDIR}/build/tools/lib/libpakfire_preload.so" ] || return + + local env="LD_PRELOAD=/tools/lib/libpakfire_preload.so" + + # Fake kernel version, because some of the packages do not compile + # with kernel 3.0 and later. + env="${env} UTS_RELEASE=${KVER}" + + # Fake machine version. + env="${env} UTS_MACHINE=${MACHINE}" + + echo "${env}" +} + entershell() { if [ ! -e $BASEDIR/build/usr/src/lfs/ ]; then exiterror "No such file or directory: $BASEDIR/build/usr/src/lfs/" fi + echo "Entering to a shell inside LFS chroot, go out with exit" $linux32 chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ @@ -288,6 +304,7 @@ entershell() { MACHINE="$MACHINE" \ MACHINE_TYPE="$MACHINE_TYPE" \ KGCC="ccache /usr/bin/gcc" \ + $(fake_environ) \ /tools/bin/bash if [ $? -ne 0 ]; then beautify message FAIL @@ -371,6 +388,7 @@ lfsmake1() { ROOT=$LFS \ KVER=$KVER \ MAKETUNING=$MAKETUNING \ + $(fake_environ) \ install >> $LOGFILE 2>&1 local COMPILE_SUCCESS=$? local PKG_TIME_END=`date +%s` @@ -401,6 +419,7 @@ lfsmake2() { KVER=$KVER MAKETUNING=$MAKETUNING \ BUILDTARGET="$BUILDTARGET" MACHINE="$MACHINE" \ MACHINE_TYPE="$MACHINE_TYPE" \ + $(fake_environ) \ /tools/bin/bash -x -c "cd /usr/src/lfs && \ make -f $* LFS_BASEDIR=/usr/src install" >>$LOGFILE 2>&1 local COMPILE_SUCCESS=$? @@ -433,6 +452,7 @@ ipfiremake() { KVER=$KVER MAKETUNING=$MAKETUNING \ BUILDTARGET="$BUILDTARGET" MACHINE="$MACHINE" \ MACHINE_TYPE="$MACHINE_TYPE" \ + $(fake_environ) \ /bin/bash -x -c "cd /usr/src/lfs && \ make -f $* LFS_BASEDIR=/usr/src install" >>$LOGFILE 2>&1 @@ -464,6 +484,7 @@ ipfiredist() { KVER=$KVER \ BUILDTARGET="$BUILDTARGET" MACHINE="$MACHINE" \ MACHINE_TYPE="$MACHINE_TYPE" \ + $(fake_environ) \ /bin/bash -x -c "cd /usr/src/lfs && \ make -f $1 LFS_BASEDIR=/usr/src dist" >>$LOGFILE 2>&1 From 71d3bfd4553ca94c6a3e8a25554f66eb899cf4a7 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 18 Dec 2011 12:20:29 +0100 Subject: [PATCH 04/18] core54: fix build on arm. --- .../rootfiles/core/54/filelists/armv5tel/intelnet-modules | 6 ++++++ .../rootfiles/core/54/filelists/{ => i586}/intelnet-modules | 0 2 files changed, 6 insertions(+) create mode 100644 config/rootfiles/core/54/filelists/armv5tel/intelnet-modules rename config/rootfiles/core/54/filelists/{ => i586}/intelnet-modules (100%) diff --git a/config/rootfiles/core/54/filelists/armv5tel/intelnet-modules b/config/rootfiles/core/54/filelists/armv5tel/intelnet-modules new file mode 100644 index 000000000..83d1e8b2a --- /dev/null +++ b/config/rootfiles/core/54/filelists/armv5tel/intelnet-modules @@ -0,0 +1,6 @@ +lib/modules/2.6.32.45-ipfire-kirkwood/kernel/drivers/net/e1000/e1000.ko +lib/modules/2.6.32.45-ipfire-kirkwood/kernel/drivers/net/e1000e/e1000e.ko +lib/modules/2.6.32.45-ipfire-kirkwood/kernel/drivers/net/igb/igb.ko +lib/modules/2.6.32.45-ipfire-versatile/kernel/drivers/net/e1000/e1000.ko +lib/modules/2.6.32.45-ipfire-versatile/kernel/drivers/net/e1000e/e1000e.ko +lib/modules/2.6.32.45-ipfire-versatile/kernel/drivers/net/igb/igb.ko diff --git a/config/rootfiles/core/54/filelists/intelnet-modules b/config/rootfiles/core/54/filelists/i586/intelnet-modules similarity index 100% rename from config/rootfiles/core/54/filelists/intelnet-modules rename to config/rootfiles/core/54/filelists/i586/intelnet-modules From ad768ac98b8b7445460f9402cc217e4fc7d79fbc Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 18 Dec 2011 13:30:26 +0100 Subject: [PATCH 05/18] squid: update to 3.1.18. enabled polish and russian error messages. --- config/rootfiles/common/squid | 150 +++++++++++++++++----------------- lfs/squid | 4 +- 2 files changed, 77 insertions(+), 77 deletions(-) diff --git a/config/rootfiles/common/squid b/config/rootfiles/common/squid index 461a2a2bd..2c37c171c 100644 --- a/config/rootfiles/common/squid +++ b/config/rootfiles/common/squid @@ -390,7 +390,7 @@ usr/lib/squid/errors/de/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/el/ERR_URN_RESOLVE #usr/lib/squid/errors/el/ERR_WRITE_ERROR #usr/lib/squid/errors/el/ERR_ZERO_SIZE_OBJECT -usr/lib/squid/errors/en +#usr/lib/squid/errors/en #usr/lib/squid/errors/en-au #usr/lib/squid/errors/en-bz #usr/lib/squid/errors/en-ca @@ -1134,43 +1134,43 @@ usr/lib/squid/errors/fr/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/oc/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/pl #usr/lib/squid/errors/pl-pl -#usr/lib/squid/errors/pl/ERR_ACCESS_DENIED -#usr/lib/squid/errors/pl/ERR_CACHE_ACCESS_DENIED -#usr/lib/squid/errors/pl/ERR_CACHE_MGR_ACCESS_DENIED -#usr/lib/squid/errors/pl/ERR_CANNOT_FORWARD -#usr/lib/squid/errors/pl/ERR_CONNECT_FAIL -#usr/lib/squid/errors/pl/ERR_DIR_LISTING -#usr/lib/squid/errors/pl/ERR_DNS_FAIL -#usr/lib/squid/errors/pl/ERR_ESI -#usr/lib/squid/errors/pl/ERR_FORWARDING_DENIED -#usr/lib/squid/errors/pl/ERR_FTP_DISABLED -#usr/lib/squid/errors/pl/ERR_FTP_FAILURE -#usr/lib/squid/errors/pl/ERR_FTP_FORBIDDEN -#usr/lib/squid/errors/pl/ERR_FTP_NOT_FOUND -#usr/lib/squid/errors/pl/ERR_FTP_PUT_CREATED -#usr/lib/squid/errors/pl/ERR_FTP_PUT_ERROR -#usr/lib/squid/errors/pl/ERR_FTP_PUT_MODIFIED -#usr/lib/squid/errors/pl/ERR_FTP_UNAVAILABLE -#usr/lib/squid/errors/pl/ERR_GATEWAY_FAILURE -#usr/lib/squid/errors/pl/ERR_ICAP_FAILURE -#usr/lib/squid/errors/pl/ERR_INVALID_REQ -#usr/lib/squid/errors/pl/ERR_INVALID_RESP -#usr/lib/squid/errors/pl/ERR_INVALID_URL -#usr/lib/squid/errors/pl/ERR_LIFETIME_EXP -#usr/lib/squid/errors/pl/ERR_NO_RELAY -#usr/lib/squid/errors/pl/ERR_ONLY_IF_CACHED_MISS -#usr/lib/squid/errors/pl/ERR_PRECONDITION_FAILED -#usr/lib/squid/errors/pl/ERR_READ_ERROR -#usr/lib/squid/errors/pl/ERR_READ_TIMEOUT -#usr/lib/squid/errors/pl/ERR_SECURE_CONNECT_FAIL -#usr/lib/squid/errors/pl/ERR_SHUTTING_DOWN -#usr/lib/squid/errors/pl/ERR_SOCKET_FAILURE -#usr/lib/squid/errors/pl/ERR_TOO_BIG -#usr/lib/squid/errors/pl/ERR_UNSUP_HTTPVERSION -#usr/lib/squid/errors/pl/ERR_UNSUP_REQ -#usr/lib/squid/errors/pl/ERR_URN_RESOLVE -#usr/lib/squid/errors/pl/ERR_WRITE_ERROR -#usr/lib/squid/errors/pl/ERR_ZERO_SIZE_OBJECT +usr/lib/squid/errors/pl/ERR_ACCESS_DENIED +usr/lib/squid/errors/pl/ERR_CACHE_ACCESS_DENIED +usr/lib/squid/errors/pl/ERR_CACHE_MGR_ACCESS_DENIED +usr/lib/squid/errors/pl/ERR_CANNOT_FORWARD +usr/lib/squid/errors/pl/ERR_CONNECT_FAIL +usr/lib/squid/errors/pl/ERR_DIR_LISTING +usr/lib/squid/errors/pl/ERR_DNS_FAIL +usr/lib/squid/errors/pl/ERR_ESI +usr/lib/squid/errors/pl/ERR_FORWARDING_DENIED +usr/lib/squid/errors/pl/ERR_FTP_DISABLED +usr/lib/squid/errors/pl/ERR_FTP_FAILURE +usr/lib/squid/errors/pl/ERR_FTP_FORBIDDEN +usr/lib/squid/errors/pl/ERR_FTP_NOT_FOUND +usr/lib/squid/errors/pl/ERR_FTP_PUT_CREATED +usr/lib/squid/errors/pl/ERR_FTP_PUT_ERROR +usr/lib/squid/errors/pl/ERR_FTP_PUT_MODIFIED +usr/lib/squid/errors/pl/ERR_FTP_UNAVAILABLE +usr/lib/squid/errors/pl/ERR_GATEWAY_FAILURE +usr/lib/squid/errors/pl/ERR_ICAP_FAILURE +usr/lib/squid/errors/pl/ERR_INVALID_REQ +usr/lib/squid/errors/pl/ERR_INVALID_RESP +usr/lib/squid/errors/pl/ERR_INVALID_URL +usr/lib/squid/errors/pl/ERR_LIFETIME_EXP +usr/lib/squid/errors/pl/ERR_NO_RELAY +usr/lib/squid/errors/pl/ERR_ONLY_IF_CACHED_MISS +usr/lib/squid/errors/pl/ERR_PRECONDITION_FAILED +usr/lib/squid/errors/pl/ERR_READ_ERROR +usr/lib/squid/errors/pl/ERR_READ_TIMEOUT +usr/lib/squid/errors/pl/ERR_SECURE_CONNECT_FAIL +usr/lib/squid/errors/pl/ERR_SHUTTING_DOWN +usr/lib/squid/errors/pl/ERR_SOCKET_FAILURE +usr/lib/squid/errors/pl/ERR_TOO_BIG +usr/lib/squid/errors/pl/ERR_UNSUP_HTTPVERSION +usr/lib/squid/errors/pl/ERR_UNSUP_REQ +usr/lib/squid/errors/pl/ERR_URN_RESOLVE +usr/lib/squid/errors/pl/ERR_WRITE_ERROR +usr/lib/squid/errors/pl/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/pt #usr/lib/squid/errors/pt-br #usr/lib/squid/errors/pt-br/ERR_ACCESS_DENIED @@ -1290,43 +1290,43 @@ usr/lib/squid/errors/fr/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/ro/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/ru #usr/lib/squid/errors/ru-ru -#usr/lib/squid/errors/ru/ERR_ACCESS_DENIED -#usr/lib/squid/errors/ru/ERR_CACHE_ACCESS_DENIED -#usr/lib/squid/errors/ru/ERR_CACHE_MGR_ACCESS_DENIED -#usr/lib/squid/errors/ru/ERR_CANNOT_FORWARD -#usr/lib/squid/errors/ru/ERR_CONNECT_FAIL -#usr/lib/squid/errors/ru/ERR_DIR_LISTING -#usr/lib/squid/errors/ru/ERR_DNS_FAIL -#usr/lib/squid/errors/ru/ERR_ESI -#usr/lib/squid/errors/ru/ERR_FORWARDING_DENIED -#usr/lib/squid/errors/ru/ERR_FTP_DISABLED -#usr/lib/squid/errors/ru/ERR_FTP_FAILURE -#usr/lib/squid/errors/ru/ERR_FTP_FORBIDDEN -#usr/lib/squid/errors/ru/ERR_FTP_NOT_FOUND -#usr/lib/squid/errors/ru/ERR_FTP_PUT_CREATED -#usr/lib/squid/errors/ru/ERR_FTP_PUT_ERROR -#usr/lib/squid/errors/ru/ERR_FTP_PUT_MODIFIED -#usr/lib/squid/errors/ru/ERR_FTP_UNAVAILABLE -#usr/lib/squid/errors/ru/ERR_GATEWAY_FAILURE -#usr/lib/squid/errors/ru/ERR_ICAP_FAILURE -#usr/lib/squid/errors/ru/ERR_INVALID_REQ -#usr/lib/squid/errors/ru/ERR_INVALID_RESP -#usr/lib/squid/errors/ru/ERR_INVALID_URL -#usr/lib/squid/errors/ru/ERR_LIFETIME_EXP -#usr/lib/squid/errors/ru/ERR_NO_RELAY -#usr/lib/squid/errors/ru/ERR_ONLY_IF_CACHED_MISS -#usr/lib/squid/errors/ru/ERR_PRECONDITION_FAILED -#usr/lib/squid/errors/ru/ERR_READ_ERROR -#usr/lib/squid/errors/ru/ERR_READ_TIMEOUT -#usr/lib/squid/errors/ru/ERR_SECURE_CONNECT_FAIL -#usr/lib/squid/errors/ru/ERR_SHUTTING_DOWN -#usr/lib/squid/errors/ru/ERR_SOCKET_FAILURE -#usr/lib/squid/errors/ru/ERR_TOO_BIG -#usr/lib/squid/errors/ru/ERR_UNSUP_HTTPVERSION -#usr/lib/squid/errors/ru/ERR_UNSUP_REQ -#usr/lib/squid/errors/ru/ERR_URN_RESOLVE -#usr/lib/squid/errors/ru/ERR_WRITE_ERROR -#usr/lib/squid/errors/ru/ERR_ZERO_SIZE_OBJECT +usr/lib/squid/errors/ru/ERR_ACCESS_DENIED +usr/lib/squid/errors/ru/ERR_CACHE_ACCESS_DENIED +usr/lib/squid/errors/ru/ERR_CACHE_MGR_ACCESS_DENIED +usr/lib/squid/errors/ru/ERR_CANNOT_FORWARD +usr/lib/squid/errors/ru/ERR_CONNECT_FAIL +usr/lib/squid/errors/ru/ERR_DIR_LISTING +usr/lib/squid/errors/ru/ERR_DNS_FAIL +usr/lib/squid/errors/ru/ERR_ESI +usr/lib/squid/errors/ru/ERR_FORWARDING_DENIED +usr/lib/squid/errors/ru/ERR_FTP_DISABLED +usr/lib/squid/errors/ru/ERR_FTP_FAILURE +usr/lib/squid/errors/ru/ERR_FTP_FORBIDDEN +usr/lib/squid/errors/ru/ERR_FTP_NOT_FOUND +usr/lib/squid/errors/ru/ERR_FTP_PUT_CREATED +usr/lib/squid/errors/ru/ERR_FTP_PUT_ERROR +usr/lib/squid/errors/ru/ERR_FTP_PUT_MODIFIED +usr/lib/squid/errors/ru/ERR_FTP_UNAVAILABLE +usr/lib/squid/errors/ru/ERR_GATEWAY_FAILURE +usr/lib/squid/errors/ru/ERR_ICAP_FAILURE +usr/lib/squid/errors/ru/ERR_INVALID_REQ +usr/lib/squid/errors/ru/ERR_INVALID_RESP +usr/lib/squid/errors/ru/ERR_INVALID_URL +usr/lib/squid/errors/ru/ERR_LIFETIME_EXP +usr/lib/squid/errors/ru/ERR_NO_RELAY +usr/lib/squid/errors/ru/ERR_ONLY_IF_CACHED_MISS +usr/lib/squid/errors/ru/ERR_PRECONDITION_FAILED +usr/lib/squid/errors/ru/ERR_READ_ERROR +usr/lib/squid/errors/ru/ERR_READ_TIMEOUT +usr/lib/squid/errors/ru/ERR_SECURE_CONNECT_FAIL +usr/lib/squid/errors/ru/ERR_SHUTTING_DOWN +usr/lib/squid/errors/ru/ERR_SOCKET_FAILURE +usr/lib/squid/errors/ru/ERR_TOO_BIG +usr/lib/squid/errors/ru/ERR_UNSUP_HTTPVERSION +usr/lib/squid/errors/ru/ERR_UNSUP_REQ +usr/lib/squid/errors/ru/ERR_URN_RESOLVE +usr/lib/squid/errors/ru/ERR_WRITE_ERROR +usr/lib/squid/errors/ru/ERR_ZERO_SIZE_OBJECT #usr/lib/squid/errors/sk #usr/lib/squid/errors/sk-sk #usr/lib/squid/errors/sk/ERR_ACCESS_DENIED diff --git a/lfs/squid b/lfs/squid index 6b71f0dae..610154b3b 100644 --- a/lfs/squid +++ b/lfs/squid @@ -24,7 +24,7 @@ include Config -VER = 3.1.16 +VER = 3.1.18 THISAPP = squid-$(VER) DL_FILE = $(THISAPP).tar.bz2 @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 675aef4411d41f5b55b15a29ad6e5261 +$(DL_FILE)_MD5 = b53f8fb6e22551c2a7376292df5b6ec7 install : $(TARGET) From 977a52e66930c36acc4db3d9eb1675ce1647300f Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 22 Dec 2011 23:07:42 +0100 Subject: [PATCH 06/18] credits.cgi: Update credits. * Splitt development team into active and inactive members. * Remove useless tasks from members. * Update mail adresses. --- html/cgi-bin/credits.cgi | 55 ++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/html/cgi-bin/credits.cgi b/html/cgi-bin/credits.cgi index e667c83da..75e59b18d 100644 --- a/html/cgi-bin/credits.cgi +++ b/html/cgi-bin/credits.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2010 IPFire Team # +# Copyright (C) 2011 IPFire Team # # # # 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 # @@ -65,30 +65,35 @@ print <Development:
-Project Leader - Michael Tremer -(mitch\@ipfire.org)
-Vice Project Leader - Christian Schmidt -(maniacikarus\@ipfire.org)
-Maintainer IPFire 2.x - Arne Fitzenreiter -(arne\@ipfire.org)
-Developer - Stefan Schantl -(stevee\@ipfire.org)
-Developer - Jan Paul Tücking -(earl\@ipfire.org)
-Developer & Webmaster - Heiner Schmeling -(cm\@ipfire.org)
-Developer (Addons) - Peter Pfeiffer -(peterman\@ipfire.org)
-Supporter, Wiki-Admin & Sponsor - Ronald Wiesinger -(rowie\@ipfire.org)
-Supporter & Wiki-Admin - Silvio Rechenbach -(exciter\@ipfire.org)
-Sponsor - Peter Schaelchli -(scp\@ipfire.org)
-Sponsor - Sven Nierlein -(affect\@versatel.de)
-Sponsor - Rene Zingel -(linuxadmin\@ipfire.org)
+Arne Fitzenreiter +(arne.fitzenreiter\@ipfire.org) - Maintainer IPFire 2.x
+Michael Tremer +(michael.tremer\@ipfire.org) - Project Leader
+Christian Schmidt +(christian.schmidt\@ipfire.org) - Vice Project Leader
+Stefan Schantl +(stefan.schantl\@ipfire.org)
+Jan Paul Tücking +(jan.tuecking\@ipfire.org)
+Heiner Schmeling +(heiner.schmeling\@ipfire.org)
+Ronald Wiesinger +(ronald.wiesinger\@ipfire.org)
+Silvio Rechenbach +(silvio.rechenbach\@ipfire.org)
+Dirk Wagner +(dirk.wagner\@ipfire.org)
+Erik Kapfer +(erik.kapfer\@ipfire.org)
+Alfred Haas +(alfred.haas\@ipfire.org)
+ +

Inactive:
+ +Peter Pfeiffer +(peter.pfeifer\@ipfire.org)
+Peter Schälchli +(peter.schaelchli\@ipfire.org)

Some parts of the distribution are left ajar on third-party software, that is licensed under the GPL, too.
There are: Advanced Proxy with URL-Filter and Update-Accelerator, ZERINA, Connection Scheduler, Hddtemp and Wake-on-LAN.
From cac9daa61b7d8522c55dff5faefd54aeb1c47c32 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 27 Dec 2011 11:05:02 +0100 Subject: [PATCH 07/18] initrd: fix build on i586. --- config/rootfiles/installer/glibc | 2 +- config/rootfiles/installer/util-linux | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/rootfiles/installer/glibc b/config/rootfiles/installer/glibc index 73e445e7a..4a4672680 120000 --- a/config/rootfiles/installer/glibc +++ b/config/rootfiles/installer/glibc @@ -1 +1 @@ -../common/glibc \ No newline at end of file +../common/i586/glibc \ No newline at end of file diff --git a/config/rootfiles/installer/util-linux b/config/rootfiles/installer/util-linux index c8ab83eac..f672071b7 120000 --- a/config/rootfiles/installer/util-linux +++ b/config/rootfiles/installer/util-linux @@ -1 +1 @@ -../common/util-linux \ No newline at end of file +../common/i586/util-linux \ No newline at end of file From 332cc5e86466c0ac5248ee20ba721c3b4f4267c1 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Thu, 22 Dec 2011 23:07:42 +0100 Subject: [PATCH 08/18] credits.cgi: Update credits. * Splitt development team into active and inactive members. * Remove useless tasks from members. * Update mail adresses. --- html/cgi-bin/credits.cgi | 55 ++++++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/html/cgi-bin/credits.cgi b/html/cgi-bin/credits.cgi index e667c83da..75e59b18d 100644 --- a/html/cgi-bin/credits.cgi +++ b/html/cgi-bin/credits.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2010 IPFire Team # +# Copyright (C) 2011 IPFire Team # # # # 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 # @@ -65,30 +65,35 @@ print <Development:
-Project Leader - Michael Tremer -(mitch\@ipfire.org)
-Vice Project Leader - Christian Schmidt -(maniacikarus\@ipfire.org)
-Maintainer IPFire 2.x - Arne Fitzenreiter -(arne\@ipfire.org)
-Developer - Stefan Schantl -(stevee\@ipfire.org)
-Developer - Jan Paul Tücking -(earl\@ipfire.org)
-Developer & Webmaster - Heiner Schmeling -(cm\@ipfire.org)
-Developer (Addons) - Peter Pfeiffer -(peterman\@ipfire.org)
-Supporter, Wiki-Admin & Sponsor - Ronald Wiesinger -(rowie\@ipfire.org)
-Supporter & Wiki-Admin - Silvio Rechenbach -(exciter\@ipfire.org)
-Sponsor - Peter Schaelchli -(scp\@ipfire.org)
-Sponsor - Sven Nierlein -(affect\@versatel.de)
-Sponsor - Rene Zingel -(linuxadmin\@ipfire.org)
+Arne Fitzenreiter +(arne.fitzenreiter\@ipfire.org) - Maintainer IPFire 2.x
+Michael Tremer +(michael.tremer\@ipfire.org) - Project Leader
+Christian Schmidt +(christian.schmidt\@ipfire.org) - Vice Project Leader
+Stefan Schantl +(stefan.schantl\@ipfire.org)
+Jan Paul Tücking +(jan.tuecking\@ipfire.org)
+Heiner Schmeling +(heiner.schmeling\@ipfire.org)
+Ronald Wiesinger +(ronald.wiesinger\@ipfire.org)
+Silvio Rechenbach +(silvio.rechenbach\@ipfire.org)
+Dirk Wagner +(dirk.wagner\@ipfire.org)
+Erik Kapfer +(erik.kapfer\@ipfire.org)
+Alfred Haas +(alfred.haas\@ipfire.org)
+ +

Inactive:
+ +Peter Pfeiffer +(peter.pfeifer\@ipfire.org)
+Peter Schälchli +(peter.schaelchli\@ipfire.org)

Some parts of the distribution are left ajar on third-party software, that is licensed under the GPL, too.
There are: Advanced Proxy with URL-Filter and Update-Accelerator, ZERINA, Connection Scheduler, Hddtemp and Wake-on-LAN.
From ef9d89aa4e15ba8df328dd01039509cc81aa3410 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 27 Dec 2011 11:09:04 +0100 Subject: [PATCH 09/18] core54: add credits.cgi. --- config/rootfiles/core/54/filelists/files | 1 + 1 file changed, 1 insertion(+) diff --git a/config/rootfiles/core/54/filelists/files b/config/rootfiles/core/54/filelists/files index ff13db675..01c4951df 100644 --- a/config/rootfiles/core/54/filelists/files +++ b/config/rootfiles/core/54/filelists/files @@ -12,6 +12,7 @@ etc/rc.d/init.d/snort usr/local/bin/hddshutdown usr/local/bin/makegraphs usr/local/bin/scanhd +srv/web/ipfire/cgi-bin/credits.cgi srv/web/ipfire/cgi-bin/hardwaregraphs.cgi srv/web/ipfire/cgi-bin/ids.cgi srv/web/ipfire/cgi-bin/media.cgi From c6f13fa77c23a02d649ed1d56c7a366c3a7a2caa Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 29 Dec 2011 13:44:09 +0100 Subject: [PATCH 10/18] nagios_nrpe: Disable linking against tcpwrappers. tcpwrappers is $%&"$%&/ and just causing headaches. Use the stupid firewall if you want to block access from remote hosts. --- lfs/nagios_nrpe | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index 34bc5a890..41be3d397 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = nagios_nrpe -PAK_VER = 1 +PAK_VER = 2 DEPS = "nagios" @@ -78,9 +78,15 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure --prefix=/usr --libexecdir=/usr/lib/nagios \ - --with-nrpe-user=nobody --with-nrpe-group=nobody \ - --with-nagios-user=nobody --with-nagios-group=nobody + cd $(DIR_APP) && ./configure \ + --prefix=/usr \ + --libexecdir=/usr/lib/nagios \ + --with-nrpe-user=nobody \ + --with-nrpe-group=nobody \ + --with-nagios-user=nobody \ + --with-nagios-group=nobody \ + ac_cv_lib_wrap_main=no + cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @rm -rf $(DIR_APP) From 6f5ef200b352a96e9ed7b45a1e64119067c0c98f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 29 Dec 2011 16:29:20 +0100 Subject: [PATCH 11/18] kernel: Enable support for UFS. Unix File System as it is used in FreeBSD 5.x. No write support enabled. --- config/kernel/kernel.config.i586-ipfire | 8 +++++--- config/kernel/kernel.config.i586-ipfire-pae | 4 +++- config/kernel/kernel.config.i586-ipfire-xen | 4 +++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire index 2c08a1bd2..111573c8b 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit -# Linux kernel version: 2.6.32.41-ipfire -# Tue May 31 14:26:02 2011 +# Linux kernel version: 2.6.32.45-ipfire +# Thu Dec 29 15:16:04 2011 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -3593,7 +3593,9 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m diff --git a/config/kernel/kernel.config.i586-ipfire-pae b/config/kernel/kernel.config.i586-ipfire-pae index 4b23df337..7b0312975 100644 --- a/config/kernel/kernel.config.i586-ipfire-pae +++ b/config/kernel/kernel.config.i586-ipfire-pae @@ -3624,7 +3624,9 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m diff --git a/config/kernel/kernel.config.i586-ipfire-xen b/config/kernel/kernel.config.i586-ipfire-xen index 72fd49098..4f3551d5e 100644 --- a/config/kernel/kernel.config.i586-ipfire-xen +++ b/config/kernel/kernel.config.i586-ipfire-xen @@ -3385,7 +3385,9 @@ CONFIG_JFFS2_CMODE_PRIORITY=y # CONFIG_QNX4FS_FS is not set # CONFIG_ROMFS_FS is not set # CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set +CONFIG_UFS_FS=m +# CONFIG_UFS_FS_WRITE is not set +# CONFIG_UFS_DEBUG is not set # CONFIG_EXOFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=m From 977fc44e2064e4e4cec598c0347c2fb1999ea3dc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 29 Dec 2011 18:59:12 +0100 Subject: [PATCH 12/18] Support BSD partition tables. --- config/kernel/kernel.config.i586-ipfire | 4 ++-- config/kernel/kernel.config.i586-ipfire-pae | 2 +- config/kernel/kernel.config.i586-ipfire-xen | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/kernel/kernel.config.i586-ipfire b/config/kernel/kernel.config.i586-ipfire index 111573c8b..e2513f036 100644 --- a/config/kernel/kernel.config.i586-ipfire +++ b/config/kernel/kernel.config.i586-ipfire @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.32.45-ipfire -# Thu Dec 29 15:16:04 2011 +# Thu Dec 29 15:32:08 2011 # # CONFIG_64BIT is not set CONFIG_X86_32=y @@ -3644,7 +3644,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set +CONFIG_BSD_DISKLABEL=y # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set diff --git a/config/kernel/kernel.config.i586-ipfire-pae b/config/kernel/kernel.config.i586-ipfire-pae index 7b0312975..98d222a45 100644 --- a/config/kernel/kernel.config.i586-ipfire-pae +++ b/config/kernel/kernel.config.i586-ipfire-pae @@ -3675,7 +3675,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set +CONFIG_BSD_DISKLABEL=y # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set diff --git a/config/kernel/kernel.config.i586-ipfire-xen b/config/kernel/kernel.config.i586-ipfire-xen index 4f3551d5e..f5c7ba88c 100644 --- a/config/kernel/kernel.config.i586-ipfire-xen +++ b/config/kernel/kernel.config.i586-ipfire-xen @@ -3435,7 +3435,7 @@ CONFIG_PARTITION_ADVANCED=y # CONFIG_ATARI_PARTITION is not set # CONFIG_MAC_PARTITION is not set CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set +CONFIG_BSD_DISKLABEL=y # CONFIG_MINIX_SUBPARTITION is not set # CONFIG_SOLARIS_X86_PARTITION is not set # CONFIG_UNIXWARE_DISKLABEL is not set From 683cc8e470f73e3a964191af3e66b90c80495a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=B6ker?= Date: Thu, 29 Dec 2011 19:35:48 +0100 Subject: [PATCH 13/18] nagios_nrpe: Add --enable-command-args. --- lfs/nagios_nrpe | 1 + 1 file changed, 1 insertion(+) diff --git a/lfs/nagios_nrpe b/lfs/nagios_nrpe index 41be3d397..050c9294f 100644 --- a/lfs/nagios_nrpe +++ b/lfs/nagios_nrpe @@ -85,6 +85,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) --with-nrpe-group=nobody \ --with-nagios-user=nobody \ --with-nagios-group=nobody \ + --enable-command-args \ ac_cv_lib_wrap_main=no cd $(DIR_APP) && make $(MAKETUNING) From aa9b916226988023cd0082f8d53d34baeb783d2e Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 30 Dec 2011 23:41:39 +0100 Subject: [PATCH 14/18] toolchain: fix build on ix86. --- make.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/make.sh b/make.sh index 415c19588..bc13d22e3 100755 --- a/make.sh +++ b/make.sh @@ -260,12 +260,11 @@ buildtoolchain() { NATIVEGCC=`gcc --version | grep GCC | awk {'print $3'}` export NATIVEGCC GCCmajor=${NATIVEGCC:0:1} GCCminor=${NATIVEGCC:2:1} GCCrelease=${NATIVEGCC:4:1} ORG_PATH=$PATH - export PATH=$BASEDIR/build/usr/local/bin:$BASEDIR/build/tools/bin:$PATH - lfsmake1 fake-environ PASS=1 lfsmake1 ccache PASS=1 lfsmake1 make PASS=1 lfsmake1 binutils PASS=1 lfsmake1 gcc PASS=1 + export PATH=$BASEDIR/build/usr/local/bin:$BASEDIR/build/tools/bin:$PATH if [ "${MACHINE_TYPE}" = "arm" ]; then lfsmake1 linux TOOLS=1 HEADERS=1 else @@ -273,7 +272,7 @@ buildtoolchain() { fi lfsmake1 glibc lfsmake1 cleanup-toolchain PASS=1 - lfsmake1 fake-environ PASS=2 + lfsmake1 fake-environ lfsmake1 tcl lfsmake1 expect lfsmake1 dejagnu From 1852d640e3a1a991c7187c8295d3d645b9b93701 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 30 Dec 2011 23:43:41 +0100 Subject: [PATCH 15/18] toolchain: allow armv5tel toolchain build on armv7l host. --- make.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.sh b/make.sh index bc13d22e3..2c8f231e0 100755 --- a/make.sh +++ b/make.sh @@ -240,7 +240,7 @@ buildtoolchain() { ;; # ARM - armv5tel:armv5tel|armv5tel:armv5tejl) + armv5tel:armv5tel|armv5tel:armv5tejl|armv5tel:armv7l) # These are working. ;; armv5tel:*) From 920b610fa0f0b404bb323c06b4f2e43105ce57c6 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 31 Dec 2011 02:45:19 +0100 Subject: [PATCH 16/18] toolchain: remove old uname hack. --- config/rootfiles/common/coreutils | 3 +-- lfs/coreutils | 8 +------- lfs/flash-images | 3 +-- lfs/xen-image | 3 +-- make.sh | 2 +- src/install+setup/install/main.c | 3 --- 6 files changed, 5 insertions(+), 17 deletions(-) diff --git a/config/rootfiles/common/coreutils b/config/rootfiles/common/coreutils index 22094c7e2..3901b697e 100644 --- a/config/rootfiles/common/coreutils +++ b/config/rootfiles/common/coreutils @@ -20,8 +20,7 @@ bin/rmdir bin/sleep bin/sync bin/true -#bin/uname -bin/uname.bak +bin/uname etc/dircolors usr/bin/[ usr/bin/basename diff --git a/lfs/coreutils b/lfs/coreutils index d5c437dd1..7bdc0ecd3 100644 --- a/lfs/coreutils +++ b/lfs/coreutils @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2011 IPFire Team # # # # 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 # @@ -108,15 +108,9 @@ ifeq "$(ROOT)" "" mv -v /usr/bin/{head,sleep,nice} /bin ln -sf test /bin/[ #ln -sf ../../bin/install /usr/bin - mv -f /bin/uname /bin/uname.bak - cp -vf $(DIR_SRC)/src/scripts/uname /bin/uname - chmod 755 /bin/uname dircolors -p > /etc/dircolors else rm /tools/bin/hostname - mv -f /tools/bin/uname /tools/bin/uname.bak - cp -vf $(DIR_SRC)/src/scripts/uname /tools/bin/uname - chmod 755 /tools/bin/uname endif @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/lfs/flash-images b/lfs/flash-images index fb1ca3da9..7888423b6 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2011 IPFire Team # # # # 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 # @@ -90,7 +90,6 @@ endif echo "HOSTNAME=$(SNAME)" >> $(MNThdd)/var/ipfire/main/settings echo "THEME=ipfire" >> $(MNThdd)/var/ipfire/main/settings -touch $(MNThdd)/lib/modules/$(KVER)-ipfire/modules.dep - mv $(MNThdd)/bin/uname.bak $(MNThdd)/bin/uname mkdir $(MNThdd)/proc mount --bind /proc $(MNThdd)/proc mount --bind /dev $(MNThdd)/dev diff --git a/lfs/xen-image b/lfs/xen-image index 4ab32b492..bd46b641a 100644 --- a/lfs/xen-image +++ b/lfs/xen-image @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2011 IPFire Team # # # # 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 # @@ -115,7 +115,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) echo "HOSTNAME=$(SNAME)" >> $(MNThdd)/var/ipfire/main/settings echo "THEME=ipfire" >> $(MNThdd)/var/ipfire/main/settings touch $(MNThdd)/lib/modules/$(KVER)-ipfire-xen/modules.dep - mv $(MNThdd)/bin/uname.bak $(MNThdd)/bin/uname mkdir $(MNThdd)/proc mount --bind /proc $(MNThdd)/proc mount --bind /dev $(MNThdd)/dev diff --git a/make.sh b/make.sh index 2c8f231e0..1edcf1571 100755 --- a/make.sh +++ b/make.sh @@ -37,7 +37,7 @@ KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'` MACHINE=`uname -m` GIT_TAG=$(git tag | tail -1) # Git Tag GIT_LASTCOMMIT=$(git log | head -n1 | cut -d" " -f2 |head -c8) # Last commit -TOOLCHAINVER=2 +TOOLCHAINVER=3 BUILDMACHINE=$MACHINE if [ "$MACHINE" = "x86_64" ]; then diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index 799059a3b..daa1c3f26 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -463,9 +463,6 @@ int main(int argc, char *argv[]) /* Save language und local settings */ write_lang_configs(shortlangname); - /* Rename uname */ - rename ("/harddisk/bin/uname.bak", "/harddisk/bin/uname"); - /* mount proc filesystem */ mysystem("mkdir /harddisk/proc"); mysystem("/bin/mount --bind /proc /harddisk/proc"); From 0d738d2385f637d6ca94c655aa61042e85a5f750 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 31 Dec 2011 10:32:24 +0100 Subject: [PATCH 17/18] scripts: remove fake-uname script. --- src/scripts/uname | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/scripts/uname diff --git a/src/scripts/uname b/src/scripts/uname deleted file mode 100644 index c1996fda1..000000000 --- a/src/scripts/uname +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -uname= -for i in /bin/uname.bak /tools/bin/uname.bak; do - if [ -x "$i" ]; then - uname=${i} - break - fi -done - -if [ -z "${uname}" ]; then - exit 127 -fi - -machine=$(${uname} -m) -kernel=$(${uname} -r) -output=$(${uname} $@) - -# Overwrite kernel version to hack kernel 3.x versions. -output=$(sed -e "s/${kernel}/${KVER}/g" <<<${output}) - -case "${machine}" in - armv*) - echo "${output}" | \ - sed -e "s/armv.*l/${MACHINE}/g" - ;; - - i?86) - echo "${output}" | \ - sed -e "s/i.86/${MACHINE}/g" - ;; -esac From a41302651055f03f27c8132526a3bd5520875555 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 3 Jan 2012 21:21:26 +0100 Subject: [PATCH 18/18] make.sh: fix wrong md5sum messages at wrong arch packages. --- make.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/make.sh b/make.sh index 1edcf1571..ccdb4c639 100755 --- a/make.sh +++ b/make.sh @@ -1002,6 +1002,7 @@ downloadsrc) ERROR=0 for i in *; do if [ -f "$i" -a "$i" != "Config" ]; then + lfsmakecommoncheck ${i} > /dev/null || continue make -s -f $i LFS_BASEDIR=$BASEDIR MACHINE=$MACHINE \ MESSAGE="$i\t " md5 >> $LOGFILE 2>&1 if [ $? -ne 0 ]; then