1 # howto add rule updates:
2 # edit paths ($srcdir) in changes.pl
3 # update changes.diff - verify changes!
5 # dig -t any 2.4.3.updates.spamassassin.org
6 # wget http://spamassassin.kluge.net/updates/501214.tar.gz
7 # wget http://spamassassin.kluge.net/updates/501214.tar.gz.asc
8 # gpg --verify 501214.tar.gz.asc 501214.tar.gz
10 # or just use: make sa-updates.tgz (from the last stable version)
11 # warning: start with an empty sa-updates.tgz, install the package,
12 # the run sa-update to generate the updates
14 # Note: we also add KAM.cf from
15 # http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf
17 # edit debin/rules to apply updates
21 OPKGNAME
= Mail-SpamAssassin-
${SAVER}
22 NPKGNAME
= proxmox-spamassassin_
${SAVER}
23 DEB
= proxmox-spamassassin_
${SAVER}-${PKGREL}_amd64.deb
27 SA_UPDATE_GPG_DIR
= .sa-update-gpghome
29 #${DEB}: ${OPKGNAME}.tar.gz
30 ${DEB}: ${OPKGNAME}.
tar.gz sa-updates.tgz
${EXTRA_RULES}
31 -rm -rf
${OPKGNAME} ${NPKGNAME}
32 tar xzf
${OPKGNAME}.
tar.gz
33 mv
${OPKGNAME} ${NPKGNAME}
34 cp
-a debian
${NPKGNAME}
35 mkdir
${NPKGNAME}/extra_rules
36 cp
${EXTRA_RULES} ${NPKGNAME}/extra_rules
37 cd
${NPKGNAME}; dpkg-buildpackage
-us
-uc
-rfakeroot
38 -rm -rf
${OPKGNAME} ${NPKGNAME}
42 wget http
://www.pccc.com
/downloads
/SpamAssassin
/contrib
/KAM.cf
-O
$@.tmp
45 ${SA_UPDATE_GPG_DIR}/.prepared
: ${OPKGNAME}.
tar.gz
46 rm -rf
${SA_UPDATE_GPG_DIR}
47 mkdir
--mode
=0700 -p
${SA_UPDATE_GPG_DIR}
48 tar --strip-components
2 -xzf
${OPKGNAME}.
tar.gz
${OPKGNAME}/rules
/sa-update-pubkey.txt
49 sa-update
--gpghomedir
${SA_UPDATE_GPG_DIR} --import sa-update-pubkey.txt
50 rm sa-update-pubkey.txt
53 sa-updates.tgz
: |
${SA_UPDATE_GPG_DIR}/.prepared
55 sa-update
--gpghomedir
${SA_UPDATE_GPG_DIR} --updatedir updates.tmp
--channel updates.spamassassin.org
56 tar cvzf sa-updates.tgz
--exclude
=local.cf
--exclude
=regression_tests.cf
--exclude
=*.txt
--exclude
=MIRRORED.BY
-C updates.tmp
/updates_spamassassin_org
/ .
60 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist stretch
62 CLEANFILES
= *~ debian
/*~
*.deb proxmox-spamassassin_
* updates.tmp
${SA_UPDATE_GPG_DIR}