Fix "blfs_root" location in envars.conf, to match initial location

when installing BLFS tools.
Convert package names to lowercase in wrap and pack functions for porg, since
porg does that anyway
This commit is contained in:
Pierre Labastie 2016-08-25 10:04:30 +00:00
parent 316db22956
commit 7bbcce3ce7
2 changed files with 7 additions and 1 deletions

View file

@ -162,4 +162,4 @@ if [ -r /etc/profile ]; then source /etc/profile; fi
# where the functions are dfined, and we'll source it just before
# installing.
export PACK_INSTALL=${HOME}/blfs_root/packInstall.sh # change as needed
export PACK_INSTALL=/blfs_root/packInstall.sh # change as needed

View file

@ -13,6 +13,9 @@ local PCKGVRS=$(basename $PKGDIR)
local TGTPKG=$(basename $PKG_DEST)
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
sed 's/^[0-9]\{1\}-//')
# Porg converts package names to lowercase anyway, so do the conversion
# ourselves
PACKAGE=${PACKAGE,,}
# version is only accessible from PKGDIR name. Since the format of the
# name is not normalized, several hacks are necessary...
case $PCKGVRS in
@ -39,6 +42,9 @@ local TGTPKG=$(basename $PKG_DEST)
local PACKAGE=$(echo ${TGTPKG} | sed 's/^[0-9]\{3\}-//' |
sed 's/^[0-9]\{1\}-//')
local PCKGVRS=$(basename $PKGDIR)
# Porg converts package names to lowercase anyway, so do the conversion
# ourselves
PACKAGE=${PACKAGE,,}
case $PCKGVRS in
expect*|tcl*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*//') ;;
vim*|unzip*) local VERSION=$(echo $PCKGVRS | sed 's/^[^0-9]*\([0-9]\)\([0-9]\)/\1.\2/') ;;