[PATCH 1 of 3] (issue179) Write signature date in linux installer and add to test script
Wald Commits
scm-commit at wald.intevation.org
Mon Nov 24 14:04:38 CET 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1416829249 -3600
# Node ID 8c829345ecfa6db74c3d8e7876718fcd0e66c714
# Parent 3d7ddf6984807fc31b0a9875a90044f14ba5aad1
(issue179) Write signature date in linux installer and add to test script
diff -r 3d7ddf698480 -r 8c829345ecfa packaging/linux-installer-common.inc.in
--- a/packaging/linux-installer-common.inc.in Fri Nov 21 18:33:58 2014 +0100
+++ b/packaging/linux-installer-common.inc.in Mon Nov 24 12:40:49 2014 +0100
@@ -22,12 +22,14 @@
HELPNAMES_STATIC="###HELPNAMES_STATIC###"
HELPNAMES_IMG="###HELPNAMES_IMG###"
LICENSENAMES="###LICENSES###"
+SIGNATURE_DATE="###SIGNATURE_DATE###"
ARCH="###ARCH###"
declare -A instcfg oldinstcfg
declare inst_default_prefix instdata_path instcfg_path instcfg_file
instcfg=(
[TIMESTMP]=`date -u +%Y%m%d%H%M%S`
+ [SIG_DATE]=$SIGNATURE_DATE
[VERSION]='@PROJECT_VERSION@'
[PREFIX]=''
)
diff -r 3d7ddf698480 -r 8c829345ecfa ui/tests/append-sig.sh
--- a/ui/tests/append-sig.sh Fri Nov 21 18:33:58 2014 +0100
+++ b/ui/tests/append-sig.sh Mon Nov 24 12:40:49 2014 +0100
@@ -1,3 +1,6 @@
#!/bin/bash
-cp $2 $3
-echo -e \\r\\nS:$(openssl dgst -sha256 -sign $1 < $2 | base64 -w0) >> $3
+cp "$2" "$3"
+CUR_DT=$(date +%s)
+sed -i "s/###SIGNATURE_DATE###/${CUR_DT}/" "$3"
+echo -e \\r\\nS_DT:$CUR_DT >> "$3"
+echo -e \\r\\nS:$(openssl dgst -sha256 -sign "$1" < "$2" | base64 -w0) >> "$3"
More information about the Trustbridge-commits
mailing list