]> git.proxmox.com Git - proxmox-spamassassin.git/blame - Makefile
add fix for SA bug 7231
[proxmox-spamassassin.git] / Makefile
CommitLineData
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#
14# edit debin/rules to apply updates
15
523486cc 16PKGREL=50
71db29b7 17SAVER=3.4.1
7b922beb
DM
18OPKGNAME = Mail-SpamAssassin-${SAVER}
19NPKGNAME = proxmox-spamassassin_${SAVER}
20DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
21
22#${DEB}: ${OPKGNAME}.tar.gz
23${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz
24 -rm -rf ${OPKGNAME} ${NPKGNAME}
25 tar xzf ${OPKGNAME}.tar.gz
26 mv ${OPKGNAME} ${NPKGNAME}
27 cp -a debian ${NPKGNAME}
28 cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
29 -rm -rf ${OPKGNAME} ${NPKGNAME}
30 lintian ${DEB}
31
32
33sa-updates.tgz:
34 -sa-update --updatedir updates.tmp --channel updates.spamassassin.org
35 tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ .
36
37.PHONY: upload
38upload: ${DEB}
f050a4b2 39 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
7b922beb
DM
40
41CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* \
42 updates.tmp
43
44.PHONY: clean
45clean:
46 rm -rf ${CLEANFILES}
19fb7ca6
DM
47
48.PHONY: dinstall
49dinstall: ${DEB}
50 dpkg -i ${DEB}