Bug 244223

Summary: mail/exim: update sa-exim plugin to 4.2.1
Product: Ports & Packages Reporter: Dima Panov <fluffy>
Component: Individual Port(s)Assignee: Vsevolod Stakhov <vsevolod>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (vsevolod)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
mail/exim: update sa-exim plugin to 4.2.1 none

Description Dima Panov freebsd_committer freebsd_triage 2020-02-19 03:44:04 UTC
Created attachment 211752 [details]
mail/exim: update sa-exim plugin to 4.2.1

mail/exim: update sa-exim plugin to 4.2.1, unbreak build for exim-sa-exim slave port (files -> ${FILESDIR}), some adjustments to apply extrapatches

Incorporate some patches from Debian:

1) api-limitations.patch:
Exim now exports only the symbols that are part of the official API

2) remove-header-crs.patch:
Delete carriage returns from header lines.
When spamd gets a message with CRLF line endings, which it will when the spool file is in wire format, it will return a message with CRLF line endings, including the header. We will need to strip out the CRs.

3)spamc-args.patch:
Changes related to the arguments sent to spamc, namely thst we don't pass -d (SAspamcHost), -p (SAspamcPort), or -U (SAspamcSockPath) if those options aren't set, as well as the new parameter -u (SAspamcUser).

4)sprintf_no_format_string.diff:
Do not invoke printf-like function without parameter.
With exim 4.93, string_sprintf() requires at least two arguments
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-02-24 08:44:43 UTC
A commit references this bug:

Author: fluffy
Date: Mon Feb 24 08:43:47 UTC 2020
New revision: 526957
URL: https://svnweb.freebsd.org/changeset/ports/526957

Log:
  mail/exim: update sa-exim plugin to 4.2.1

  Unbreak build for exim-sa-exim slave port (${FILESDIR} misusage)

  Incorporate some patches from Debian:

  1) api-limitations.patch:
  Exim now exports only the symbols that are part of the official API

  2) remove-header-crs.patch:
  Delete carriage returns from header lines.
  When spamd gets a message with CRLF line endings, which it will when the spool file is in wire format, it will return a message with CRLF line endings, including the header. We will need to strip out the CRs.

  3)spamc-args.patch:
  Changes related to the arguments sent to spamc, namely that we don't pass -d (SAspamcHost), -p (SAspamcPort), or -U (SAspamcSockPath) if those options aren't set, as well as the new parameter -u (SAspamcUser).

  4)sprintf_no_format_string.diff:
  Do not invoke printf-like function without parameter.
  With exim 4.93, string_sprintf() requires at least two arguments

  PR:		244223
  Submitted by:	fluffy
  Approved by:	maintainer, implicit

Changes:
  head/mail/exim/Makefile
  head/mail/exim/distinfo
  head/mail/exim/files/extra-patch-Local-sa-exim.c
  head/mail/exim/files/extra-patch-Local-sa-exim.conf
Comment 2 Dima Panov freebsd_committer freebsd_triage 2020-02-24 08:54:52 UTC
Committed!