From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 434D8158041 for ; Tue, 7 Sep 2021 01:36:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89218E0921; Tue, 7 Sep 2021 01:36:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6BA59E0921 for ; Tue, 7 Sep 2021 01:36:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AD4C33BE39 for ; Tue, 7 Sep 2021 01:36:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 489BFAA for ; Tue, 7 Sep 2021 01:36:31 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1630978574.ba40a9889cc83e116731557e5897df254af4f5cc.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postgrey/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/postgrey/Manifest mail-filter/postgrey/postgrey-1.37.ebuild X-VCS-Directories: mail-filter/postgrey/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ba40a9889cc83e116731557e5897df254af4f5cc X-VCS-Branch: master Date: Tue, 7 Sep 2021 01:36:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c64e7af8-d8d6-48b1-b651-d8e0b1b485c1 X-Archives-Hash: 196eb80518067bdaf7fef06960fec17b commit: ba40a9889cc83e116731557e5897df254af4f5cc Author: Sam James gentoo org> AuthorDate: Tue Sep 7 01:31:18 2021 +0000 Commit: Sam James gentoo org> CommitDate: Tue Sep 7 01:36:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba40a988 mail-filter/postgrey: restore 1.37 (modernised) This reverts commit 5db5e8fbdb8ca48a9f5a545ef43dce4e036526b7. Contains a different form of the whitelist which may be useful for some people. No real rush to cleanup. Bug: https://bugs.gentoo.org/811882 Signed-off-by: Sam James gentoo.org> mail-filter/postgrey/Manifest | 1 + mail-filter/postgrey/postgrey-1.37.ebuild | 74 +++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/mail-filter/postgrey/Manifest b/mail-filter/postgrey/Manifest index 317600c06e6..ae58ff0be96 100644 --- a/mail-filter/postgrey/Manifest +++ b/mail-filter/postgrey/Manifest @@ -1 +1,2 @@ +DIST postgrey-1.37.tar.gz 41815 BLAKE2B dd8a1f62f56a614c25863afde089f1882a1567e3a53a24b1d12b6f23994388caf99059f05775853065143f4f953a6fd964625d5c865993e0e679dd545b848c11 SHA512 369968212ea60539efc0d4a7ae84f7c3ce13f5622e6ee070a0089423ef81ca8f7541ebd20289291d0e6a3aec2ca30dbc9c0d9c0a6f0a686adfadb5d0dd7830ca DIST postgrey-1.37_p20190625.tar.gz 124667 BLAKE2B ca2caba51a72198e42d6d4d9c5c7590b62c1bd1589d05bfb4096fb4d95ff62ff96976beac8c1b35136a4a6830af936244485ff7dcdcd46d8558a4bef0bbb123a SHA512 f3caf3c7663bd8784701c7e1ad45d1c577edf6fac14591a6983fda25e7f8a875f2501780a8f97ce72e6a324878404e9ac2a003a07ae07ad4debae61fe734b8d4 diff --git a/mail-filter/postgrey/postgrey-1.37.ebuild b/mail-filter/postgrey/postgrey-1.37.ebuild new file mode 100644 index 00000000000..d7fabcdacb8 --- /dev/null +++ b/mail-filter/postgrey/postgrey-1.37.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting" +HOMEPAGE="https://postgrey.schweikert.ch/" +SRC_URI="http://postgrey.schweikert.ch/pub/${P}.tar.gz + http://postgrey.schweikert.ch/pub/old/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ppc64 x86" + +DEPEND=" + acct-group/postgrey + acct-user/postgrey +" +# TODO: Use db.eclass? +RDEPEND=" + ${DEPEND} + >=dev-lang/perl-5.6.0 + dev-perl/Net-Server + dev-perl/IO-Multiplex + dev-perl/BerkeleyDB + dev-perl/Net-DNS + dev-perl/NetAddr-IP + dev-perl/Net-RBLClient + dev-perl/Parse-Syslog + virtual/perl-Digest-SHA + >=sys-libs/db-4.1 +" + +src_prepare() { + default + + # bug 479400 + sed -i 's@#!/usr/bin/perl -T -w@#!/usr/bin/perl -w@' postgrey || die "sed failed" +} + +src_install() { + # postgrey data/DB in /var + diropts -m0770 -o ${PN} -g ${PN} + dodir /var/spool/postfix/${PN} + keepdir /var/spool/postfix/${PN} + fowners postgrey:postgrey /var/spool/postfix/${PN} + fperms 0770 /var/spool/postfix/${PN} + + # postgrey binary + dosbin ${PN} + dosbin contrib/postgreyreport + + # policy-test script + dosbin policy-test + + # postgrey data in /etc/postfix + insinto /etc/postfix + insopts -o root -g ${PN} -m 0640 + doins postgrey_whitelist_clients postgrey_whitelist_recipients + + # documentation + dodoc Changes README README.exim + + # init.d + conf.d files + insopts -o root -g root -m 755 + newinitd "${FILESDIR}"/${PN}-1.34-r3.rc.new ${PN} + + insopts -o root -g root -m 640 + newconfd "${FILESDIR}"/${PN}.conf.new ${PN} + + systemd_dounit "${FILESDIR}"/postgrey.service +}