]> git.proxmox.com Git - proxmox-spamassassin.git/blob - Makefile
fix dependencies for Debian wheezy
[proxmox-spamassassin.git] / Makefile
1
2 RELEASE=4.0
3
4 # howto add rule updates:
5 # edit paths ($srcdir) in changes.pl
6 # update changes.diff - verify changes!
7
8 # dig -t any 2.3.3.updates.spamassassin.org
9 # wget http://spamassassin.kluge.net/updates/501214.tar.gz
10 # wget http://spamassassin.kluge.net/updates/501214.tar.gz.asc
11 # gpg --verify 501214.tar.gz.asc 501214.tar.gz
12 #
13 # or just use: make sa-updates.tgz (from the last stable version)
14 # warning: start with an empty sa-updates.tgz, install the package,
15 # the run sa-update to generate the updates
16 #
17 # edit debin/rules to apply updates
18
19 PKGREL=2
20 SAVER=3.4.0
21 OPKGNAME = Mail-SpamAssassin-${SAVER}
22 NPKGNAME = proxmox-spamassassin_${SAVER}
23 DEB = proxmox-spamassassin_${SAVER}-${PKGREL}_amd64.deb
24
25 #${DEB}: ${OPKGNAME}.tar.gz
26 ${DEB}: ${OPKGNAME}.tar.gz sa-updates.tgz
27 -rm -rf ${OPKGNAME} ${NPKGNAME}
28 tar xzf ${OPKGNAME}.tar.gz
29 mv ${OPKGNAME} ${NPKGNAME}
30 cp -a debian ${NPKGNAME}
31 cd ${NPKGNAME}; dpkg-buildpackage -us -uc -rfakeroot
32 -rm -rf ${OPKGNAME} ${NPKGNAME}
33 lintian ${DEB}
34
35
36 sa-updates.tgz:
37 -sa-update --updatedir updates.tmp --channel updates.spamassassin.org
38 tar cvzf sa-updates.tgz --exclude=local.cf --exclude=regression_tests.cf --exclude=*.txt --exclude=MIRRORED.BY -C updates.tmp/updates_spamassassin_org/ .
39
40 .PHONY: upload
41 upload: ${DEB}
42 umount /proxmox/${RELEASE}; mount /proxmox/${RELEASE} -o rw
43 mkdir -p /proxmox/${RELEASE}/extra
44 rm -rf /proxmox/${RELEASE}/extra/Packages*
45 rm -rf /proxmox/${RELEASE}/extra/proxmox-spamassassin_*.deb
46 cp ${DEB} /proxmox/${RELEASE}/extra
47 cd /proxmox/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
48 umount /proxmox/${RELEASE}; mount /proxmox/${RELEASE} -o ro
49
50
51 CLEANFILES = *~ debian/*~ *.deb proxmox-spamassassin_* \
52 updates.tmp
53
54 .PHONY: clean
55 clean:
56 rm -rf ${CLEANFILES}