testing: Record strongSwan version when building from source tree
This commit is contained in:
@@ -53,6 +53,17 @@ log_action "Remove SWID tags of previous versions"
|
|||||||
execute_chroot 'find /usr/local/share/regid.2004-03.org.strongswan -name *.swidtag -delete'
|
execute_chroot 'find /usr/local/share/regid.2004-03.org.strongswan -name *.swidtag -delete'
|
||||||
|
|
||||||
echo "Building and installing strongSwan"
|
echo "Building and installing strongSwan"
|
||||||
|
|
||||||
|
log_action "Determine strongSwan version"
|
||||||
|
desc=`git -C $SWANDIR describe --dirty`
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
SWANVERSION="$desc (`git -C $SWANDIR rev-parse --abbrev-ref HEAD`)"
|
||||||
|
else
|
||||||
|
SWANVERSION="`cat $SWANDIR/configure.ac | sed -n '/^AC_INIT/{ s/.*,\[\(.*\)\])$/\1/p }'`"
|
||||||
|
fi
|
||||||
|
echo "$SWANVERSION" > $SHAREDDIR/.strongswan-version
|
||||||
|
log_status 0
|
||||||
|
|
||||||
log_action "Preparing source tree"
|
log_action "Preparing source tree"
|
||||||
execute_chroot 'autoreconf -i /root/strongswan'
|
execute_chroot 'autoreconf -i /root/strongswan'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user