You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by Apache Wiki <wi...@apache.org> on 2006/11/10 14:18:49 UTC

[Spamassassin Wiki] Update of "ManualRuleUpdates" by JustinMason

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Spamassassin Wiki" for change notification.

The following page has been changed by JustinMason:
http://wiki.apache.org/spamassassin/ManualRuleUpdates

The comment on the change is:
add cut-and-pasteable text

------------------------------------------------------------------------------
   * update /var/named/updates.spamassassin.org.d/3.1.0 with #
   * run /home/updatesd/svn/spamassassin/build/mkupdates/tick_zone_serial
  
+ == As Commands ==
+ 
+ jm -- this is more "concrete" and cut-and-pasteable...
+ 
+ on the zone, check out the relevant SVN paths:
+ 
+ {{{
+ svn co http://svn.apache.org/repos/asf/spamassassin/branches/3.1 ~/b31
+ cd ~/b31
+ svn co https://svn.apache.org/repos/asf/spamassassin/rules/branches/3.1 rules-3.1
+ }}}
+ 
+ Run a lint:
+ 
+ {{{
+ cd ~/b31
+ perl Makefile.PL; make
+ cp rules-3.1/*.{cf,pre} rules/
+ ./spamassassin --lint
+ }}}
+ 
+ Quit here if that lint check fails.
+ 
+ {{{
+ cd ~/b31/rules-3.1
+ rev=`svn info | perl -ne '/Revision: (\d+)/ and print $1'`
+ echo $rev
+ tar cf $rev.tar *.{cf,pre}
+ tar tvf $rev.tar
+ rm $rev.tar.gz; gzip -9 $rev.tar
+ sudo -u updatesd rm -f /var/www/buildbot.spamassassin.org/updatestage/$rev.tar.gz
+ sudo -u updatesd cp $rev.tar.gz /var/www/buildbot.spamassassin.org/updatestage/
+ cd /var/www/buildbot.spamassassin.org/updatestage/
+ sudo -u updatesd rm -f $rev.tar.gz.sha1 $rev.tar.gz.asc
+ sudo -u updatesd /local/gnupg-1.4.2/bin/gpg --batch \
+     --homedir /home/updatesd/key -bas $rev.tar.gz
+ sudo -u updatesd /local/perl586/bin/perl \
+     /home/updatesd/svn/spamassassin/build/sha1sum.pl $rev.tar.gz \
+     > ~/$rev.tar.gz.sha1
+ sudo -u updatesd cp ~/$rev.tar.gz.sha1 .
+ sudo -u updatesd chmod 0444 *.tar.gz.* *.tar.gz
+ echo '*.1.3 TXT "'$rev'"' > ~/newzoneline
+ }}}
+ 
+ Update the DNS zone file:
+ 
+ {{{
+ sudo vi /var/named/updates.spamassassin.org.d/3.1.0
+ :r ~/newzoneline
+ [and replace the existing line with that]
+ :wq
+ 
+ sudo -u updatesd /home/updatesd/svn/spamassassin/build/mkupdates/tick_zone_serial
+ }}}
+ 
+ And you're done.
+ 
+ TODO: this should probably be a standalone script like the 3.2.0
+ updates.
+