public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-mail/pflogsumm/, net-mail/pflogsumm/files/
@ 2019-12-08 10:08 Joonas Niilola
  0 siblings, 0 replies; only message in thread
From: Joonas Niilola @ 2019-12-08 10:08 UTC (permalink / raw
  To: gentoo-commits

commit:     458a5d589ecdce9ee81555700c88f2779d5140ce
Author:     Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Sat Nov 30 00:22:35 2019 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Dec  8 10:08:15 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=458a5d58

net-mail/pflogsumm: add support for BDAT

Closes: https://bugs.gentoo.org/699976
Patch-by: Maxim Britov <ungift-ed <AT> ya.ru>
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/13804
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-mail/pflogsumm/files/pflogsumm-bdat.patch | 13 +++++++++++++
 net-mail/pflogsumm/pflogsumm-1.1.5-r2.ebuild  | 24 ++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/net-mail/pflogsumm/files/pflogsumm-bdat.patch b/net-mail/pflogsumm/files/pflogsumm-bdat.patch
new file mode 100644
index 00000000000..fa27b260ac8
--- /dev/null
+++ b/net-mail/pflogsumm/files/pflogsumm-bdat.patch
@@ -0,0 +1,13 @@
+diff --git a/pflogsumm.pl b/pflogsumm.pl
+index 31de5bd..b3bedf9 100755
+--- a/pflogsumm.pl
++++ b/pflogsumm.pl
+@@ -1650,7 +1650,7 @@ sub proc_smtpd_reject {
+     # Next: get the reject "reason"
+     $rejReas = $rejRmdr;
+     unless(defined($opts{'verbMsgDetail'})) {
+-	if($rejTyp eq "RCPT" || $rejTyp eq "DATA" || $rejTyp eq "CONNECT") {	# special treatment :-(
++	if($rejTyp eq "RCPT" || $rejTyp eq "DATA" || $rejTyp eq "BDAT" || $rejTyp eq "CONNECT") {	# special treatment :-(
+ 	    # If there are "<>"s immediately following the reject code, that's
+ 	    # an email address or HELO string.  There can be *anything* in
+ 	    # those--incl. stuff that'll screw up subsequent parsing.  So just

diff --git a/net-mail/pflogsumm/pflogsumm-1.1.5-r2.ebuild b/net-mail/pflogsumm/pflogsumm-1.1.5-r2.ebuild
new file mode 100644
index 00000000000..8f70f3e92a5
--- /dev/null
+++ b/net-mail/pflogsumm/pflogsumm-1.1.5-r2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Pflogsumm is a log analyzer for Postfix logs"
+HOMEPAGE="https://jimsun.linxnet.com/postfix_contrib.html"
+SRC_URI="https://jimsun.linxnet.com/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+
+RDEPEND="dev-lang/perl
+	dev-perl/Date-Calc"
+
+DOCS=( ChangeLog pflogsumm-faq.txt README ToDo )
+PATCHES=( "${FILESDIR}/${PN}-bdat.patch" ) # Bug 699976
+
+src_install() {
+	default
+	doman pflogsumm.1
+	dobin pflogsumm.pl
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-08 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-08 10:08 [gentoo-commits] repo/gentoo:master commit in: net-mail/pflogsumm/, net-mail/pflogsumm/files/ Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox