Use local configuration (libevent).
This commit is contained in:
parent
6d7aef9f49
commit
cde4a92d05
@ -41,12 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0
|
||||
# #
|
||||
#####################################################################
|
||||
|
||||
# You can find the latest libevent archives here:
|
||||
#
|
||||
# https://github.com/libevent/libevent/releases/
|
||||
#
|
||||
LIBEVENT_SOURCE_URL=https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
|
||||
|
||||
# You can find the latest Links source bundles here:
|
||||
#
|
||||
# http://links.twibright.com
|
||||
|
5
src/minimal_overlay/bundles/libevent/.config
Normal file
5
src/minimal_overlay/bundles/libevent/.config
Normal file
@ -0,0 +1,5 @@
|
||||
# You can find the latest libevent archives here:
|
||||
#
|
||||
# https://github.com/libevent/libevent/releases/
|
||||
#
|
||||
LIBEVENT_SOURCE_URL=https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
|
@ -4,15 +4,13 @@ set -e
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
# Grab everything after the '=' character.
|
||||
DOWNLOAD_URL=$(grep -i LIBEVENT_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
|
||||
# Read the common configuration properties.
|
||||
DOWNLOAD_URL=`read_property LIBEVENT_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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user