6976163d1b
Don't track the binary trustedkeys.gpg but see it just as normal build product with the armored keys as source. This ensures we always ship those from TRUSTED_KEYS variable, not more, not less. Instead of the "gpg import+export in temporary home dir" just de-armor and concatenate them our self, that's what happens anyway. This could be even simplified by just using base64 -d on the pubkeys, after the non base64 stuff was trimmed, that would omit our need for gpg here completely. Thanks to Wolfgang B. for giving the idea to just do simple stuff :) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
31 lines
679 B
Makefile
31 lines
679 B
Makefile
|
|
DOCDIR=/usr/share/doc/pve-manager/
|
|
|
|
TRUSTED_KEYS= \
|
|
proxmox-release-5.x.pubkey \
|
|
proxmox-release-6.x.pubkey \
|
|
release@turnkeylinux.com.pubkey
|
|
|
|
all:
|
|
|
|
.PHONY: install
|
|
install: aplinfo.dat trustedkeys.gpg
|
|
install -D -m 0644 aplinfo.dat ${DESTDIR}${DOCDIR}/aplinfo.dat
|
|
install -D -m 0644 trustedkeys.gpg ${DESTDIR}${DOCDIR}/trustedkeys.gpg
|
|
|
|
.PHONY: update
|
|
update:
|
|
rm -f aplinfo.dat
|
|
wget http://download.proxmox.com/images/aplinfo-pve-6.dat -O aplinfo.dat.tmp
|
|
mv aplinfo.dat.tmp aplinfo.dat
|
|
|
|
%.gpg: %.pubkey
|
|
gpg --dearmor -o $@ $<
|
|
|
|
trustedkeys.gpg: ${TRUSTED_KEYS:.pubkey=.gpg}
|
|
cat $^ > $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *~ aplinfo.dat.gz aplinfo.dat.asc tempgpg *.gpg
|