# warning: start with an empty sa-updates.tgz, install the package,
# the run sa-update to generate the updates
#
+# Note: we also add KAM.cf from
+# http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf
+#
# edit debin/rules to apply updates
PKGREL=51
lintian ${DEB}
-sa-updates.tgz:
- -sa-update --updatedir updates.tmp --channel updates.spamassassin.org
+sa-updates.tgz:
+ rm -rf updates.tmp
+ sa-update --updatedir updates.tmp --channel updates.spamassassin.org
+ wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O updates.tmp/KAM.cf
+ mv updates.tmp/KAM.cf updates.tmp/updates_spamassassin_org/ # atomic update
tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ .
.PHONY: upload