]> git.proxmox.com Git - proxmox-spamassassin.git/blob - Makefile
bump package release to -50
[proxmox-spamassassin.git] / Makefile
1 RELEASE=5.0
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 # edit debin/rules to apply updates
17
18 PKGREL=50
19 SAVER=3.4.1
20 OPKGNAME = Mail-SpamAssassin-${SAVER}
21 NPKGNAME = proxmox-spamassassin_${SAVER}
22 DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
23
24 #${DEB}: ${OPKGNAME}.tar.gz
25 ${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz
26 -rm -rf ${OPKGNAME} ${NPKGNAME}
27 tar xzf ${OPKGNAME}.tar.gz
28 mv ${OPKGNAME} ${NPKGNAME}
29 cp -a debian ${NPKGNAME}
30 cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
31 -rm -rf ${OPKGNAME} ${NPKGNAME}
32 lintian ${DEB}
33
34
35 sa-updates.tgz:
36 -sa-update --updatedir updates.tmp --channel updates.spamassassin.org
37 tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ .
38
39 .PHONY: upload
40 upload: ${DEB}
41 # fixme
42
43 CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* \
44 updates.tmp
45
46 .PHONY: clean
47 clean:
48 rm -rf ${CLEANFILES}