]> git.proxmox.com Git - proxmox-spamassassin.git/blobdiff - Makefile
bump version to 3.4.1-4
[proxmox-spamassassin.git] / Makefile
index 6baf00bb661ea4edcfe94be3002f170d1f986662..f135d3f12118facf2a0024a6f49587f1110cd5eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,24 +13,34 @@ RELEASE=4.1
 # 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=2
+PKGREL=4
 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: 
        -sa-update --updatedir updates.tmp --channel updates.spamassassin.org