include KAM.cf, install to /usr/share/spamassassin-extra/

This commit is contained in:
Dietmar Maurer 2017-12-04 10:13:24 +01:00
parent 69e3bc9994
commit 61b2da8e25
3 changed files with 5355 additions and 1 deletions

5340
KAM.cf Normal file

File diff suppressed because it is too large Load Diff

View File

@ -13,6 +13,9 @@ RELEASE=4.1
# warning: start with an empty sa-updates.tgz, install the package, # warning: start with an empty sa-updates.tgz, install the package,
# the run sa-update to generate the updates # 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 # edit debin/rules to apply updates
PKGREL=3 PKGREL=3
@ -21,16 +24,23 @@ OPKGNAME = Mail-SpamAssassin-${SAVER}
NPKGNAME = proxmox-spamassassin_${SAVER} NPKGNAME = proxmox-spamassassin_${SAVER}
DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
EXTRA_RULES = KAM.cf
#${DEB}: ${OPKGNAME}.tar.gz #${DEB}: ${OPKGNAME}.tar.gz
${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz ${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz ${EXTRA_RULES}
-rm -rf ${OPKGNAME} ${NPKGNAME} -rm -rf ${OPKGNAME} ${NPKGNAME}
tar xzf ${OPKGNAME}.tar.gz tar xzf ${OPKGNAME}.tar.gz
mv ${OPKGNAME} ${NPKGNAME} mv ${OPKGNAME} ${NPKGNAME}
cp -a debian ${NPKGNAME} cp -a debian ${NPKGNAME}
mkdir ${NPKGNAME}/extra_rules
cp ${EXTRA_RULES} ${NPKGNAME}/extra_rules
cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
-rm -rf ${OPKGNAME} ${NPKGNAME} -rm -rf ${OPKGNAME} ${NPKGNAME}
lintian ${DEB} lintian ${DEB}
KAM.cf:
wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O $@.tmp
mv KAM.cf.tmp $@
sa-updates.tgz: sa-updates.tgz:
-sa-update --updatedir updates.tmp --channel updates.spamassassin.org -sa-update --updatedir updates.tmp --channel updates.spamassassin.org

4
debian/rules vendored
View File

@ -67,6 +67,10 @@ install-stamp:
tar xzvf ../sa-updates.tgz -C $(TMP)/usr/share/spamassassin/ tar xzvf ../sa-updates.tgz -C $(TMP)/usr/share/spamassassin/
#patch -d $(TMP)/usr/share/spamassassin <../72_active.cf.diff #patch -d $(TMP)/usr/share/spamassassin <../72_active.cf.diff
# install extra rules
mkdir $(TMP)/usr/share/spamassassin-extra/
install -m 0644 extra_rules/KAM.cf $(TMP)/usr/share/spamassassin-extra/
# As this is a architecture dependent package, we are not # As this is a architecture dependent package, we are not
# supposed to install stuff to /usr/share. MakeMaker creates # supposed to install stuff to /usr/share. MakeMaker creates
# the dirs, we delete them from the deb: # the dirs, we delete them from the deb: