This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (36 loc) · 1.88 KB
/
Makefile
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
all: ${GITHUB_ORG-ARCHIVE-KEYRING}.gpg ${GITHUB_ORG-SIGNING-KEYRING}.gpg ${ORG}-experimental-keyring.gpg
GPG=gpg --no-default-keyring --no-auto-check-trustdb
# Create the keyrings on the user's system, since the standard
# ascii armoured export format is more stable than keyring files.
${GITHUB_ORG-ARCHIVE-KEYRING}.gpg:
$(GPG) --keyring ./${GITHUB_ORG-ARCHIVE-KEYRING}-temp.gpg \
--import keys-packaging/${ORG}-deb-packaging-key-*.asc
$(GPG) --keyring ./${GITHUB_ORG-ARCHIVE-KEYRING}-temp.gpg \
--output $@ --export
rm ${GITHUB_ORG-ARCHIVE-KEYRING}-temp.gpg ${GITHUB_ORG-ARCHIVE-KEYRING}-temp.gpg~
${GITHUB_ORG-EXPERIMENTAL-KEYRING}-keyring.gpg:
$(GPG) --keyring ./${GITHUB_ORG-EXPERIMENTAL-KEYRING}-keyring-temp.gpg \
--import keys-packaging/${ORG}-EXPERIMENTAL-deb-packaging-key-*.asc
$(GPG) --keyring ./${GITHUB_ORG-EXPERIMENTAL-KEYRING}-keyring-temp.gpg \
--output $@ --export
rm ${GITHUB_ORG-EXPERIMENTAL-KEYRING}-keyring-temp.gpg \
${GITHUB_ORG-EXPERIMENTAL-KEYRING}-keyring-temp.gpg~
${GITHUB_ORG-SIGNING-KEYRING}.gpg:
$(GPG) --keyring ./${GITHUB_ORG-SIGNING-KEYRING}-temp.gpg \
--import keys-signing/*.asc
$(GPG) --keyring ./${GITHUB_ORG-SIGNING-KEYRING}-temp.gpg \
--output $@ --export
rm ${GITHUB_ORG-SIGNING-KEYRING}-temp.gpg \
${GITHUB_ORG-SIGNING-KEYRING}-temp.gpg~
# Don't install the code-signing or experimental keyrings to
# /etc/apt/trusted.gpg.d/
install: ${GITHUB_ORG-ARCHIVE-KEYRING}.gpg ${GITHUB_ORG-SIGNING-KEYRING}.gpg
install -d $(DESTDIR)/etc/apt/trusted.gpg.d/
install -d $(DESTDIR)/usr/share/keyrings/
cp ${GITHUB_ORG-ARCHIVE-KEYRING}.gpg $(DESTDIR)/etc/apt/trusted.gpg.d/
cp ${GITHUB_ORG-ARCHIVE-KEYRING}.gpg $(DESTDIR)/usr/share/keyrings/
cp ${GITHUB_ORG-EXPERIMENTAL-KEYRING}-keyring.gpg $(DESTDIR)/usr/share/keyrings/
cp ${GITHUB_ORG-SIGNING-KEYRING}.gpg $(DESTDIR)/usr/share/keyrings/
clean:
rm -f ${ORG}-*.gpg ${ORG}-*.gpg~
.PHONY: install clean