[pmg-devel] [PATCH spamassassin 3/4] buildsys: only update sa-updates explicitly

Stoiko Ivanov s.ivanov at proxmox.com
Tue Jun 4 16:12:03 CEST 2019

Adding a dependency to ${SA_UPDATE_GPG_DIR}/.prepared caused make to
run the sa-updates.tgz recipe unless you had a ${SA_UPDATE_GPG_DIR} from
a previous run.

Since updating the spamassassin rules shipped with the package should probably
be only updated explicitly changing the dependency to an order-only one, stops
the extra sa-update buildstep.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 7f3bb53..71df225 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ ${SA_UPDATE_GPG_DIR}/.prepared: ${OPKGNAME}.tar.gz
 	rm sa-update-pubkey.txt
 	touch $@
-sa-updates.tgz: ${SA_UPDATE_GPG_DIR}/.prepared
+sa-updates.tgz: | ${SA_UPDATE_GPG_DIR}/.prepared
 	rm -rf updates.tmp
 	sa-update --gpghomedir ${SA_UPDATE_GPG_DIR} --updatedir updates.tmp --channel updates.spamassassin.org
 	tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt  --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ .

More information about the pmg-devel mailing list