Bug 155979

Summary: [maintainer] [PATCH] mail/spamass-milter: add IPv6 whitelist patch
Product: Ports & Packages Reporter: m.tsatsenko
Component: Individual Port(s)Assignee: Wen Heping <wen>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
spamass-milter.cpp.diff none

Description m.tsatsenko 2011-03-27 23:30:34 UTC
This patch makes it possible to allow IPv6 subnets to be whitelisted/auto-accepted.
Obtained from http://wilmer.gaa.st/blog/archives/61-spamass-milter-and-IPv6.html.
Submitted by Koen Martens gmc <at> sonologic <dot> nl via private email.

Fix: Use the patch attached

Patch attached with submission follows:
Comment 1 Wen Heping freebsd_committer 2011-03-28 01:56:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

I'll take it.
Comment 2 dfilter service freebsd_committer 2011-03-28 04:08:53 UTC
wen         2011-03-28 03:08:45 UTC

  FreeBSD ports repository

  Modified files:
    mail/spamass-milter  Makefile 
  Added files:
    mail/spamass-milter/files extra-patch-ipv6 
  - Allow IPv6 subnets to be whitelisted/auto-accepted
  Obtained from http://wilmer.gaa.st/blog/archives/61-spamass-milter-and-IPv6.html
  PR:             ports/155979
  Submitted by:   "Mikhail T." <m.tsatsenko@gmail.com> (maintainer)
  Revision  Changes    Path
  1.47      +6 -1      ports/mail/spamass-milter/Makefile
  1.1       +270 -0    ports/mail/spamass-milter/files/extra-patch-ipv6 (new)
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Wen Heping freebsd_committer 2011-03-28 04:13:53 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 yoshint2012 2013-12-09 06:06:35 UTC
After extra-patch-ipv6 is patched, command line argument such as
cannot be accepted with error message
  Could not parse "" as a netmask
is ok.

I guess
  } else if (!inet_pton(AF_INET6, tmask, &mask))
is a typo of
  } else if (!inet_pton(AF_INET, tmask, &mask))
Comment 5 m.tsatsenko 2013-12-24 16:02:19 UTC
at the first look you are right, but I have to do a more detailed look
at this in a next few days.