]>
Commit | Line | Data |
---|---|---|
7b922beb DM |
1 | # howto add rule updates: |
2 | # edit paths ($srcdir) in changes.pl | |
3 | # update changes.diff - verify changes! | |
4 | ||
c69aab15 | 5 | # dig -t any 1.4.3.updates.spamassassin.org |
7b922beb DM |
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 | |
9 | # | |
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 | |
13 | # | |
d2ab4c52 DM |
14 | # Note: we also add KAM.cf from |
15 | # http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf | |
16 | # | |
7b922beb DM |
17 | # edit debin/rules to apply updates |
18 | ||
bbb3305c | 19 | PKGREL=54 |
71db29b7 | 20 | SAVER=3.4.1 |
7b922beb DM |
21 | OPKGNAME = Mail-SpamAssassin-${SAVER} |
22 | NPKGNAME = proxmox-spamassassin_${SAVER} | |
23 | DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb | |
24 | ||
7a367109 DM |
25 | EXTRA_RULES = KAM.cf |
26 | ||
7b922beb | 27 | #${DEB}: ${OPKGNAME}.tar.gz |
7a367109 | 28 | ${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz ${EXTRA_RULES} |
7b922beb DM |
29 | -rm -rf ${OPKGNAME} ${NPKGNAME} |
30 | tar xzf ${OPKGNAME}.tar.gz | |
31 | mv ${OPKGNAME} ${NPKGNAME} | |
32 | cp -a debian ${NPKGNAME} | |
7a367109 DM |
33 | mkdir ${NPKGNAME}/extra_rules |
34 | cp ${EXTRA_RULES} ${NPKGNAME}/extra_rules | |
7b922beb DM |
35 | cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot |
36 | -rm -rf ${OPKGNAME} ${NPKGNAME} | |
37 | lintian ${DEB} | |
38 | ||
7a367109 DM |
39 | KAM.cf: |
40 | wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O $@.tmp | |
41 | mv KAM.cf.tmp $@ | |
7b922beb | 42 | |
d2ab4c52 DM |
43 | sa-updates.tgz: |
44 | rm -rf updates.tmp | |
45 | sa-update --updatedir updates.tmp --channel updates.spamassassin.org | |
7b922beb DM |
46 | tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ . |
47 | ||
48 | .PHONY: upload | |
49 | upload: ${DEB} | |
f050a4b2 | 50 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch |
7b922beb | 51 | |
75012d20 | 52 | CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* updates.tmp |
7b922beb DM |
53 | |
54 | .PHONY: clean | |
55 | clean: | |
56 | rm -rf ${CLEANFILES} | |
19fb7ca6 DM |
57 | |
58 | .PHONY: dinstall | |
59 | dinstall: ${DEB} | |
60 | dpkg -i ${DEB} |