summaryrefslogtreecommitdiffstats
path: root/bin/debsign.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/debsign.sh')
-rwxr-xr-xbin/debsign.sh69
1 files changed, 69 insertions, 0 deletions
diff --git a/bin/debsign.sh b/bin/debsign.sh
new file mode 100755
index 0000000..af334c8
--- /dev/null
+++ b/bin/debsign.sh
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+set -e
+
+for CHANGES in *.changes
+do
+ if [ ! -e "${CHANGES}" ]
+ then
+ continue
+ fi
+
+ DISTRIBUTION="$(grep -m1 '^Distribution: ' ${CHANGES} | awk '{ print $2 }')"
+
+ case "${DISTRIBUTION}" in
+ artax|artax-security|artax-updates|artax-lts|artax-extras)
+ DESCRIPTION="Progress Linux 1 (artax) Archive Key"
+ KEY="F5BE3737078C3235"
+ ;;
+
+ artax-backports*)
+ DESCRIPTION="Progress Linux 1+ (artax-backports) Archive Key"
+ KEY="3C39F3949268F7A7"
+ ;;
+
+ baureo|baureo-security|baureo-updates|baureo-lts|baureo-extras)
+ DESCRIPTION="Progress Linux 2 (baureo) Archive Key"
+ KEY="36B53C8861FD101F"
+ ;;
+
+ baureo-backports*)
+ DESCRIPTION="Progress Linux 2+ (baureo-backports) Archive Key"
+ KEY="03DB4D28C21BF7BD"
+ ;;
+
+ cairon|cairon-security|cairon-updates|cairon-lts|cairon-extras)
+ DESCRIPTION="Progress Linux 3 (cairon) Archive Key"
+ KEY="D55976A2ABDC1FDE"
+ ;;
+
+ cairon-backports*)
+ DESCRIPTION="Progress Linux 3+ (cairon-backports) Archive Key"
+ KEY="65D1668551C0BCFC"
+ ;;
+
+ dschinn*)
+ DESCRIPTION="Progress Linux 4 (dschinn) Archive Key"
+ KEY="C77F83EA"
+ ;;
+
+ *)
+ # Debian
+ DESCRIPTION="Daniel Baumann (2014) Key"
+ KEY="55CF1BF986ABB9C7"
+ ;;
+ esac
+
+ # FIXME: BFH
+
+ DSC="$(echo ${FILE} | sed -e 's|.changes$|.dsc|')"
+
+ if [ -e "${DSC}" ]
+ then
+ echo "Signing ${DSC} with: ${DESCRIPTION}"
+ debsign -k${KEY} --re-sign ${DSC}
+ fi
+
+ echo "Signing ${CHANGES} with: ${DESCRIPTION}"
+ debsign -k${KEY} --re-sign ${CHANGES}
+done