1 |
commit: ba40a9889cc83e116731557e5897df254af4f5cc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 7 01:31:18 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 7 01:36:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba40a988 |
7 |
|
8 |
mail-filter/postgrey: restore 1.37 (modernised) |
9 |
|
10 |
This reverts commit 5db5e8fbdb8ca48a9f5a545ef43dce4e036526b7. |
11 |
Contains a different form of the whitelist which may be useful |
12 |
for some people. No real rush to cleanup. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/811882 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
mail-filter/postgrey/Manifest | 1 + |
18 |
mail-filter/postgrey/postgrey-1.37.ebuild | 74 +++++++++++++++++++++++++++++++ |
19 |
2 files changed, 75 insertions(+) |
20 |
|
21 |
diff --git a/mail-filter/postgrey/Manifest b/mail-filter/postgrey/Manifest |
22 |
index 317600c06e6..ae58ff0be96 100644 |
23 |
--- a/mail-filter/postgrey/Manifest |
24 |
+++ b/mail-filter/postgrey/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
+DIST postgrey-1.37.tar.gz 41815 BLAKE2B dd8a1f62f56a614c25863afde089f1882a1567e3a53a24b1d12b6f23994388caf99059f05775853065143f4f953a6fd964625d5c865993e0e679dd545b848c11 SHA512 369968212ea60539efc0d4a7ae84f7c3ce13f5622e6ee070a0089423ef81ca8f7541ebd20289291d0e6a3aec2ca30dbc9c0d9c0a6f0a686adfadb5d0dd7830ca |
27 |
DIST postgrey-1.37_p20190625.tar.gz 124667 BLAKE2B ca2caba51a72198e42d6d4d9c5c7590b62c1bd1589d05bfb4096fb4d95ff62ff96976beac8c1b35136a4a6830af936244485ff7dcdcd46d8558a4bef0bbb123a SHA512 f3caf3c7663bd8784701c7e1ad45d1c577edf6fac14591a6983fda25e7f8a875f2501780a8f97ce72e6a324878404e9ac2a003a07ae07ad4debae61fe734b8d4 |
28 |
|
29 |
diff --git a/mail-filter/postgrey/postgrey-1.37.ebuild b/mail-filter/postgrey/postgrey-1.37.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..d7fabcdacb8 |
32 |
--- /dev/null |
33 |
+++ b/mail-filter/postgrey/postgrey-1.37.ebuild |
34 |
@@ -0,0 +1,74 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit systemd |
41 |
+ |
42 |
+DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting" |
43 |
+HOMEPAGE="https://postgrey.schweikert.ch/" |
44 |
+SRC_URI="http://postgrey.schweikert.ch/pub/${P}.tar.gz |
45 |
+ http://postgrey.schweikert.ch/pub/old/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ppc64 x86" |
50 |
+ |
51 |
+DEPEND=" |
52 |
+ acct-group/postgrey |
53 |
+ acct-user/postgrey |
54 |
+" |
55 |
+# TODO: Use db.eclass? |
56 |
+RDEPEND=" |
57 |
+ ${DEPEND} |
58 |
+ >=dev-lang/perl-5.6.0 |
59 |
+ dev-perl/Net-Server |
60 |
+ dev-perl/IO-Multiplex |
61 |
+ dev-perl/BerkeleyDB |
62 |
+ dev-perl/Net-DNS |
63 |
+ dev-perl/NetAddr-IP |
64 |
+ dev-perl/Net-RBLClient |
65 |
+ dev-perl/Parse-Syslog |
66 |
+ virtual/perl-Digest-SHA |
67 |
+ >=sys-libs/db-4.1 |
68 |
+" |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ default |
72 |
+ |
73 |
+ # bug 479400 |
74 |
+ sed -i 's@#!/usr/bin/perl -T -w@#!/usr/bin/perl -w@' postgrey || die "sed failed" |
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 |
+} |