]> git.proxmox.com Git - proxmox-spamassassin.git/blob - Makefile
bump version to 3.4.1-4
[proxmox-spamassassin.git] / Makefile
1 RELEASE=4.1
2
3 # howto add rule updates:
4 # edit paths ($srcdir) in changes.pl
5 # update changes.diff - verify changes!
6
7 # dig -t any 2.3.3.updates.spamassassin.org
8 # wget http://spamassassin.kluge.net/updates/501214.tar.gz
9 # wget http://spamassassin.kluge.net/updates/501214.tar.gz.asc
10 # gpg --verify 501214.tar.gz.asc 501214.tar.gz
11 #
12 # or just use: make sa-updates.tgz (from the last stable version)
13 # warning: start with an empty sa-updates.tgz, install the package,
14 # the run sa-update to generate the updates
15 #
16 # Note: we also add KAM.cf from
17 # http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf
18 #
19 # edit debin/rules to apply updates
20
21 PKGREL=4
22 SAVER=3.4.1
23 OPKGNAME = Mail-SpamAssassin-${SAVER}
24 NPKGNAME = proxmox-spamassassin_${SAVER}
25 DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
26
27 EXTRA_RULES = KAM.cf
28
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}
39 lintian ${DEB}
40
41 KAM.cf:
42 wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O $@.tmp
43 mv KAM.cf.tmp $@
44
45 sa-updates.tgz:
46 -sa-update --updatedir updates.tmp --channel updates.spamassassin.org
47 tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ .
48
49 .PHONY: upload
50 upload: ${DEB}
51 umount /proxmox/${RELEASE}; mount /proxmox/${RELEASE} -o rw
52 mkdir -p /proxmox/${RELEASE}/extra
53 rm -rf /proxmox/${RELEASE}/extra/Packages*
54 rm -rf /proxmox/${RELEASE}/extra/proxmox-spamassassin_*.deb
55 cp ${DEB} /proxmox/${RELEASE}/extra
56 cd /proxmox/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
57 umount /proxmox/${RELEASE}; mount /proxmox/${RELEASE} -o ro
58
59
60 CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* \
61 updates.tmp
62
63 .PHONY: clean
64 clean:
65 rm -rf ${CLEANFILES}