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/files/, mail-filter/postfwd/
Date: Sun, 11 Jul 2021 19:07:47
Message-Id: 1626030448.67fe98a78e732cbc21aa4feeb6a4733ad47b1d38.conikost@gentoo
1 commit: 67fe98a78e732cbc21aa4feeb6a4733ad47b1d38
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 11 19:07:03 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 11 19:07:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67fe98a7
7
8 mail-filter/postfwd: drop old version
9
10 Closes: 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/files/postfwd.conf | 18 -------
15 mail-filter/postfwd/files/postfwd.init | 27 ----------
16 mail-filter/postfwd/files/postfwd.init.3 | 27 ----------
17 mail-filter/postfwd/files/postfwd.service | 11 ----
18 mail-filter/postfwd/postfwd-2.02.ebuild | 87 -------------------------------
19 5 files changed, 170 deletions(-)
20
21 diff --git a/mail-filter/postfwd/files/postfwd.conf b/mail-filter/postfwd/files/postfwd.conf
22 deleted file mode 100644
23 index 2f6f537e7c8..00000000000
24 --- a/mail-filter/postfwd/files/postfwd.conf
25 +++ /dev/null
26 @@ -1,18 +0,0 @@
27 -# /etc/conf.d/postfwd.conf
28 -
29 -# User and group to execute postfwd as
30 -POSTFWD_USER="postfwd"
31 -POSTFWD_GROUP="postfwd"
32 -
33 -# Configuration file to use
34 -POSTFWD_CONFIG="/etc/postfix/postfwd.cf"
35 -
36 -# The IP address postfwd will listen on
37 -# WARNING: You _really_ want this to be localhost for security!
38 -POSTFWD_LISTEN="127.0.0.1"
39 -
40 -# The port postfwd will listen on
41 -POSTFWD_PORT="10040"
42 -
43 -# Additional options to pass to postfwd
44 -POSTFWD_OPTS=""
45
46 diff --git a/mail-filter/postfwd/files/postfwd.init b/mail-filter/postfwd/files/postfwd.init
47 deleted file mode 100644
48 index b56d8b412f1..00000000000
49 --- a/mail-filter/postfwd/files/postfwd.init
50 +++ /dev/null
51 @@ -1,27 +0,0 @@
52 -#!/sbin/openrc-run
53 -# Copyright 1999-2014 Gentoo Foundation
54 -# Distributed under the terms of the GNU General Public License v2
55 -
56 -PIDFILE=/var/run/postfwd.pid
57 -
58 -depend() {
59 - need net
60 -}
61 -
62 -start() {
63 - ebegin "Starting postfwd"
64 - start-stop-daemon --start --quiet --background \
65 - --pidfile ${PIDFILE} \
66 - --exec /usr/sbin/postfwd2 -- --daemon --file ${POSTFWD_CONFIG} \
67 - --interface=${POSTFWD_LISTEN} --port=${POSTFWD_PORT} \
68 - --user=${POSTFWD_USER} --group=${POSTFWD_GROUP} \
69 - --pidfile ${PIDFILE} \
70 - ${POSTFWD_OPTS}
71 - eend $?
72 -}
73 -
74 -stop() {
75 - ebegin "Stopping postfwd"
76 - start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
77 - eend $?
78 -}
79
80 diff --git a/mail-filter/postfwd/files/postfwd.init.3 b/mail-filter/postfwd/files/postfwd.init.3
81 deleted file mode 100644
82 index 7fc17344a31..00000000000
83 --- a/mail-filter/postfwd/files/postfwd.init.3
84 +++ /dev/null
85 @@ -1,27 +0,0 @@
86 -#!/sbin/openrc-run
87 -# Copyright 1999-2019 Gentoo Authors
88 -# Distributed under the terms of the GNU General Public License v2
89 -
90 -PIDFILE=/var/run/postfwd.pid
91 -
92 -depend() {
93 - need net
94 -}
95 -
96 -start() {
97 - ebegin "Starting postfwd"
98 - start-stop-daemon --start --quiet --background \
99 - --pidfile ${PIDFILE} \
100 - --exec /usr/sbin/postfwd3 -- --daemon --file ${POSTFWD_CONFIG} \
101 - --interface=${POSTFWD_LISTEN} --port=${POSTFWD_PORT} \
102 - --user=${POSTFWD_USER} --group=${POSTFWD_GROUP} \
103 - --pidfile ${PIDFILE} \
104 - ${POSTFWD_OPTS}
105 - eend $?
106 -}
107 -
108 -stop() {
109 - ebegin "Stopping postfwd"
110 - start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
111 - eend $?
112 -}
113
114 diff --git a/mail-filter/postfwd/files/postfwd.service b/mail-filter/postfwd/files/postfwd.service
115 deleted file mode 100644
116 index 376e8d2da32..00000000000
117 --- a/mail-filter/postfwd/files/postfwd.service
118 +++ /dev/null
119 @@ -1,11 +0,0 @@
120 -[Unit]
121 -Description=Postfix firewall daemon
122 -
123 -[Service]
124 -Type=forking
125 -ExecStart=/usr/sbin/postfwd2 --shortlog --summary=600 --cache=600 --cache-rbl-timeout=3600 --cleanup-requests=1200 --cleanup-rbls=1800 --cleanup-rates=1200 --daemon --file=/etc/postfwd/postfwd.cf --interface=127.0.0.1 --port=10040 --pidfile=/var/run/postfwd.pid --user=postfwd --group=postfwd
126 -ExecStop=/usr/sbin/postfwd2 --file=/etc/postfwd/postfwd.cf --pidfile=/var/run/postfwd.pid --kill
127 -ExecReload=/usr/sbin/postfwd2 --file=/etc/postfwd/postfwd.cf --pidfile=/var/run/postfwd.pid --reload
128 -
129 -[Install]
130 -WantedBy=multi-user.target
131
132 diff --git a/mail-filter/postfwd/postfwd-2.02.ebuild b/mail-filter/postfwd/postfwd-2.02.ebuild
133 deleted file mode 100644
134 index df52b4a6f05..00000000000
135 --- a/mail-filter/postfwd/postfwd-2.02.ebuild
136 +++ /dev/null
137 @@ -1,87 +0,0 @@
138 -# Copyright 1999-2019 Gentoo Authors
139 -# Distributed under the terms of the GNU General Public License v2
140 -
141 -EAPI=7
142 -
143 -inherit systemd user
144 -
145 -DESCRIPTION="Versatile Postfix policy server with a flexible ruleset based configuration"
146 -HOMEPAGE="https://www.postfwd.org/"
147 -SRC_URI="https://www.postfwd.org/${P}.tar.gz"
148 -
149 -LICENSE="BSD"
150 -SLOT="0"
151 -KEYWORDS="~amd64 ~x86"
152 -
153 -DEPEND=""
154 -RDEPEND=">=dev-lang/perl-5.16.3
155 - dev-perl/Net-CIDR-Lite
156 - dev-perl/Net-DNS
157 - dev-perl/Net-Server
158 - dev-perl/NetAddr-IP
159 - virtual/perl-Digest-MD5
160 - virtual/perl-Storable
161 - virtual/perl-Sys-Syslog
162 - virtual/perl-Time-HiRes
163 -"
164 -
165 -S=${WORKDIR}/${PN}
166 -
167 -pkg_setup() {
168 - enewgroup postfwd
169 - enewuser postfwd -1 -1 -1 postfwd
170 -}
171 -
172 -src_install() {
173 - local BIN="postfwd3"
174 - # program
175 - dosbin sbin/${BIN}
176 -
177 - # man pages and documentation
178 - doman man/man8/${BIN}.8
179 - dodoc doc/{${BIN}.CHANGELOG,${BIN}.txt}
180 -
181 - # example configuration
182 - dodoc etc/${PN}.cf.sample
183 -
184 - # plugins and tools
185 - dodoc -r plugins tools
186 -
187 - # start scripts script and respective configuration file
188 - newinitd "${FILESDIR}"/${PN}.init.3-r1 ${PN}
189 - newconfd "${FILESDIR}"/${PN}.conf.3 ${PN}
190 - systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
191 -}
192 -
193 -pkg_postinst() {
194 - einfo
195 - einfo "${PN} has no default configuration for safety reasons. Every"
196 - einfo "mail system is different, so you should craft a set of rules"
197 - einfo "that is suitable for your environment and save it to:"
198 - einfo " ${EROOT}/etc/postfwd.cf"
199 - einfo "You can find a sample configuration in:"
200 - einfo " ${EROOT}/usr/share/doc/${PF}"
201 - einfo
202 - einfo "If you want ${PN} to start on system boot, you have to add it your"
203 - einfo "default run level if using OpenRC:"
204 - einfo " # rc-update add postfwd default"
205 - einfo "Also remember to edit ${EROOT}/etc/conf.d/${PN} to your liking."
206 - einfo
207 - einfo "Or - if you are using systemd - enable the service:"
208 - einfo " # systemctl enable postfwd"
209 - einfo
210 - einfo "A plugins sample folder has been placed under:"
211 - einfo
212 - einfo " ${EROOT}/usr/share/doc/${PF}/plugins"
213 - einfo
214 - einfo "You can find additional tools for testing ${PN} in:"
215 - einfo " ${EROOT}/usr/share/doc/${PF}/tools"
216 -
217 - ewarn
218 - ewarn "Please read the documentation carefully and properly test new"
219 - ewarn "rulesets before putting them into production use. Otherwise you"
220 - ewarn "risk accidental mail loss or worse."
221 - ewarn
222 - ewarn "Visit https://www.postfwd.org/ for more information."
223 - ewarn
224 -}