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