Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postgrey/
Date: Sun, 20 Feb 2022 00:31:38
Message-Id: 1645316600.4aebb9aa8bdcf51e247029405ac8c0f9fac9004d.sam@gentoo
1 commit: 4aebb9aa8bdcf51e247029405ac8c0f9fac9004d
2 Author: Anton Fischl <github <AT> fischl-online <DOT> de>
3 AuthorDate: Sat Feb 19 08:37:35 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 00:23:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aebb9aa
7
8 mail-filter/postgrey: bump 1.37_p20220122
9
10 Signed-off-by: Anton Fischl <github <AT> fischl-online.de>
11 Closes: https://github.com/gentoo/gentoo/pull/24271
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 mail-filter/postgrey/Manifest | 1 +
15 .../postgrey/postgrey-1.37_p20220122.ebuild | 76 ++++++++++++++++++++++
16 2 files changed, 77 insertions(+)
17
18 diff --git a/mail-filter/postgrey/Manifest b/mail-filter/postgrey/Manifest
19 index ae58ff0be96f..97513234bf72 100644
20 --- a/mail-filter/postgrey/Manifest
21 +++ b/mail-filter/postgrey/Manifest
22 @@ -1,2 +1,3 @@
23 DIST postgrey-1.37.tar.gz 41815 BLAKE2B dd8a1f62f56a614c25863afde089f1882a1567e3a53a24b1d12b6f23994388caf99059f05775853065143f4f953a6fd964625d5c865993e0e679dd545b848c11 SHA512 369968212ea60539efc0d4a7ae84f7c3ce13f5622e6ee070a0089423ef81ca8f7541ebd20289291d0e6a3aec2ca30dbc9c0d9c0a6f0a686adfadb5d0dd7830ca
24 DIST postgrey-1.37_p20190625.tar.gz 124667 BLAKE2B ca2caba51a72198e42d6d4d9c5c7590b62c1bd1589d05bfb4096fb4d95ff62ff96976beac8c1b35136a4a6830af936244485ff7dcdcd46d8558a4bef0bbb123a SHA512 f3caf3c7663bd8784701c7e1ad45d1c577edf6fac14591a6983fda25e7f8a875f2501780a8f97ce72e6a324878404e9ac2a003a07ae07ad4debae61fe734b8d4
25 +DIST postgrey-1.37_p20220122.tar.gz 124539 BLAKE2B 329c4bf6228c0a70a59bffaee0468489febf5237afacce94da193589c0f2849b2e4b9551c74d1a1478cb88d0a32ad91b0b1bf0ff677fd45bc098bab83192dd28 SHA512 1580b8dfddaad8c615d1ef12252681525d4b1318298b91145fee0deea08c0f9ea92b40889bc8c64404b54fb1d67f153e0065008825dfb6e00eb2f441076f9dc2
26
27 diff --git a/mail-filter/postgrey/postgrey-1.37_p20220122.ebuild b/mail-filter/postgrey/postgrey-1.37_p20220122.ebuild
28 new file mode 100644
29 index 000000000000..af3e969badbd
30 --- /dev/null
31 +++ b/mail-filter/postgrey/postgrey-1.37_p20220122.ebuild
32 @@ -0,0 +1,76 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit systemd
39 +
40 +COMMIT="c589bb9b727be9e1caaef6aa809a5ced688d9509"
41 +DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting"
42 +HOMEPAGE="https://postgrey.schweikert.ch/"
43 +SRC_URI="https://github.com/schweikert/postgrey/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}/${PN}-${COMMIT}"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
49 +
50 +DEPEND="
51 + acct-group/postgrey
52 + acct-user/postgrey
53 +"
54 +# TODO: Use db.eclass?
55 +RDEPEND="
56 + ${DEPEND}
57 + >=dev-lang/perl-5.6.0
58 + dev-perl/Net-Server
59 + dev-perl/IO-Multiplex
60 + dev-perl/BerkeleyDB
61 + dev-perl/Net-DNS
62 + dev-perl/NetAddr-IP
63 + dev-perl/Net-RBLClient
64 + dev-perl/Parse-Syslog
65 + virtual/perl-Digest-SHA
66 + >=sys-libs/db-4.1
67 +"
68 +
69 +src_prepare() {
70 + default
71 +
72 + # bug #479400
73 + sed -i 's@#!/usr/bin/perl -T -w@#!/usr/bin/perl -w@' postgrey || die "sed failed"
74 + sed -i -e '/git/d' Makefile || die
75 +}
76 +
77 +src_install() {
78 + # postgrey data/DB in /var
79 + diropts -m0770 -o ${PN} -g ${PN}
80 + dodir /var/spool/postfix/${PN}
81 + keepdir /var/spool/postfix/${PN}
82 + fowners postgrey:postgrey /var/spool/postfix/${PN}
83 + fperms 0770 /var/spool/postfix/${PN}
84 +
85 + # postgrey binary
86 + dosbin ${PN}
87 + dosbin contrib/postgreyreport
88 +
89 + # policy-test script
90 + dosbin policy-test
91 +
92 + # postgrey data in /etc/postfix
93 + insinto /etc/postfix
94 + insopts -o root -g ${PN} -m 0640
95 + doins postgrey_whitelist_clients postgrey_whitelist_recipients
96 +
97 + # documentation
98 + dodoc Changes README README.exim
99 +
100 + # init.d + conf.d files
101 + insopts -o root -g root -m 755
102 + newinitd "${FILESDIR}"/${PN}-1.34-r3.rc.new ${PN}
103 +
104 + insopts -o root -g root -m 640
105 + newconfd "${FILESDIR}"/${PN}.conf.new ${PN}
106 +
107 + systemd_dounit "${FILESDIR}"/postgrey.service
108 +}