Add download target for SA sources

add a convenience target to download the current SA tarball and corresponding
gpg-signature and verify it with SpamAssassin's release key [0].

[0] https://www.apache.org/dist/spamassassin/KEYS
This commit is contained in:
Stoiko Ivanov 2020-02-03 13:57:39 +01:00 committed by Fabian Grünbichler
parent c9aaa4d5e9
commit ac5080f95e
2 changed files with 8 additions and 1 deletions

View File

@ -53,6 +53,13 @@ ${NPKGNAME}: sa-updates.tgz ${EXTRA_RULES} ${NPKGNAME}.orig.tar.gz
mkdir -p $@/debian/tree/usr/share/spamassassin-extra
cp -a ${EXTRA_RULES} $@/debian/tree/usr/share/spamassassin-extra
${OPKGNAME}.tar.gz:
rm -f $@*
curl -L -o '$@#1.tmp' 'https://www-eu.apache.org/dist/spamassassin/source/$@{,.asc}'
mv $@.tmp $@
mv $@.asc.tmp $@.asc
gpgv --keyring ./sa-releasekey.gpg $@.asc $@
KAM.cf:
wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O $@.tmp
mv KAM.cf.tmp $@
@ -75,7 +82,7 @@ update-sa: ${SA_UPDATE_GPG_DIR}/.prepared
upload: ${DEB}
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* updates.tmp ${SA_UPDATE_GPG_DIR}
CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* updates.tmp ${SA_UPDATE_GPG_DIR} ${OPKGNAME}.tar.gz.*
.PHONY: clean
clean:

BIN
sa-releasekey.gpg Normal file

Binary file not shown.