]> git.proxmox.com Git - proxmox-spamassassin.git/blame - Makefile
bump version to 3.4.1-4
[proxmox-spamassassin.git] / Makefile
CommitLineData
71db29b7 1RELEASE=4.1
7b922beb
DM
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#
61b2da8e
DM
16# Note: we also add KAM.cf from
17# http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf
18#
7b922beb
DM
19# edit debin/rules to apply updates
20
1e3da803 21PKGREL=4
71db29b7 22SAVER=3.4.1
7b922beb
DM
23OPKGNAME = Mail-SpamAssassin-${SAVER}
24NPKGNAME = proxmox-spamassassin_${SAVER}
25DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
26
61b2da8e
DM
27EXTRA_RULES = KAM.cf
28
7b922beb 29#${DEB}: ${OPKGNAME}.tar.gz
61b2da8e 30${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz ${EXTRA_RULES}
7b922beb
DM
31 -rm -rf ${OPKGNAME} ${NPKGNAME}
32 tar xzf ${OPKGNAME}.tar.gz
33 mv ${OPKGNAME} ${NPKGNAME}
34 cp -a debian ${NPKGNAME}
61b2da8e
DM
35 mkdir ${NPKGNAME}/extra_rules
36 cp ${EXTRA_RULES} ${NPKGNAME}/extra_rules
7b922beb
DM
37 cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
38 -rm -rf ${OPKGNAME} ${NPKGNAME}
39 lintian ${DEB}
40
61b2da8e
DM
41KAM.cf:
42 wget http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf -O $@.tmp
43 mv KAM.cf.tmp $@
7b922beb
DM
44
45sa-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
50upload: ${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
60CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* \
61 updates.tmp
62
63.PHONY: clean
64clean:
65 rm -rf ${CLEANFILES}