diff options
Diffstat (limited to 'mail-filter/postfwd')
-rw-r--r-- | mail-filter/postfwd/Manifest | 3 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.conf | 18 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.init | 27 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.init.3 | 27 | ||||
-rw-r--r-- | mail-filter/postfwd/files/postfwd.service | 11 | ||||
-rw-r--r-- | mail-filter/postfwd/metadata.xml | 13 | ||||
-rw-r--r-- | mail-filter/postfwd/postfwd-1.35-r3.ebuild | 87 | ||||
-rw-r--r-- | mail-filter/postfwd/postfwd-2.02-r1.ebuild (renamed from mail-filter/postfwd/postfwd-2.00-r1.ebuild) | 18 | ||||
-rw-r--r-- | mail-filter/postfwd/postfwd-2.03.ebuild (renamed from mail-filter/postfwd/postfwd-2.02.ebuild) | 18 |
9 files changed, 16 insertions, 206 deletions
diff --git a/mail-filter/postfwd/Manifest b/mail-filter/postfwd/Manifest index 7290afea910a..8bc9d7b26cd1 100644 --- a/mail-filter/postfwd/Manifest +++ b/mail-filter/postfwd/Manifest @@ -1,3 +1,2 @@ -DIST postfwd-1.35.tar.gz 354609 BLAKE2B 8e85db37d7f81be4613d9c2e411760af48650125af7b22439e3b47a8c3c7285564bfcd7a9fe4eed35d2603ddf80dcdf11d75f84afcaf3e57d53c4e986068f06c SHA512 7b0e8c8a755f085c108c45b28ec8c32139581ce129d0b8586f1876ae87f134a4fb1606d45105ccfa62351ca2d3b87f001ea52aacab0680f3345c41562bec5207 -DIST postfwd-2.00.tar.gz 265346 BLAKE2B ec67bffb5f6959e9516965516688e72f337f717a3159a094dc0373331a5fc09a451f664643a7f3e739b28d4137c130acfb39129b8557b4d41f4d445679f52623 SHA512 b9994b7dd96f1460d66ef35f173c5a4a4d72beb5b955092349304eae2672182874f07236fe5512ba3d0ecc68e2f0472e76b3667ded011536b0cf6f2d874bb039 DIST postfwd-2.02.tar.gz 265781 BLAKE2B de63bdab4f7c1b117a16ebed2248f1e89b7c973bb34cee1b3fbbceda8c9d9b92d180fb5de8a332732b69a05d1b157be1c95d81ded003641d78665064a4881432 SHA512 23b48ca7218fba46f4b1887c4c6724112866c2e22e56f749602ba74430c4cf4c8418b9effb400ea4a468a5f137c764cac9611879e37d1585cf6d0b31dd41060f +DIST postfwd-2.03.tar.gz 266373 BLAKE2B d7d7ab7680ddc7640831b2216d2f1618f1b4561abed6a0c6c5edabebe205496ae41893500b09c9bd76131dbbbed1743af00156417f2fb23c23c03fdddef96e95 SHA512 1f29766e9e7aa8cfd4c86e426ca578670094eb856758bc67d0fbd98ec31f408a5797e0fd93ee81a169014b5376dfc48f71db122a4cfafe0ba757856679f5ff61 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/metadata.xml b/mail-filter/postfwd/metadata.xml index e192a97b4308..8f3168c9e513 100644 --- a/mail-filter/postfwd/metadata.xml +++ b/mail-filter/postfwd/metadata.xml @@ -1,18 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>c@roessner.co</email> - <name>Christian Roessner</name> - </maintainer> - <maintainer type="person"> <email>mschiff@gentoo.org</email> <name>Marc Schiffbauer</name> </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> <upstream> <maintainer status="active"> <email>info@postfwd.org</email> @@ -28,7 +20,4 @@ grouping, date and time based dependencies together with DNSBL lookups and policy delegation (e.g. postgrey). </longdescription> - <use> - <flag name="tools">Install additional tools for testing postfwd</flag> - </use> </pkgmetadata> diff --git a/mail-filter/postfwd/postfwd-1.35-r3.ebuild b/mail-filter/postfwd/postfwd-1.35-r3.ebuild deleted file mode 100644 index fda2d2a93fae..000000000000 --- a/mail-filter/postfwd/postfwd-1.35-r3.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils user systemd - -DESCRIPTION="Versatile Postfix policy server with a flexible ruleset based configuration" -HOMEPAGE="http://www.postfwd.org/" -SRC_URI="http://www.postfwd.org/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+tools" - -DEPEND="" -RDEPEND=">=dev-lang/perl-5.16.3 - virtual/perl-Sys-Syslog - dev-perl/Net-DNS - dev-perl/Net-Server -" - -pkg_setup() { - enewgroup postfwd - enewuser postfwd -1 -1 -1 postfwd -} - -src_install() { - local BIN="postfwd2" - # programs and tools - dosbin "${S}"/sbin/${BIN} - - # man pages and documentation - doman "${S}"/man/man8/${BIN}.8 - dodoc "${S}"/doc/{${BIN}.CHANGELOG,${BIN}.txt} - - # example configuration(s) - insinto /usr/share/doc/${PF}/examples - newins "${S}"/etc/${PN}.cf.sample ${PN}.cf.dist - - # plugins - dodoc -r "${S}"/plugins - - # tools - if use tools; then - dodoc -r "${S}"/tools - fi - - # start scripts script and respective configuration file - newinitd "${FILESDIR}"/${PN}.init ${PN} - newconfd "${FILESDIR}"/${PN}.conf ${PN} - systemd_dounit "${FILESDIR}"/${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 " /etc/postfix/postfwd.cf" - einfo "You can find example configurations in:" - einfo " /usr/share/doc/${PF}/examples" - einfo - einfo "If you want ${PN} to start on system boot, you have to add it your" - einfo "default run level:" - einfo " # rc-update add postfwd default" - einfo "Also remember to edit /etc/conf.d/${PN} to your liking." - einfo - einfo "A plugins sampe folder has been placed under:" - einfo - einfo " /usr/share/doc/${PF}/plugins" - - if use tools; then - einfo - einfo "You can find additional tools for testing ${PN} in:" - einfo " /usr/share/doc/${PF}/tools" - fi - - 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 http://www.postfwd.org/ for more information." - ewarn -} diff --git a/mail-filter/postfwd/postfwd-2.00-r1.ebuild b/mail-filter/postfwd/postfwd-2.02-r1.ebuild index df52b4a6f052..9c5901fcc653 100644 --- a/mail-filter/postfwd/postfwd-2.00-r1.ebuild +++ b/mail-filter/postfwd/postfwd-2.02-r1.ebuild @@ -1,20 +1,23 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit systemd user +inherit systemd 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" +S="${WORKDIR}/${PN}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -DEPEND="" -RDEPEND=">=dev-lang/perl-5.16.3 +RDEPEND=" + acct-group/postfwd + acct-user/postfwd + dev-lang/perl dev-perl/Net-CIDR-Lite dev-perl/Net-DNS dev-perl/Net-Server @@ -25,13 +28,6 @@ RDEPEND=">=dev-lang/perl-5.16.3 virtual/perl-Time-HiRes " -S=${WORKDIR}/${PN} - -pkg_setup() { - enewgroup postfwd - enewuser postfwd -1 -1 -1 postfwd -} - src_install() { local BIN="postfwd3" # program diff --git a/mail-filter/postfwd/postfwd-2.02.ebuild b/mail-filter/postfwd/postfwd-2.03.ebuild index df52b4a6f052..9c5901fcc653 100644 --- a/mail-filter/postfwd/postfwd-2.02.ebuild +++ b/mail-filter/postfwd/postfwd-2.03.ebuild @@ -1,20 +1,23 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit systemd user +inherit systemd 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" +S="${WORKDIR}/${PN}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -DEPEND="" -RDEPEND=">=dev-lang/perl-5.16.3 +RDEPEND=" + acct-group/postfwd + acct-user/postfwd + dev-lang/perl dev-perl/Net-CIDR-Lite dev-perl/Net-DNS dev-perl/Net-Server @@ -25,13 +28,6 @@ RDEPEND=">=dev-lang/perl-5.16.3 virtual/perl-Time-HiRes " -S=${WORKDIR}/${PN} - -pkg_setup() { - enewgroup postfwd - enewuser postfwd -1 -1 -1 postfwd -} - src_install() { local BIN="postfwd3" # program |