Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
Date: Sun, 11 Jul 2021 20:12:11
Message-Id: 1626034311.d077a1cbd191f4e81fde7c58fb4b230e5ce48187.conikost@gentoo
1 commit: d077a1cbd191f4e81fde7c58fb4b230e5ce48187
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 11 20:11:51 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 11 20:11:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d077a1cb
7
8 mail-filter/postfwd: bump to version 2.03
9
10 Closes: https://bugs.gentoo.org/737142
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 mail-filter/postfwd/Manifest | 1 +
15 mail-filter/postfwd/postfwd-2.03.ebuild | 83 +++++++++++++++++++++++++++++++++
16 2 files changed, 84 insertions(+)
17
18 diff --git a/mail-filter/postfwd/Manifest b/mail-filter/postfwd/Manifest
19 index 92c099a3a05..8bc9d7b26cd 100644
20 --- a/mail-filter/postfwd/Manifest
21 +++ b/mail-filter/postfwd/Manifest
22 @@ -1 +1,2 @@
23 DIST postfwd-2.02.tar.gz 265781 BLAKE2B de63bdab4f7c1b117a16ebed2248f1e89b7c973bb34cee1b3fbbceda8c9d9b92d180fb5de8a332732b69a05d1b157be1c95d81ded003641d78665064a4881432 SHA512 23b48ca7218fba46f4b1887c4c6724112866c2e22e56f749602ba74430c4cf4c8418b9effb400ea4a468a5f137c764cac9611879e37d1585cf6d0b31dd41060f
24 +DIST postfwd-2.03.tar.gz 266373 BLAKE2B d7d7ab7680ddc7640831b2216d2f1618f1b4561abed6a0c6c5edabebe205496ae41893500b09c9bd76131dbbbed1743af00156417f2fb23c23c03fdddef96e95 SHA512 1f29766e9e7aa8cfd4c86e426ca578670094eb856758bc67d0fbd98ec31f408a5797e0fd93ee81a169014b5376dfc48f71db122a4cfafe0ba757856679f5ff61
25
26 diff --git a/mail-filter/postfwd/postfwd-2.03.ebuild b/mail-filter/postfwd/postfwd-2.03.ebuild
27 new file mode 100644
28 index 00000000000..9c5901fcc65
29 --- /dev/null
30 +++ b/mail-filter/postfwd/postfwd-2.03.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit systemd
38 +
39 +DESCRIPTION="Versatile Postfix policy server with a flexible ruleset based configuration"
40 +HOMEPAGE="https://www.postfwd.org/"
41 +SRC_URI="https://www.postfwd.org/${P}.tar.gz"
42 +S="${WORKDIR}/${PN}"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +RDEPEND="
49 + acct-group/postfwd
50 + acct-user/postfwd
51 + dev-lang/perl
52 + dev-perl/Net-CIDR-Lite
53 + dev-perl/Net-DNS
54 + dev-perl/Net-Server
55 + dev-perl/NetAddr-IP
56 + virtual/perl-Digest-MD5
57 + virtual/perl-Storable
58 + virtual/perl-Sys-Syslog
59 + virtual/perl-Time-HiRes
60 +"
61 +
62 +src_install() {
63 + local BIN="postfwd3"
64 + # program
65 + dosbin sbin/${BIN}
66 +
67 + # man pages and documentation
68 + doman man/man8/${BIN}.8
69 + dodoc doc/{${BIN}.CHANGELOG,${BIN}.txt}
70 +
71 + # example configuration
72 + dodoc etc/${PN}.cf.sample
73 +
74 + # plugins and tools
75 + dodoc -r plugins tools
76 +
77 + # start scripts script and respective configuration file
78 + newinitd "${FILESDIR}"/${PN}.init.3-r1 ${PN}
79 + newconfd "${FILESDIR}"/${PN}.conf.3 ${PN}
80 + systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
81 +}
82 +
83 +pkg_postinst() {
84 + einfo
85 + einfo "${PN} has no default configuration for safety reasons. Every"
86 + einfo "mail system is different, so you should craft a set of rules"
87 + einfo "that is suitable for your environment and save it to:"
88 + einfo " ${EROOT}/etc/postfwd.cf"
89 + einfo "You can find a sample configuration in:"
90 + einfo " ${EROOT}/usr/share/doc/${PF}"
91 + einfo
92 + einfo "If you want ${PN} to start on system boot, you have to add it your"
93 + einfo "default run level if using OpenRC:"
94 + einfo " # rc-update add postfwd default"
95 + einfo "Also remember to edit ${EROOT}/etc/conf.d/${PN} to your liking."
96 + einfo
97 + einfo "Or - if you are using systemd - enable the service:"
98 + einfo " # systemctl enable postfwd"
99 + einfo
100 + einfo "A plugins sample folder has been placed under:"
101 + einfo
102 + einfo " ${EROOT}/usr/share/doc/${PF}/plugins"
103 + einfo
104 + einfo "You can find additional tools for testing ${PN} in:"
105 + einfo " ${EROOT}/usr/share/doc/${PF}/tools"
106 +
107 + ewarn
108 + ewarn "Please read the documentation carefully and properly test new"
109 + ewarn "rulesets before putting them into production use. Otherwise you"
110 + ewarn "risk accidental mail loss or worse."
111 + ewarn
112 + ewarn "Visit https://www.postfwd.org/ for more information."
113 + ewarn
114 +}