blob: af334c8d4daeee46937c7f517144dc6a40611b1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
|