From nobody Fri Sep 13 13:33:39 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X4wHl6Hx8z5X2FC; Fri, 13 Sep 2024 13:33:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X4wHl5lYNz4RLC; Fri, 13 Sep 2024 13:33:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726234419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T6Av+uC93NccBsm2Ww+T2czPs1IudavfAOC9SR8KOmk=; b=NALqZS9LdiRaVi8Xl9zLxrKJOUfNxtSmDSb2itvCh8JoiqIj34HMaC8/5FB7SluHCoknDI OCzmlTO4rYcsD3q1cqoBPx/qGKBfxi5TpofZ6+8Xml6U2KguuRNyzaqSGs7bexRZa5EM1E X64FM2Rdmz4Rhe3mrayhhQ6rLdPTRbB0jE6yYr59YmDaYe0fX6wof0RhclK/izyH+lc2Ht MuM8VGuHykf2tPmeuDV2p+mKMvQCtsJKbxDBqfFeIoWjKk84Nls0ArTxLl3DGOoaVG/xZF mtdwrik1Y6pO6/D1V2eTfUk/004Z0oYpowHsxSOEA8QY2xtkqxJC98/STgbB/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726234419; a=rsa-sha256; cv=none; b=nantgy+1Yy8x1kwk658RelB0iuRHXkEulq0v7bY0a2FPcP8f2ZPuzpjWT7Q+lE4zIxi/Ec 0Y0klHCPOJDlOZ4FD04/NFwkszSR0ZAAhPg82fDjrPYxii/vGHnXVqamflBBJFk76THiQU l+WglVSEE4iDn0k5sCu5RCPyJW6dac3r9qpHXaLkJZPPGrutqMdaG5e3JZX+wq8jFZLecH 5nbYqx85nFqPW/sy1QXAS2ll0UAPxXLUcgKlp8tu+MdMXTe5pu85QbhSK7Ij0Aga3s95Nk to0GXOJfkIBFY3CkFmG8OcfGqLEWXo/ie9ghFEjb/peyK4CYeh9tDoYSNX8ETQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726234419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T6Av+uC93NccBsm2Ww+T2czPs1IudavfAOC9SR8KOmk=; b=JVf0/ysneY7T8QhTgT8xFbUpWRd+sT7x/+s6etMWc0kSEVk0GfA/9dUDqRreF2xUPUJ2Rs KrpcoPfRs2rxT76sGcQbNzYOZERFdpoM+an7CKLwnWq85j03JDTPeyXZCOyZZ2LXZcnv1/ L5J5TxgksHSB9Z2WoBgEEbFSx9YfEuP89w6iuyvTzk1JZmyetIaO3m0/kA6XF3D52jGMbh oudy89hjKlI+rO9H3v2qW6P+Mb510aFLg1zeM/n5zZecvZXyKrRquMz/88pOSNZc/jXy8V ZPDqKJOrV0KQv7dmAo7HFVB7UtiypOdO1hiNKD5zKb39Byd4W8Hb4rTNRYI6xw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X4wHl5J3Szlf9; Fri, 13 Sep 2024 13:33:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48DDXdK5096429; Fri, 13 Sep 2024 13:33:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48DDXd8q096426; Fri, 13 Sep 2024 13:33:39 GMT (envelope-from git) Date: Fri, 13 Sep 2024 13:33:39 GMT Message-Id: <202409131333.48DDXd8q096426@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: e575205acabb - main - mail/p5-Sendmail-PMilter: New port: Perl bindings for Sendmail/Postfix milter interface List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e575205acabbd1b1fcc8766e78bdeabbf87a69b1 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=e575205acabbd1b1fcc8766e78bdeabbf87a69b1 commit e575205acabbd1b1fcc8766e78bdeabbf87a69b1 Author: takeda AuthorDate: 2024-09-13 13:31:12 +0000 Commit: Vladimir Druzenko CommitDate: 2024-09-13 13:31:12 +0000 mail/p5-Sendmail-PMilter: New port: Perl bindings for Sendmail/Postfix milter interface The original Sendmail::Milter (mail/p5-Sendmail-Milter) is not really maintained, there's more up to date module Sendmail::PMilter: https://metacpan.org/dist/Sendmail-PMilter Latest version of bogofilter-milter require it: https://stuff.mit.edu/~jik/software/bogofilter-milter/ PR: 281354 --- mail/Makefile | 1 + mail/p5-Sendmail-PMilter/Makefile | 19 ++++++++++ mail/p5-Sendmail-PMilter/distinfo | 3 ++ mail/p5-Sendmail-PMilter/files/patch-Makefile.PL | 45 ++++++++++++++++++++++++ mail/p5-Sendmail-PMilter/pkg-descr | 9 +++++ mail/p5-Sendmail-PMilter/pkg-plist | 4 +++ 6 files changed, 81 insertions(+) diff --git a/mail/Makefile b/mail/Makefile index efa897a0b22b..4bedae148209 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -429,6 +429,7 @@ SUBDIR += p5-SES SUBDIR += p5-Sendmail-AccessDB SUBDIR += p5-Sendmail-Milter + SUBDIR += p5-Sendmail-PMilter SUBDIR += p5-Sisimai SUBDIR += p5-Test-Email SUBDIR += p5-URI-imap diff --git a/mail/p5-Sendmail-PMilter/Makefile b/mail/p5-Sendmail-PMilter/Makefile new file mode 100644 index 000000000000..84ac1cf0ef96 --- /dev/null +++ b/mail/p5-Sendmail-PMilter/Makefile @@ -0,0 +1,19 @@ +PORTNAME= Sendmail-PMilter +DISTVERSION= 1.27 +CATEGORIES= mail perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= takeda@takeda.tk +COMMENT= Perl bindings for Sendmail/Postfix milter interface +WWW= https://metacpan.org/dist/Sendmail-PMilter + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/mail/p5-Sendmail-PMilter/distinfo b/mail/p5-Sendmail-PMilter/distinfo new file mode 100644 index 000000000000..5b2edbf67ea5 --- /dev/null +++ b/mail/p5-Sendmail-PMilter/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1725761565 +SHA256 (Sendmail-PMilter-1.27.tar.gz) = bb5265360d3c00b312e5ede02484ec2200a5252e48bebb4978420711d8d49b66 +SIZE (Sendmail-PMilter-1.27.tar.gz) = 39605 diff --git a/mail/p5-Sendmail-PMilter/files/patch-Makefile.PL b/mail/p5-Sendmail-PMilter/files/patch-Makefile.PL new file mode 100644 index 000000000000..5a37c772bd3b --- /dev/null +++ b/mail/p5-Sendmail-PMilter/files/patch-Makefile.PL @@ -0,0 +1,45 @@ +--- Makefile.PL.orig 2024-02-03 16:33:42 UTC ++++ Makefile.PL +@@ -1,42 +1,6 @@ use ExtUtils::MakeMaker; + use 5.008004; + use ExtUtils::MakeMaker; + +-my $install = ( ExtUtils::MakeMaker::prompt(< 'yes' ) ); +- +-Sendmail::PMilter provides access to the message processing hooks in a +-running Mail Transfer Agent (Sendmail or Postfix), so that filters +-('milters') which process mail can be written entirely in Perl. Mail +-processing according to SMTP takes place at a number of well-defined +-stages ('connect', 'helo', etc.) during the exchange of the message +-between client and server. At each stage, the sets of data available +-(the connecting IP, sender address etc.) and the permissible actions +-(rewrite a message header, ACCEPT a message, REJECT it etc.) are also +-well-defined and are to some extent configurable. +- +-Filters built to use Sendmail::PMilter can examine all the information +-made available by the MTA and can take any of the permitted actions at +-any stage of mail processing. Filters can be implemented much more +-quickly in Perl than in a low-level language like C, and the Perl code +-does not necessarily need to be thread-safe. All mail is essentially +-text, and Perl is a very powerful tool for text processing. A milter +-coded in Perl has full access to all Perl library functions, system +-utilities, standard modules, modules installed from CPAN, modules of +-your own; a Perl milter can do with a message more or less anything +-that you might reasonably want to do. +- +-The interface to the running MTA follows the 'milter protocol'. This +-protocol is driven by the MTA. It is effected by messages of a simple +-structure which are passed between the MTA and the milter via a socket +-connection. Over the years the Milter Protocol has progressed through +-several versions, and seems (February 2024) to be extremely stable at +-Milter Protocol Version 6. +- +-Choose "yes" below to install Sendmail::PMilter from this package. +- +-EOT +- +-if( $install ne 'yes' ) { print "Not installing.\n"; exit; } +- + my %PM = ( + 'lib/Sendmail/PMilter.pm' => '$(INST_LIBDIR)/PMilter.pm', + 'lib/Sendmail/PMilter/Context.pm' => '$(INST_LIBDIR)/PMilter/Context.pm' diff --git a/mail/p5-Sendmail-PMilter/pkg-descr b/mail/p5-Sendmail-PMilter/pkg-descr new file mode 100644 index 000000000000..de854058c468 --- /dev/null +++ b/mail/p5-Sendmail-PMilter/pkg-descr @@ -0,0 +1,9 @@ +Sendmail::PMilter provides access to the message processing hooks in a +running Mail Transfer Agent (Sendmail or Postfix), so that filters +('milters') which process mail can be written entirely in Perl. Mail +processing according to SMTP takes place at a number of well-defined +stages ('connect', 'helo', etc.) during the exchange of the message +between client and server. At each stage, the sets of data available +(the connecting IP, sender address etc.) and the permissible actions +(rewrite a message header, ACCEPT a message, REJECT it etc.) are also +well-defined and are to some extent configurable. diff --git a/mail/p5-Sendmail-PMilter/pkg-plist b/mail/p5-Sendmail-PMilter/pkg-plist new file mode 100644 index 000000000000..54068099ddcd --- /dev/null +++ b/mail/p5-Sendmail-PMilter/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_PERL%%/Sendmail/PMilter.pm +%%SITE_PERL%%/Sendmail/PMilter/Context.pm +%%PERL5_MAN3%%/Sendmail::PMilter.3.gz +%%PERL5_MAN3%%/Sendmail::PMilter::Context.3.gz