From owner-svn-ports-all@freebsd.org Wed Oct 28 12:57:24 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FD85A1F179; Wed, 28 Oct 2015 12:57:24 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 20B801525; Wed, 28 Oct 2015 12:57:24 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9SCvN7i063486; Wed, 28 Oct 2015 12:57:23 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9SCvNDk063483; Wed, 28 Oct 2015 12:57:23 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201510281257.t9SCvNDk063483@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Wed, 28 Oct 2015 12:57:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400383 - in head/mail/p5-Sendmail-Milter: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2015 12:57:24 -0000 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 f + =item B 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 syscall on the SMTP +-socket. You can use B 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 syscall on ++the SMTP socket. You can use B or ++B to unpack it into a port and IP address. + + This callback should return one of the B 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)));