Ignore:
Timestamp:
02/27/2017 05:32:14 PM (8 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
new_features
Children:
45f0437
Parents:
6c9002b
Message:

Fix installation of BLFS tools for recent book instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    r6c9002b rf769d1f  
    131131mv scripts $BUILDDIR$BLFS_ROOT
    132132
    133 # The  book instructions for CA certificates contains downloading
    134 # instructions, which should not be used here, so:
    135 if test -f $BUILDDIR$BLFS_ROOT/scripts/*cacerts; then
    136   sed -i '/URL=/,/^wget/d' $BUILDDIR$BLFS_ROOT/scripts/*cacerts
    137 fi
    138 
    139133# Generates a list containing download and copying instructions for tarballs
    140134echo -e '#!/bin/bash\nset -e\n' > $BUILDDIR$BLFS_ROOT/download_script
     
    151145# Remove `unpacked' files if some have been left
    152146sudo find . -name unpacked -exec rm \{\} \;
    153 FTP_SERVER=$SERVER/pub/blfs/ SRC_ARCHIVE=$SRC_ARCHIVE $BUILDDIR$BLFS_ROOT/download_script
     147if [ "$GETPKG" = "y" ]; then
     148    FTP_SERVER=$SERVER/pub/blfs/ \
     149    SRC_ARCHIVE=$SRC_ARCHIVE     \
     150    $BUILDDIR$BLFS_ROOT/download_script
     151else # Save the download script in case the user wants to run it later
     152    cp $BUILDDIR$BLFS_ROOT/download_script .
     153fi
    154154popd
    155155rm -v $BUILDDIR$BLFS_ROOT/download_script
     
    182182if [ "$DEP_LYNX" = y ]; then
    183183  if [ "$DEP_OPENSSL" = y -o "$DEP_WGET" = y ]; then
    184     sed -i -e 's/configure/& --with-ssl/' \
    185            -e '/make$/i echo "#define USE_OPENSSL_INCL 1" >> lynx_cfg.h &&' \
    186       $BUILDDIR$BLFS_ROOT/scripts/*lynx
     184    sed -e 's/configure/& --with-ssl/' \
     185        -i $BUILDDIR$BLFS_ROOT/scripts/*lynx
    187186  fi
     187fi
     188# The  book instructions for CA certificates suppose that the cerdata.txt
     189# file is in the same directory as make-ca.sh-<version>. This is not the
     190# case with our default instructions. Just remove the "cd $UNPACKDIR" here.
     191if test -f $BUILDDIR$BLFS_ROOT/scripts/*cacerts; then
     192  sed -i '/cd \$UNPACKDIR/d' $BUILDDIR$BLFS_ROOT/scripts/*cacerts
    188193fi
    189194# At last generates the build Makefile
Note: See TracChangeset for help on using the changeset viewer.