--help (-h) show usage information
--all (-a) build/install all software, not only strongSwan
--clean (-c) use a new strongSwan build directory
+ --quick-rebuild (-q) skip running autoreconf and configure
--guest NAME (-g) only install in a specific guest image
--no-guests (-n) don't build any guest images after the root image
--replace (-r) replace the root image (implies --all)
ALL_RECIPES=
CLEAN=
+QUICK_REBUILD=
GUEST=
NO_GUESTS=
REPLACE=
-c|--clean)
CLEAN=1
;;
+ -q|--quick-rebuild)
+ QUICK_REBUILD=1
+ ;;
-g|--guest)
if [ "$2" ]; then
GUEST=$2
echo "$version" > $SHAREDDIR/.strongswan-version
log_status 0
- log_action "Preparing source tree"
- execute_chroot 'autoreconf -i /root/strongswan'
+ if [ -z "$QUICK_REBUILD" ]; then
+ log_action "Preparing source tree"
+ execute_chroot 'autoreconf -i /root/strongswan'
+ fi
fi
RECPDIR=$DIR/recipes
log_action "Installing from recipe $r"
if [[ $r == *strongswan.mk && -z "$TARBALL" ]]; then
cp $RECPDIR/$r $SHAREDDIR/build-strongswan
- execute_chroot "make SRCDIR=/root/strongswan BUILDDIR=/root/shared/build-strongswan -f /root/shared/build-strongswan/$r"
+ execute_chroot "make SRCDIR=/root/strongswan BUILDDIR=/root/shared/build-strongswan QUICK_REBUILD=$QUICK_REBUILD -f /root/shared/build-strongswan/$r"
else
cp $RECPDIR/$r ${LOOPDIR}/root/shared/compile
execute_chroot "make SWANVERSION=$TARBALL -C /root/shared/compile -f $r"
echo "$(SWANVERSION)" > /root/shared/.strongswan-version
configure: $(BUILDDIR)
- cd $(BUILDDIR) && $(DIR)/configure $(CONFIG_OPTS)
+ [ -n "$(QUICK_REBUILD)" ] || (cd $(BUILDDIR) && $(DIR)/configure $(CONFIG_OPTS))
-build: configure
- cd $(BUILDDIR) && make -j $(NUM_CPUS)
-
-install: build
+install: configure
cd $(BUILDDIR) && make -j install && \
cd $(DIR)/src/libcharon/plugins/vici/python && python3 setup.py install