Use local configuration (Apache Felix).
This commit is contained in:
parent
74fe36a97a
commit
ab3d050562
@ -41,12 +41,6 @@ SYSLINUX_SOURCE_URL=http://kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.0
|
|||||||
# #
|
# #
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
# You can find the latest Apache Felix source bundles here:
|
|
||||||
#
|
|
||||||
# http://felix.apache.org
|
|
||||||
#
|
|
||||||
FELIX_SOURCE_URL=http://archive.apache.org/dist/felix/org.apache.felix.main.distribution-5.6.10.tar.gz
|
|
||||||
|
|
||||||
# You can find the latest fio source bundles here:
|
# You can find the latest fio source bundles here:
|
||||||
#
|
#
|
||||||
# https://github.com/axboe/fio/releases
|
# https://github.com/axboe/fio/releases
|
||||||
|
5
src/minimal_overlay/bundles/felix/.config
Normal file
5
src/minimal_overlay/bundles/felix/.config
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# You can find the latest Apache Felix source bundles here:
|
||||||
|
#
|
||||||
|
# http://felix.apache.org
|
||||||
|
#
|
||||||
|
FELIX_SOURCE_URL=http://archive.apache.org/dist/felix/org.apache.felix.main.distribution-5.6.10.tar.gz
|
@ -4,15 +4,13 @@ set -e
|
|||||||
|
|
||||||
. ../../common.sh
|
. ../../common.sh
|
||||||
|
|
||||||
# Grab everything after the '=' character.
|
# Read the common configuration properties.
|
||||||
DOWNLOAD_URL=$(grep -i FELIX_SOURCE_URL $MAIN_SRC_DIR/.config | cut -f2 -d'=')
|
DOWNLOAD_URL=`read_property FELIX_SOURCE_URL`
|
||||||
|
USE_LOCAL_SOURCE=`read_property USE_LOCAL_SOURCE`
|
||||||
|
|
||||||
# Grab everything after the last '/' character.
|
# Grab everything after the last '/' character.
|
||||||
ARCHIVE_FILE=${DOWNLOAD_URL##*/}
|
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
|
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."
|
echo "Source bundle $MAIN_SRC_DIR/source/overlay/$ARCHIVE_FILE is missing and will be downloaded."
|
||||||
USE_LOCAL_SOURCE="false"
|
USE_LOCAL_SOURCE="false"
|
||||||
|
@ -8,6 +8,7 @@ echo "Removing old 'Apache Felix' artifacts. This may take a while."
|
|||||||
rm -rf $DEST_DIR
|
rm -rf $DEST_DIR
|
||||||
mkdir -p $DEST_DIR/opt/felix
|
mkdir -p $DEST_DIR/opt/felix
|
||||||
mkdir -p $DEST_DIR/bin
|
mkdir -p $DEST_DIR/bin
|
||||||
|
mkdir -p $DEST_DIR/etc/autorun
|
||||||
|
|
||||||
cd $WORK_DIR/overlay/felix
|
cd $WORK_DIR/overlay/felix
|
||||||
cd $(ls -d felix-*)
|
cd $(ls -d felix-*)
|
||||||
@ -23,6 +24,7 @@ CEOF
|
|||||||
chmod +rx bin/felix-start.sh
|
chmod +rx bin/felix-start.sh
|
||||||
|
|
||||||
cp -r * $DEST_DIR/opt/felix
|
cp -r * $DEST_DIR/opt/felix
|
||||||
|
cp $SRC_DIR/90_felix.sh $DEST_DIR/etc/autorun
|
||||||
|
|
||||||
cd $DEST_DIR
|
cd $DEST_DIR
|
||||||
|
|
||||||
|
8
src/minimal_overlay/bundles/felix/90_felix.sh
Executable file
8
src/minimal_overlay/bundles/felix/90_felix.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
dropbear
|
||||||
|
|
||||||
|
cat << CEOF
|
||||||
|
[1m You can start Apache Felix by executing 'felix-start'. You can stop
|
||||||
|
Apache Felix by executing 'stop 0' from the Gogo shell.[0m
|
||||||
|
CEOF
|
Loading…
x
Reference in New Issue
Block a user