summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2021-07-11 21:07:03 +0200
committerConrad Kostecki <conikost@gentoo.org>2021-07-11 21:07:28 +0200
commit67fe98a78e732cbc21aa4feeb6a4733ad47b1d38 (patch)
treed09bc18fd901f88c566f326fb69c87763361963b /mail-filter
parentmail-filter/postfwd: migrate to GLEP 81 (diff)
downloadgentoo-67fe98a78e732cbc21aa4feeb6a4733ad47b1d38.tar.gz
gentoo-67fe98a78e732cbc21aa4feeb6a4733ad47b1d38.tar.bz2
gentoo-67fe98a78e732cbc21aa4feeb6a4733ad47b1d38.zip
mail-filter/postfwd: drop old version
Closes: https://bugs.gentoo.org/781317 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/postfwd/files/postfwd.conf18
-rw-r--r--mail-filter/postfwd/files/postfwd.init27
-rw-r--r--mail-filter/postfwd/files/postfwd.init.327
-rw-r--r--mail-filter/postfwd/files/postfwd.service11
-rw-r--r--mail-filter/postfwd/postfwd-2.02.ebuild87
5 files changed, 0 insertions, 170 deletions
diff --git a/mail-filter/postfwd/files/postfwd.conf b/mail-filter/postfwd/files/postfwd.conf
deleted file mode 100644
index 2f6f537e7c8c..000000000000
--- a/mail-filter/postfwd/files/postfwd.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-# /etc/conf.d/postfwd.conf
-
-# User and group to execute postfwd as
-POSTFWD_USER="postfwd"
-POSTFWD_GROUP="postfwd"
-
-# Configuration file to use
-POSTFWD_CONFIG="/etc/postfix/postfwd.cf"
-
-# The IP address postfwd will listen on
-# WARNING: You _really_ want this to be localhost for security!
-POSTFWD_LISTEN="127.0.0.1"
-
-# The port postfwd will listen on
-POSTFWD_PORT="10040"
-
-# Additional options to pass to postfwd
-POSTFWD_OPTS=""
diff --git a/mail-filter/postfwd/files/postfwd.init b/mail-filter/postfwd/files/postfwd.init
deleted file mode 100644
index b56d8b412f10..000000000000
--- a/mail-filter/postfwd/files/postfwd.init
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-PIDFILE=/var/run/postfwd.pid
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postfwd"
- start-stop-daemon --start --quiet --background \
- --pidfile ${PIDFILE} \
- --exec /usr/sbin/postfwd2 -- --daemon --file ${POSTFWD_CONFIG} \
- --interface=${POSTFWD_LISTEN} --port=${POSTFWD_PORT} \
- --user=${POSTFWD_USER} --group=${POSTFWD_GROUP} \
- --pidfile ${PIDFILE} \
- ${POSTFWD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping postfwd"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
-}
diff --git a/mail-filter/postfwd/files/postfwd.init.3 b/mail-filter/postfwd/files/postfwd.init.3
deleted file mode 100644
index 7fc17344a31d..000000000000
--- a/mail-filter/postfwd/files/postfwd.init.3
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-PIDFILE=/var/run/postfwd.pid
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting postfwd"
- start-stop-daemon --start --quiet --background \
- --pidfile ${PIDFILE} \
- --exec /usr/sbin/postfwd3 -- --daemon --file ${POSTFWD_CONFIG} \
- --interface=${POSTFWD_LISTEN} --port=${POSTFWD_PORT} \
- --user=${POSTFWD_USER} --group=${POSTFWD_GROUP} \
- --pidfile ${PIDFILE} \
- ${POSTFWD_OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping postfwd"
- start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
- eend $?
-}
diff --git a/mail-filter/postfwd/files/postfwd.service b/mail-filter/postfwd/files/postfwd.service
deleted file mode 100644
index 376e8d2da320..000000000000
--- a/mail-filter/postfwd/files/postfwd.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Postfix firewall daemon
-
-[Service]
-Type=forking
-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
-ExecStop=/usr/sbin/postfwd2 --file=/etc/postfwd/postfwd.cf --pidfile=/var/run/postfwd.pid --kill
-ExecReload=/usr/sbin/postfwd2 --file=/etc/postfwd/postfwd.cf --pidfile=/var/run/postfwd.pid --reload
-
-[Install]
-WantedBy=multi-user.target
diff --git a/mail-filter/postfwd/postfwd-2.02.ebuild b/mail-filter/postfwd/postfwd-2.02.ebuild
deleted file mode 100644
index df52b4a6f052..000000000000
--- a/mail-filter/postfwd/postfwd-2.02.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit systemd user
-
-DESCRIPTION="Versatile Postfix policy server with a flexible ruleset based configuration"
-HOMEPAGE="https://www.postfwd.org/"
-SRC_URI="https://www.postfwd.org/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-DEPEND=""
-RDEPEND=">=dev-lang/perl-5.16.3
- dev-perl/Net-CIDR-Lite
- dev-perl/Net-DNS
- dev-perl/Net-Server
- dev-perl/NetAddr-IP
- virtual/perl-Digest-MD5
- virtual/perl-Storable
- virtual/perl-Sys-Syslog
- virtual/perl-Time-HiRes
-"
-
-S=${WORKDIR}/${PN}
-
-pkg_setup() {
- enewgroup postfwd
- enewuser postfwd -1 -1 -1 postfwd
-}
-
-src_install() {
- local BIN="postfwd3"
- # program
- dosbin sbin/${BIN}
-
- # man pages and documentation
- doman man/man8/${BIN}.8
- dodoc doc/{${BIN}.CHANGELOG,${BIN}.txt}
-
- # example configuration
- dodoc etc/${PN}.cf.sample
-
- # plugins and tools
- dodoc -r plugins tools
-
- # start scripts script and respective configuration file
- newinitd "${FILESDIR}"/${PN}.init.3-r1 ${PN}
- newconfd "${FILESDIR}"/${PN}.conf.3 ${PN}
- systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service
-}
-
-pkg_postinst() {
- einfo
- einfo "${PN} has no default configuration for safety reasons. Every"
- einfo "mail system is different, so you should craft a set of rules"
- einfo "that is suitable for your environment and save it to:"
- einfo " ${EROOT}/etc/postfwd.cf"
- einfo "You can find a sample configuration in:"
- einfo " ${EROOT}/usr/share/doc/${PF}"
- einfo
- einfo "If you want ${PN} to start on system boot, you have to add it your"
- einfo "default run level if using OpenRC:"
- einfo " # rc-update add postfwd default"
- einfo "Also remember to edit ${EROOT}/etc/conf.d/${PN} to your liking."
- einfo
- einfo "Or - if you are using systemd - enable the service:"
- einfo " # systemctl enable postfwd"
- einfo
- einfo "A plugins sample folder has been placed under:"
- einfo
- einfo " ${EROOT}/usr/share/doc/${PF}/plugins"
- einfo
- einfo "You can find additional tools for testing ${PN} in:"
- einfo " ${EROOT}/usr/share/doc/${PF}/tools"
-
- ewarn
- ewarn "Please read the documentation carefully and properly test new"
- ewarn "rulesets before putting them into production use. Otherwise you"
- ewarn "risk accidental mail loss or worse."
- ewarn
- ewarn "Visit https://www.postfwd.org/ for more information."
- ewarn
-}