Changeset 67723e1


Ignore:
Timestamp:
02/27/2017 05:33:46 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
6eaae5e
Parents:
342c862
Message:

merge new_features revision 3888

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    r342c862 r67723e1  
    125125mv scripts $BUILDDIR$BLFS_ROOT
    126126
    127 # The  book instructions for CA certificates contains downloading
    128 # instructions, which should not be used here, so:
    129 if test -f $BUILDDIR$BLFS_ROOT/scripts/*cacerts; then
    130   sed -i '/URL=/,/^wget/d' $BUILDDIR$BLFS_ROOT/scripts/*cacerts
    131 fi
    132 
    133127# Generates a list containing download and copying instructions for tarballs
    134128echo -e '#!/bin/bash\nset -e\n' > $BUILDDIR$BLFS_ROOT/download_script
     
    145139# Remove `unpacked' files if some have been left
    146140sudo find . -name unpacked -exec rm \{\} \;
    147 FTP_SERVER=$SERVER/pub/blfs/ SRC_ARCHIVE=$SRC_ARCHIVE $BUILDDIR$BLFS_ROOT/download_script
     141if [ "$GETPKG" = "y" ]; then
     142    FTP_SERVER=$SERVER/pub/blfs/ \
     143    SRC_ARCHIVE=$SRC_ARCHIVE     \
     144    $BUILDDIR$BLFS_ROOT/download_script
     145else # Save the download script in case the user wants to run it later
     146    cp $BUILDDIR$BLFS_ROOT/download_script .
     147fi
    148148popd
    149149rm -v $BUILDDIR$BLFS_ROOT/download_script
     
    176176if [ "$DEP_LYNX" = y ]; then
    177177  if [ "$DEP_OPENSSL" = y -o "$DEP_WGET" = y ]; then
    178     sed -i -e 's/configure/& --with-ssl/' \
    179            -e '/make$/i echo "#define USE_OPENSSL_INCL 1" >> lynx_cfg.h &&' \
    180       $BUILDDIR$BLFS_ROOT/scripts/*lynx
     178    sed -e 's/configure/& --with-ssl/' \
     179        -i $BUILDDIR$BLFS_ROOT/scripts/*lynx
    181180  fi
     181fi
     182# The  book instructions for CA certificates suppose that the cerdata.txt
     183# file is in the same directory as make-ca.sh-<version>. This is not the
     184# case with our default instructions. Just remove the "cd $UNPACKDIR" here.
     185if test -f $BUILDDIR$BLFS_ROOT/scripts/*cacerts; then
     186  sed -i '/cd \$UNPACKDIR/d' $BUILDDIR$BLFS_ROOT/scripts/*cacerts
    182187fi
    183188# At last generates the build Makefile
Note: See TracChangeset for help on using the changeset viewer.