diff options
author | salo <salo> | 2006-06-07 21:28:47 +0000 |
---|---|---|
committer | salo <salo> | 2006-06-07 21:28:47 +0000 |
commit | a8f055be623fd3f4dda6e518e84a56d0c4c5aee5 (patch) | |
tree | 8dc90988b8f611d7e5529b236a8802580b7f9e19 /mail/spamassassin/Makefile | |
parent | 929329bd6ed9870183d0423201723fad4e0eda56 (diff) | |
download | pkgsrc-a8f055be623fd3f4dda6e518e84a56d0c4c5aee5.tar.gz |
Pullup ticket 1693 - requested by heinz
security update for spamassassin
Revisions pulled up:
- pkgsrc/mail/spamassassin/Makefile 1.71, 1.72
- pkgsrc/mail/spamassassin/PLIST 1.19
- pkgsrc/mail/spamassassin/distinfo 1.37, 1.38
- pkgsrc/mail/spamassassin/options.mk 1.6
- pkgsrc/mail/spamassassin/patches/patch-ab 1.12
- pkgsrc/mail/spamassassin/patches/patch-ad removed
- pkgsrc/mail/spamassassin/patches/patch-az removed
Module Name: pkgsrc
Committed By: heinz
Date: Fri May 26 20:53:00 UTC 2006
Modified Files:
pkgsrc/mail/spamassassin: Makefile PLIST distinfo options.mk
pkgsrc/mail/spamassassin/patches: patch-ab
Added Files:
pkgsrc/mail/spamassassin/patches: patch-bb
Removed Files:
pkgsrc/mail/spamassassin/patches: patch-ad patch-az
Log Message:
Updated to version 3.1.2.
Pkgsrc changes:
- The updates for rule files go into $VARBASE/spamassassin/.
- This above directory and the directory sa-update-keys for the GPG keys
are now handled automatically by OWN_DIRS.
- The growing number of *.pre files are managed in a loop in the Makefile.
They are no longer contained in the static PLIST.
- Removed some unnecessary trailing slashes.
- Patching init.pre in order to disable the SPF plugin broke the spf.t
test. This is now fixed, although in a rather ugly way :-/.
- patch-ab no longer needs to use BSD_INSTALL_DATA_DIR because we create
the directories through INSTALLATION_DIRS.
- patch-ad and patch-az were removed (changes integrated upstream).
- patch-bb fixes a small documentation error.
- Fixed some warnings by pkglint about the SUBST framework in Makefile
and options.mk.
Relevant changes since version 3.1.1:
=====================================
- bug 4802: implement DKIM plugin, including whitelist_from_dkim support
- bug 3838: work around Perl bug causing captured RE variables to become
tainted -- thanks to Mark Martinec for pointing out the bug with
Perl itself
- bug 4850: re-enable the Razor2 plugin by default due to a service
policy change
- bug 4826: Razor2 plugin needs to load Mail::SpamAssassin::Timeout module
- bug 4827: M::SA::first_existing_path() would return the last array
entry passed in if none of the paths were found. Now return undef
instead and handle the error when it happens.
- bug 4813: generally open RE causes sendmail received header get read
in as qmail in error
- bug 4839: Logger.pm converts control chars including tab into
underscores which confuses a bunch of users when checking debug output.
Convert tab into space instead, etc.
- bug 4884: if a null message is passed in, there are several variables
which end up undefined causing warnings. fake an empty message if no
input is given.
- bug 4793: when replacing tags in a message (_TAG_), leave the tags
that don't exist alone instead of just removing them
- bug 4861, 4760: handle dccifd and dccproc failover properly, backport
relays_internal and relays_external code, backport bug 4760 fix so
that it's not possible to be in internal_networks without being in
trusted_networks as well
- bug 4901: deal more properly with failures in bgsend(). also, use
the proper variable to show when errors occur.
- bug 4867: fetchmail changed header formats at some point making Received
parsing fail in certain conditions
- bug 4699: use M::SA::Timeout for spamd copy_config call and allow for
empty $@ values
- bug 3754: if there's a problem opening a file via sa-learn or
spamassassin, return an error exit value.
---
Module Name: pkgsrc
Committed By: heinz
Date: Mon Jun 5 23:01:01 UTC 2006
Modified Files:
pkgsrc/mail/spamassassin: Makefile distinfo
Removed Files:
pkgsrc/mail/spamassassin/patches: patch-bb
Log Message:
Updated to version 3.1.3.
Pkgsrc changes:
- patch-bb for no longer necessary (integrated upstream).
Changes since version 3.1.2:
============================
- bug 4926: given a certain set of parameters to spamd and a specially
formatted input message, users could cause spamd to execute arbitrary
commands as the spamd user
- bug 4932: the userstate dir and userprefs file would not be created
under certain conditions.
Diffstat (limited to 'mail/spamassassin/Makefile')
-rw-r--r-- | mail/spamassassin/Makefile | 66 |
1 files changed, 43 insertions, 23 deletions
diff --git a/mail/spamassassin/Makefile b/mail/spamassassin/Makefile index b989e7b9c35..bfbd89c930a 100644 --- a/mail/spamassassin/Makefile +++ b/mail/spamassassin/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.70 2006/03/24 19:46:10 heinz Exp $ +# $NetBSD: Makefile,v 1.70.2.1 2006/06/07 21:28:47 salo Exp $ -DISTNAME= Mail-SpamAssassin-3.1.1 -PKGNAME= spamassassin-3.1.1 -PKGREVISION= 1 +DISTNAME= Mail-SpamAssassin-3.1.3 +PKGNAME= spamassassin-3.1.3 SVR4_PKGNAME= sa CATEGORIES= mail perl5 MASTER_SITES= ${MASTER_SITE_APACHE:=spamassassin/source/} @@ -16,7 +15,7 @@ COMMENT= Mail filter to identify spam DEPENDS+= p5-Net-DNS>=0.34:../../net/p5-Net-DNS DEPENDS+= p5-HTML-Parser>=3.31:../../www/p5-HTML-Parser DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1 -DEPENDS+= {p5-MIME-Base64>=2.11,perl{,-thread}>=5.8.0}:../../converters/p5-MIME-Base64 +DEPENDS+= {p5-MIME-Base64>=2.11,perl>=5.8.0}:../../converters/p5-MIME-Base64 DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar DEPENDS+= p5-IO-Zlib-[0-9]*:../../devel/p5-IO-Zlib @@ -53,11 +52,12 @@ PERL5_CONFIGURE= NO # we need the default "do-configure" target PERL5_CONFIGURE_DIRS= ${WRKSRC} # test t/meta needs this -REPLACE_PERL= masses/parse-rules-for-masses +REPLACE_PERL+= masses/parse-rules-for-masses MAKE_PARAMS+= CONTACT_ADDRESS=${SPAMASSASSIN_CONTACT_ADDRESS:Q} MAKE_PARAMS+= DEFRULESDIR="${RULESDIR}" MAKE_PARAMS+= LOCALRULESDIR="${PKG_SYSCONFDIR}" +MAKE_PARAMS+= LOCALSTATEDIR="${VARBASE}" MAKE_PARAMS+= PERL_BIN="${PERL5}" MAKE_PARAMS+= SYSCONFDIR="${PKG_SYSCONFDIR}" @@ -71,21 +71,26 @@ DOCDIR= ${PREFIX}/${DOC_SUBDIR} RULE_SUBDIR= share/spamassassin RULESDIR= ${PREFIX}/${RULE_SUBDIR} +PRE_FILES= init.pre v310.pre v312.pre +.for p in ${PRE_FILES} +CONF_FILES+= ${EGDIR}/${p} ${PKG_SYSCONFDIR}/${p} +.endfor CONF_FILES+= ${EGDIR}/local.cf ${PKG_SYSCONFDIR}/local.cf \ - ${EGDIR}/init.pre ${PKG_SYSCONFDIR}/init.pre \ - ${EGDIR}/v310.pre ${PKG_SYSCONFDIR}/v310.pre \ ${RULESDIR}/user_prefs.template \ ${PKG_SYSCONFDIR}/user_prefs.template INSTALLATION_DIRS+= ${EG_SUBDIR} ${DOC_SUBDIR} ${DOC_SUBDIR}/spamc\ - ${DOC_SUBDIR}/spamd + ${DOC_SUBDIR}/spamd ${RULE_SUBDIR} + +OWN_DIRS+= ${VARBASE}/spamassassin +OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/sa-update-keys ${SHAREOWN} ${SHAREGRP} 0700 SUBST_CLASSES+= sa2 sa3 SUBST_STAGE.sa2= pre-configure SUBST_FILES.sa2= README spamd/spamd.raw -SUBST_SED.sa2= -e s!@@PREFIX@@!${PREFIX}!g \ - -e s!@PKG_SYSCONFDIR@!${PKG_SYSCONFDIR}!g +SUBST_SED.sa2= -e s!@@PREFIX@@!${PREFIX}!g +SUBST_SED.sa2+= -e s!@PKG_SYSCONFDIR@!${PKG_SYSCONFDIR}!g SUBST_STAGE.sa3= pre-configure SUBST_FILES.sa3= INSTALL UPGRADE USAGE ldap/README \ @@ -94,11 +99,11 @@ SUBST_FILES.sa3= INSTALL UPGRADE USAGE ldap/README \ lib/Mail/SpamAssassin/Plugin/Test.pm \ spamd/README spamd/README.vpopmail sql/README \ sql/README.awl sa-update.raw -SUBST_SED.sa3= -e s!/usr/share!${PREFIX}/share!g \ - -e s!/usr/bin!${PREFIX}/bin!g \ - -e s!/usr/local/bin!${PREFIX}/bin!g \ - -e s!/usr/lib!${PREFIX}/lib!g \ - -e s!/etc/mail/spamassassin!${PKG_SYSCONFDIR}!g +SUBST_SED.sa3= -e s!/usr/share!${PREFIX}/share!g +SUBST_SED.sa3+= -e s!/usr/bin!${PREFIX}/bin!g +SUBST_SED.sa3+= -e s!/usr/local/bin!${PREFIX}/bin!g +SUBST_SED.sa3+= -e s!/usr/lib!${PREFIX}/lib!g +SUBST_SED.sa3+= -e s!/etc/mail/spamassassin!${PKG_SYSCONFDIR}!g .if (${OPSYS} == "NetBSD") || (${OPSYS} == "DragonFly") # the 'spamd' RCD_SCRIPT behaves differently if we run NetBSD 1.6 or later @@ -135,7 +140,7 @@ post-install: .endfor .for f in STATISTICS-set0.txt STATISTICS-set1.txt STATISTICS-set2.txt \ STATISTICS-set3.txt - @${INSTALL_DATA} ${WRKSRC}/rules/${f} ${DOCDIR}/ + @${INSTALL_DATA} ${WRKSRC}/rules/${f} ${DOCDIR} @${ECHO} "${DOC_SUBDIR}/${f}" >> ${PLIST_ADD} .endfor .for dir in masses sql ldap tools @@ -162,14 +167,15 @@ post-install: @cd ${WRKSRC}/rules; \ for f in [0-9]*.cf; do \ ${ECHO} "${RULE_SUBDIR}/$$f" >> ${PLIST_ADD}; \ + done; \ + for f in ${PRE_FILES}; do \ + ${INSTALL_DATA} $$f ${EGDIR} && \ + ${ECHO} ${EG_SUBDIR}/$$f >> ${PLIST_ADD}; \ done - @${ECHO} "@dirrm ${RULE_SUBDIR}" >> ${PLIST_ADD} @# examples are in the static PLIST - @${INSTALL_DATA} ${WRKSRC}/procmailrc.example ${EGDIR}/ - @${INSTALL_DATA} ${WRKSRC}/rules/init.pre ${EGDIR}/ - @${INSTALL_DATA} ${WRKSRC}/rules/v310.pre ${EGDIR}/ - @${INSTALL_DATA} ${WRKSRC}/rules/local.cf ${EGDIR}/ - @${INSTALL_DATA} ${FILESDIR}/netbsd_lists.cf ${EGDIR}/ + @${INSTALL_DATA} ${WRKSRC}/procmailrc.example ${EGDIR} + @${INSTALL_DATA} ${WRKSRC}/rules/local.cf ${EGDIR} + @${INSTALL_DATA} ${FILESDIR}/netbsd_lists.cf ${EGDIR} @${CHOWN} ${SHAREOWN} ${RULESDIR}/* @${CHGRP} ${SHAREGRP} ${RULESDIR}/* @${CHMOD} a=r ${RULESDIR}/* @@ -177,5 +183,19 @@ post-install: ${ECHO} "@dirrm $$d"; \ done; } | ${SORT} -r >> ${PLIST_ADD}; +# make sure we install the patched version of init.pre but can run the +# tests with the original file +pre-patch: + @${CP} ${WRKSRC}/rules/init.pre ${WRKDIR}/init.pre.notpatched + +post-patch: + @${CP} ${WRKSRC}/rules/init.pre ${WRKDIR}/init.pre.patched + +pre-test: + @${CP} ${WRKDIR}/init.pre.notpatched ${WRKSRC}/rules/init.pre + +post-test: + @${CP} ${WRKDIR}/init.pre.patched ${WRKSRC}/rules/init.pre + .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" |