Use local configuration (dialog).
This commit is contained in:
parent
c7021ce0a9
commit
66851273ad
@ -146,11 +146,7 @@ VIM_SOURCE_URL=https://github.com/vim/vim/archive/v8.0.1298.tar.gz
|
||||
#
|
||||
ZLIB_SOURCE_URL=http://zlib.net/zlib-1.2.11.tar.xz
|
||||
|
||||
# You can find the latest dialog source bundles here:
|
||||
#
|
||||
# http://invisible-island.net/dialog/
|
||||
#
|
||||
DIALOG_SOURCE_URL=ftp://ftp.invisible-island.net/dialog/dialog-1.3-20170509.tgz
|
||||
|
||||
|
||||
####################################################
|
||||
# #
|
||||
@ -250,7 +246,7 @@ OVERLAY_TYPE=folder
|
||||
# The default overlay bundles are 'dhcp' and 'mll_source'.
|
||||
#
|
||||
#OVERLAY_BUNDLES=dhcp,mll_source
|
||||
OVERLAY_BUNDLES=dropbear
|
||||
OVERLAY_BUNDLES=dialog
|
||||
|
||||
# The location where the overlay bundle software will be stored.
|
||||
#
|
||||
|
5
src/minimal_overlay/bundles/dialog/.config
Normal file
5
src/minimal_overlay/bundles/dialog/.config
Normal file
@ -0,0 +1,5 @@
|
||||
# You can find the latest dialog source bundles here:
|
||||
#
|
||||
# http://invisible-island.net/dialog/
|
||||
#
|
||||
DIALOG_SOURCE_URL=ftp://ftp.invisible-island.net/dialog/dialog-1.3-20170509.tgz
|
@ -4,15 +4,13 @@ set -e
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
# Grab everything after the '=' character.
|
||||
DOWNLOAD_URL=$(grep -i DIALOG_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
|
||||
# Read the common configuration properties.
|
||||
DOWNLOAD_URL=`read_property DIALOG_SOURCE_URL`
|
||||
USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE`
|
||||
|
||||
# Grab everything after the last '/' character.
|
||||
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
|
||||
|
||||
# Read the 'USE_LOCAL_SOURCE' property from '.config'
|
||||
USE_LOCAL_SOURCE="$(grep -i USE_LOCAL_SOURCE $MAIN_SRC_DIR/.config | cut -f2 -d'=')"
|
||||
|
||||
if [ "$USE_LOCAL_SOURCE" = "true" -a ! -f $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE ] ; then
|
||||
echo "Source bundle $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE is missing and will be downloaded."
|
||||
USE_LOCAL_SOURCE="false"
|
||||
|
@ -28,6 +28,8 @@ make -j $NUM_JOBS
|
||||
echo "Installing 'dialog'."
|
||||
make -j $NUM_JOBS install DESTDIR=$DEST_DIR
|
||||
|
||||
rm -rf $DEST_DIR/usr/lib $DEST_DIR/usr/share
|
||||
|
||||
echo "Reducing 'dialog' size."
|
||||
set +e
|
||||
strip -g $DEST_DIR/usr/bin/*
|
||||
@ -35,7 +37,7 @@ set -e
|
||||
|
||||
# With '--remove-destination' all possibly existing soft links in
|
||||
# '$OVERLAY_ROOTFS' will be overwritten correctly.
|
||||
cp -r --remove-destination $DEST_DIR/usr/* \
|
||||
cp -r --remove-destination $DEST_DIR/usr \
|
||||
$OVERLAY_ROOTFS
|
||||
|
||||
echo "Bundle 'dialog' has been installed."
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
./01_get.sh
|
||||
./02_build.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user