svn commit: r400383 - in head/mail/p5-Sendmail-Milter: . files
Mathieu Arnold
mat at FreeBSD.org
Wed Oct 28 12:57:24 UTC 2015
Author: mat
Date: Wed Oct 28 12:57:22 2015
New Revision: 400383
URL: https://svnweb.freebsd.org/changeset/ports/400383
Log:
add IPv6 support in connect_callback
maintainer timeout
PR: 202248
Submitted by: fbsd opal com
MFH: 2015Q4
Sponsored by: Absolight
Added:
head/mail/p5-Sendmail-Milter/files/patch-Milter.pm (contents, props changed)
head/mail/p5-Sendmail-Milter/files/patch-callbacks.c (contents, props changed)
Modified:
head/mail/p5-Sendmail-Milter/Makefile
Modified: head/mail/p5-Sendmail-Milter/Makefile
==============================================================================
--- head/mail/p5-Sendmail-Milter/Makefile Wed Oct 28 12:18:32 2015 (r400382)
+++ head/mail/p5-Sendmail-Milter/Makefile Wed Oct 28 12:57:22 2015 (r400383)
@@ -3,7 +3,7 @@
PORTNAME= Sendmail-Milter
PORTVERSION= 0.18
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
Added: head/mail/p5-Sendmail-Milter/files/patch-Milter.pm
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/p5-Sendmail-Milter/files/patch-Milter.pm Wed Oct 28 12:57:22 2015 (r400383)
@@ -0,0 +1,17 @@
+--- Milter.pm.orig 2001-10-10 04:21:22 UTC
++++ Milter.pm
+@@ -423,10 +423,10 @@ calls. See B<Milter Context Functions> f
+ =item B<connect_callback> CTX, HOSTNAME, SOCKADDR_IN
+
+ Invoked on each connection. HOSTNAME is the host domain name, as determined by
+-a reverse lookup on the host address. SOCKADDR_IN is the AF_INET portion of the
+-host address, as determined by a B<getpeername(2)> syscall on the SMTP
+-socket. You can use B<Socket::unpack_sockaddr_in()> to unpack it into a port
+-and IP address.
++a reverse lookup on the host address. SOCKADDR_IN is the AF_INET or AF_INET6
++portion of the host address, as determined by a B<getpeername(2)> syscall on
++the SMTP socket. You can use B<Socket::unpack_sockaddr_in()> or
++B<Socket6::unpack_sockaddr_in6()> to unpack it into a port and IP address.
+
+ This callback should return one of the B<SMFIS_*> result codes.
+
Added: head/mail/p5-Sendmail-Milter/files/patch-callbacks.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/mail/p5-Sendmail-Milter/files/patch-callbacks.c Wed Oct 28 12:57:22 2015 (r400383)
@@ -0,0 +1,14 @@
+--- callbacks.c.orig 2000-07-19 06:20:36 UTC
++++ callbacks.c
+@@ -490,6 +490,11 @@ callback_ssockaddr(pTHX_ SV *callback, S
+ XPUSHs(sv_2mortal(newSVpvn((char *)arg_sa,
+ sizeof(_SOCK_ADDR))));
+ }
++ else if (arg_sa->sa_family == AF_INET6)
++ {
++ XPUSHs(sv_2mortal(newSVpvn((char *)arg_sa,
++ sizeof(struct sockaddr_in6))));
++ }
+ else
+ {
+ XPUSHs(sv_2mortal(newSVsv(&PL_sv_undef)));
More information about the svn-ports-all
mailing list