X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fbash;h=e98b6fdba8a1bc3ce02cabecfc8bac065dc45a6d;hb=19cd2b6a7cd5951bb2c74004f27c5be82924880a;hp=e09f91ceb5b7315a984274fe6295e1375084bd51;hpb=77b3d64a169130ad4d51a35b54749415687f5c01;p=ipfire-2.x.git diff --git a/lfs/bash b/lfs/bash index e09f91ceb5..e98b6fdba8 100644 --- a/lfs/bash +++ b/lfs/bash @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2014 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 # @@ -87,26 +87,25 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) sed -e "s/filename, RTLD_LAZY/filename, RTLD_NOW/" \ -i $(DIR_APP)/builtins/enable.def - for i in $$(seq 1 18); do \ + for i in $$(seq 1 30); do \ cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/bash/bash43-$$(printf "%03d" "$${i}") || exit 1; \ done cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash-4.0-paths-1.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash-4.0-profile-1.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/bash-3.2-ssh_source_bash.patch - cd $(DIR_APP) && patch -Np0 < $(DIR_SRC)/src/patches/bash-4.3-CVE-2014-6271.patch cd $(DIR_APP) && ./configure $(CONFIGURE_OPTIONS) cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install - ln -sf bash /bin/sh +ifeq "$(TOOLCHAIN)" "1" + ln -svf bash /tools/bin/sh -ifneq "$(ROOT)" "" - -mkdir -p $(ROOT)/bin - -mkdir -p $(ROOT)/usr/bin - ln -sf bash /tools/bin/sh - -ln -sf /tools/bin/bash $(ROOT)/bin/sh + mkdir -pv $(ROOT)/bin + ln -svf ../tools/bin/bash $(ROOT)/bin/sh +else + ln -svf bash /bin/sh endif @rm -rf $(DIR_APP)