]> git.proxmox.com Git - proxmox-spamassassin.git/blobdiff - Makefile
update KAM.cf
[proxmox-spamassassin.git] / Makefile
index b949c9637238ca5735e4564d4b055d20188bd8a8..5bc3d4f8103b2c394de090ecc29b3e5072e47acd 100644 (file)
--- a/Makefile
+++ b/Makefile
 #
 # edit debin/rules to apply updates
 
-PKGREL=52
+PKGREL=54
 SAVER=3.4.1
 OPKGNAME = Mail-SpamAssassin-${SAVER}
 NPKGNAME = proxmox-spamassassin_${SAVER}
 DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
 
+EXTRA_RULES = KAM.cf
+
 #${DEB}: ${OPKGNAME}.tar.gz
-${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz
+${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz ${EXTRA_RULES}
        -rm -rf ${OPKGNAME} ${NPKGNAME}
        tar xzf ${OPKGNAME}.tar.gz
        mv ${OPKGNAME} ${NPKGNAME}
        cp -a debian ${NPKGNAME}
+       mkdir ${NPKGNAME}/extra_rules
+       cp ${EXTRA_RULES} ${NPKGNAME}/extra_rules
        cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
        -rm -rf ${OPKGNAME} ${NPKGNAME}
        lintian ${DEB}
 
+KAM.cf:
+       wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O $@.tmp
+       mv KAM.cf.tmp $@
 
 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
 upload: ${DEB}
        tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
 
-CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_*         \
-       updates.tmp
+CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* updates.tmp
 
 .PHONY: clean
 clean: