1 include /usr
/share
/dpkg
/pkg-info.mk
3 # howto add rule updates:
5 # edit paths ($srcdir) in changes.pl
6 # update changes.diff - verify changes!
8 # dig -t any 3.4.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
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
17 # Note: we also add KAM.cf from
18 # http://www.pccc.com/downloads/SpamAssassin/contrib/KAM.cf
20 # edit debin/rules to apply updates
22 OPKGNAME
= Mail-SpamAssassin-
${DEB_VERSION_UPSTREAM}
23 NPKGNAME
= proxmox-spamassassin_
${DEB_VERSION_UPSTREAM}
24 DEB
= proxmox-spamassassin_
${DEB_VERSION_UPSTREAM_REVISION}_amd64.deb
25 DSC
= proxmox-spamassassin_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
29 SA_UPDATE_GPG_DIR
= .sa-update-gpghome
34 cd
${NPKGNAME}; dpkg-buildpackage
-b
-us
-uc
-rfakeroot
40 cd
${NPKGNAME}; dpkg-buildpackage
-S
-us
-uc
-rfakeroot
-d
43 .PHONY
: update-upstream
44 update-upstream
: ${OPKGNAME}.
tar.gz
47 mv
${OPKGNAME} upstream
49 ${NPKGNAME}.orig.
tar.gz
: upstream
/
51 cp
-a upstream
${NPKGNAME}
52 tar -czf
$@
${NPKGNAME}
54 ${NPKGNAME}: sa-updates
${EXTRA_RULES} ${NPKGNAME}.orig.
tar.gz
56 mkdir
-p
$@
/debian
/tree
/usr
/share
/spamassassin
57 rsync
-av sa-updates
/ $@
/debian
/tree
/usr
/share
/spamassassin
58 mkdir
-p
$@
/debian
/tree
/usr
/share
/spamassassin-extra
59 cp
-a
${EXTRA_RULES} $@
/debian
/tree
/usr
/share
/spamassassin-extra
63 curl
-L
-o
'$@#1.tmp' 'https://www-eu.apache.org/dist/spamassassin/source/$@{,.asc}'
66 gpgv
--keyring .
/sa-releasekey.gpg
$@.asc
$@
69 wget https
://www.pccc.com
/downloads
/SpamAssassin
/contrib
/KAM.cf
-O
$@.tmp
72 ${SA_UPDATE_GPG_DIR}/.prepared
: ${OPKGNAME}.
tar.gz
73 rm -rf
${SA_UPDATE_GPG_DIR}
74 mkdir
--mode
=0700 -p
${SA_UPDATE_GPG_DIR}
75 tar --strip-components
2 -xzf
${OPKGNAME}.
tar.gz
${OPKGNAME}/rules
/sa-update-pubkey.txt
76 sa-update
--gpghomedir
${SA_UPDATE_GPG_DIR} --import sa-update-pubkey.txt
77 rm sa-update-pubkey.txt
81 update-sa
: ${SA_UPDATE_GPG_DIR}/.prepared
83 sa-update
--gpghomedir
${SA_UPDATE_GPG_DIR} --updatedir updates.tmp
--channel updates.spamassassin.org
84 rsync
-av
--delete
--exclude
=local.cf
--exclude
=regression_tests.cf
--exclude
=*.txt
--exclude
=MIRRORED.BY updates.tmp
/updates_spamassassin_org
/ sa-updates
88 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist stretch
90 .PHONY
: clean distclean
92 rm -rf
*~ debian
/*~
*.deb proxmox-spamassassin_
* updates.tmp
${SA_UPDATE_GPG_DIR} ${OPKGNAME}.
tar.gz.
*