aboutsummaryrefslogtreecommitdiff
path: root/bin/debian-keyring-setup
blob: 7e00e89f5df0446b262165c8352b417fc808eaf2 (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
#!/bin/bash
#
# Setup a local debian-keyring repository.
#

# Parameters
CWD="`pwd`"

# Make sure the keyring repository is initialized
git submodule update --init || exit 1

# Go there
cd keyring

# Build the keyring
make || exit 1

# Symlink
ln -s output/keyrings/debian-keyring.gpg output/keyrings/debian-keyring.gpg/trustedkeys.gpg || exit 1
ln -s output/keyrings output/.gnupg                                                         || exit 1

# Write devscripts configuration
cat <<EOF > output/.devscripts
DSCVERIFY_KEYRINGS="/usr/share/keyrings/debian-keyring.gpg:/usr/share/keyrings/debian-maintainers.gpg:$CWD/keyrings/debian-keyring.gpg"
EOF