[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: 76310c34b0b4a061a616242f776421e4d6b28b93 Author: Jonas Stein gentoo org> AuthorDate: Thu Feb 10 20:09:01 2022 + Commit: Jonas Stein gentoo org> CommitDate: Thu Feb 10 20:11:42 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76310c34 mail-filter/postfwd: Maintainer retired Proxied maintainer retired due to inactivity. Bug: https://bugs.gentoo.org/633254 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Jonas Stein gentoo.org> mail-filter/postfwd/metadata.xml | 8 1 file changed, 8 deletions(-) diff --git a/mail-filter/postfwd/metadata.xml b/mail-filter/postfwd/metadata.xml index 56ccc1947ae6..8f3168c9e513 100644 --- a/mail-filter/postfwd/metadata.xml +++ b/mail-filter/postfwd/metadata.xml @@ -1,18 +1,10 @@ https://www.gentoo.org/dtd/metadata.dtd;> - - c...@roessner.co - Christian Roessner - msch...@gentoo.org Marc Schiffbauer - - proxy-ma...@gentoo.org - Proxy Maintainers - i...@postfwd.org
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: d077a1cbd191f4e81fde7c58fb4b230e5ce48187 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 11 20:11:51 2021 + Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 11 20:11:51 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d077a1cb mail-filter/postfwd: bump to version 2.03 Closes: https://bugs.gentoo.org/737142 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> mail-filter/postfwd/Manifest| 1 + mail-filter/postfwd/postfwd-2.03.ebuild | 83 + 2 files changed, 84 insertions(+) diff --git a/mail-filter/postfwd/Manifest b/mail-filter/postfwd/Manifest index 92c099a3a05..8bc9d7b26cd 100644 --- a/mail-filter/postfwd/Manifest +++ b/mail-filter/postfwd/Manifest @@ -1 +1,2 @@ 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/postfwd-2.03.ebuild b/mail-filter/postfwd/postfwd-2.03.ebuild new file mode 100644 index 000..9c5901fcc65 --- /dev/null +++ b/mail-filter/postfwd/postfwd-2.03.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +RDEPEND=" + acct-group/postfwd + acct-user/postfwd + dev-lang/perl + 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 +" + +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 +}
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/files/, mail-filter/postfwd/
commit: 67fe98a78e732cbc21aa4feeb6a4733ad47b1d38 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 11 19:07:03 2021 + Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 11 19:07:28 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67fe98a7 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 gentoo.org> mail-filter/postfwd/files/postfwd.conf| 18 --- mail-filter/postfwd/files/postfwd.init| 27 -- mail-filter/postfwd/files/postfwd.init.3 | 27 -- mail-filter/postfwd/files/postfwd.service | 11 mail-filter/postfwd/postfwd-2.02.ebuild | 87 --- 5 files changed, 170 deletions(-) diff --git a/mail-filter/postfwd/files/postfwd.conf b/mail-filter/postfwd/files/postfwd.conf deleted file mode 100644 index 2f6f537e7c8..000 --- 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 b56d8b412f1..000 --- 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 7fc17344a31..000 --- 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 376e8d2da32..000 --- 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 df52b4a6f05..000 --- 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"
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: 3defd2e0d2aacb510d6e56aff7227ad36be9353f Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 11 19:04:06 2021 + Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 11 19:07:27 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3defd2e0 mail-filter/postfwd: migrate to GLEP 81 Bug: https://bugs.gentoo.org/781317 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Conrad Kostecki gentoo.org> mail-filter/postfwd/postfwd-2.02-r1.ebuild | 83 ++ 1 file changed, 83 insertions(+) diff --git a/mail-filter/postfwd/postfwd-2.02-r1.ebuild b/mail-filter/postfwd/postfwd-2.02-r1.ebuild new file mode 100644 index 000..9c5901fcc65 --- /dev/null +++ b/mail-filter/postfwd/postfwd-2.02-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +RDEPEND=" + acct-group/postfwd + acct-user/postfwd + dev-lang/perl + 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 +" + +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 +}
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: ec722bf1f53ffb44060c45da8e97c4fd01a9a3de Author: Joonas Niilola gentoo org> AuthorDate: Sat Mar 20 08:48:21 2021 + Commit: Joonas Niilola gentoo org> CommitDate: Sat Mar 20 08:48:41 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec722bf1 mail-filter/postfwd: UnusedLocalUse Signed-off-by: Joonas Niilola gentoo.org> mail-filter/postfwd/metadata.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/mail-filter/postfwd/metadata.xml b/mail-filter/postfwd/metadata.xml index 86691fdb1c6..e9407a0103b 100644 --- a/mail-filter/postfwd/metadata.xml +++ b/mail-filter/postfwd/metadata.xml @@ -28,7 +28,4 @@ grouping, date and time based dependencies together with DNSBL lookups and policy delegation (e.g. postgrey). - - Install additional tools for testing postfwd -
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: 4644dff2a2e013c2af3c4b7b83cd34dddb99ffcc Author: Marc Schiffbauer gentoo org> AuthorDate: Mon Jul 8 11:43:33 2019 + Commit: Marc Schiffbauer gentoo org> CommitDate: Mon Jul 8 11:51:16 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4644dff2 mail-filter/postfwd: added v2.02, remove v2.00 Signed-off-by: Marc Schiffbauer gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11 mail-filter/postfwd/Manifest | 1 + .../{postfwd-2.00.ebuild => postfwd-2.02.ebuild} | 54 +- 2 files changed, 23 insertions(+), 32 deletions(-) diff --git a/mail-filter/postfwd/Manifest b/mail-filter/postfwd/Manifest index 28c0ed381da..7290afea910 100644 --- a/mail-filter/postfwd/Manifest +++ b/mail-filter/postfwd/Manifest @@ -1,2 +1,3 @@ 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 diff --git a/mail-filter/postfwd/postfwd-2.00.ebuild b/mail-filter/postfwd/postfwd-2.02.ebuild similarity index 63% rename from mail-filter/postfwd/postfwd-2.00.ebuild rename to mail-filter/postfwd/postfwd-2.02.ebuild index f4ce5c30fd1..df52b4a6f05 100644 --- a/mail-filter/postfwd/postfwd-2.00.ebuild +++ b/mail-filter/postfwd/postfwd-2.02.ebuild @@ -1,18 +1,17 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit eutils user systemd +inherit systemd user 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; +HOMEPAGE="https://www.postfwd.org/; +SRC_URI="https://www.postfwd.org/${P}.tar.gz; LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="+tools" DEPEND="" RDEPEND=">=dev-lang/perl-5.16.3 @@ -35,27 +34,21 @@ pkg_setup() { src_install() { local BIN="postfwd3" - # programs and tools - dosbin "${S}"/sbin/${BIN} + # program + dosbin sbin/${BIN} # man pages and documentation - doman "${S}"/man/man8/${BIN}.8 - dodoc "${S}"/doc/{${BIN}.CHANGELOG,${BIN}.txt} + doman man/man8/${BIN}.8 + dodoc doc/{${BIN}.CHANGELOG,${BIN}.txt} - # example configuration(s) - insinto /usr/share/doc/${PF}/examples - newins "${S}"/etc/${PN}.cf.sample ${PN}.cf.dist + # example configuration + dodoc etc/${PN}.cf.sample - # plugins - dodoc -r "${S}"/plugins - - # tools - if use tools; then - dodoc -r "${S}"/tools - fi + # plugins and tools + dodoc -r plugins tools # start scripts script and respective configuration file - newinitd "${FILESDIR}"/${PN}.init.3 ${PN} + newinitd "${FILESDIR}"/${PN}.init.3-r1 ${PN} newconfd "${FILESDIR}"/${PN}.conf.3 ${PN} systemd_newunit "${FILESDIR}"/${PN}.service.3 ${PN}.service } @@ -65,33 +58,30 @@ pkg_postinst() { 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/postfwd.cf" - einfo "You can find example configurations in:" - einfo " /usr/share/doc/${PF}/examples" + 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 /etc/conf.d/${PN} to your liking."A + 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 " /usr/share/doc/${PF}/plugins" - - if use tools; then - einfo
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/files/, mail-filter/postfwd/
commit: 9cbf9208b57473f897dcf82dffdd22144e35d8d1 Author: Tomas Mozes gmail com> AuthorDate: Thu Mar 28 08:51:21 2019 + Commit: Marc Schiffbauer gentoo org> CommitDate: Mon Apr 1 22:05:45 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cbf9208 mail-filter/postfwd: improve ebuild Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Marc Schiffbauer gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/11521 mail-filter/postfwd/files/postfwd.init.3-r1 | 11 mail-filter/postfwd/postfwd-2.00-r1.ebuild | 87 + 2 files changed, 98 insertions(+) diff --git a/mail-filter/postfwd/files/postfwd.init.3-r1 b/mail-filter/postfwd/files/postfwd.init.3-r1 new file mode 100644 index 000..496fea75720 --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.init.3-r1 @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/postfwd3" +command_args="--nodaemon --file ${POSTFWD_CONFIG} --interface=${POSTFWD_LISTEN} \ + --port=${POSTFWD_PORT} ${POSTFWD_OPTS}" +command_background=true +command_user="${POSTFWD_USER}:${POSTFWD_GROUP}" +pidfile="/run/${RC_SVCNAME}.pid" +required_files="${POSTFWD_CONFIG}" diff --git a/mail-filter/postfwd/postfwd-2.00-r1.ebuild b/mail-filter/postfwd/postfwd-2.00-r1.ebuild new file mode 100644 index 000..df52b4a6f05 --- /dev/null +++ b/mail-filter/postfwd/postfwd-2.00-r1.ebuild @@ -0,0 +1,87 @@ +# 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 +}
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/files/, mail-filter/postfwd/
commit: 448235c0d7b0d5adc2e49853885e20fd166aa2d3 Author: Marc Schiffbauer gentoo org> AuthorDate: Wed Mar 27 14:15:48 2019 + Commit: Marc Schiffbauer gentoo org> CommitDate: Wed Mar 27 14:20:49 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448235c0 mail-filter/postfwd: added new version 2.00 Signed-off-by: Marc Schiffbauer gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 mail-filter/postfwd/Manifest| 1 + mail-filter/postfwd/files/postfwd.conf.3| 18 ++ mail-filter/postfwd/files/postfwd.init.3| 27 mail-filter/postfwd/files/postfwd.service.3 | 11 mail-filter/postfwd/postfwd-2.00.ebuild | 97 + 5 files changed, 154 insertions(+) diff --git a/mail-filter/postfwd/Manifest b/mail-filter/postfwd/Manifest index 1f4ca05ea01..28c0ed381da 100644 --- a/mail-filter/postfwd/Manifest +++ b/mail-filter/postfwd/Manifest @@ -1 +1,2 @@ DIST postfwd-1.35.tar.gz 354609 BLAKE2B 8e85db37d7f81be4613d9c2e411760af48650125af7b22439e3b47a8c3c7285564bfcd7a9fe4eed35d2603ddf80dcdf11d75f84afcaf3e57d53c4e986068f06c SHA512 7b0e8c8a755f085c108c45b28ec8c32139581ce129d0b8586f1876ae87f134a4fb1606d45105ccfa62351ca2d3b87f001ea52aacab0680f3345c41562bec5207 +DIST postfwd-2.00.tar.gz 265346 BLAKE2B ec67bffb5f6959e9516965516688e72f337f717a3159a094dc0373331a5fc09a451f664643a7f3e739b28d4137c130acfb39129b8557b4d41f4d445679f52623 SHA512 b9994b7dd96f1460d66ef35f173c5a4a4d72beb5b955092349304eae2672182874f07236fe5512ba3d0ecc68e2f0472e76b3667ded011536b0cf6f2d874bb039 diff --git a/mail-filter/postfwd/files/postfwd.conf.3 b/mail-filter/postfwd/files/postfwd.conf.3 new file mode 100644 index 000..578b0516171 --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.conf.3 @@ -0,0 +1,18 @@ +# /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/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.3 b/mail-filter/postfwd/files/postfwd.init.3 new file mode 100644 index 000..7fc17344a31 --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.init.3 @@ -0,0 +1,27 @@ +#!/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.3 b/mail-filter/postfwd/files/postfwd.service.3 new file mode 100644 index 000..b1d3b45cce5 --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.service.3 @@ -0,0 +1,11 @@ +[Unit] +Description=Postfix firewall daemon + +[Service] +Type=forking +ExecStart=/usr/sbin/postfwd3 --shortlog --summary=600 --cache=600 --cache-rbl-timeout=3600 --cleanup-requests=1200 --cleanup-rbls=1800 --cleanup-rates=1200 --daemon --file=/etc/postfwd.cf --interface=127.0.0.1 --port=10040 --pidfile=/var/run/postfwd.pid --user=postfwd --group=postfwd +ExecStop=/usr/sbin/postfwd3 --file=/etc/postfwd.cf --pidfile=/var/run/postfwd.pid --kill +ExecReload=/usr/sbin/postfwd3 --file=/etc/postfwd.cf --pidfile=/var/run/postfwd.pid --reload + +[Install] +WantedBy=multi-user.target diff --git a/mail-filter/postfwd/postfwd-2.00.ebuild b/mail-filter/postfwd/postfwd-2.00.ebuild new file mode 100644 index 000..f4ce5c30fd1 --- /dev/null +++ b/mail-filter/postfwd/postfwd-2.00.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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 + dev-perl/Net-CIDR-Lite + dev-perl/Net-DNS + dev-perl/Net-Server + dev-perl/NetAddr-IP + virtual/perl-Digest-MD5 + virtual/perl-Storable +
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: 4748ee1f4af5ebffbab996bd1876da9e983ee35b Author: David Seifert gentoo org> AuthorDate: Sun Nov 26 11:53:52 2017 + Commit: David Seifert gentoo org> CommitDate: Sun Nov 26 23:00:56 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4748ee1f mail-filter/postfwd: [QA] Consistent whitespace in metadata.xml mail-filter/postfwd/metadata.xml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail-filter/postfwd/metadata.xml b/mail-filter/postfwd/metadata.xml index 080f469f5bf..e192a97b430 100644 --- a/mail-filter/postfwd/metadata.xml +++ b/mail-filter/postfwd/metadata.xml @@ -10,14 +10,14 @@ Marc Schiffbauer - proxy-ma...@gentoo.org - Proxy Maintainers + proxy-ma...@gentoo.org + Proxy Maintainers - + i...@postfwd.org Jan Peter Kessler - + http://www.postfwd.org/postfwd2.CHANGELOG
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/files/
commit: 5f03d9d346c9572a25cf030f7ca925771fee1e84 Author: Michael Mair-Keimberger (asterix) gmail com> AuthorDate: Sun Dec 18 18:42:12 2016 + Commit: Göktürk Yüksek gentoo org> CommitDate: Sun Dec 18 21:44:31 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f03d9d3 mail-filter/postfwd: remove unused conf file mail-filter/postfwd/files/postfwd2.example.cf | 154 -- 1 file changed, 154 deletions(-) diff --git a/mail-filter/postfwd/files/postfwd2.example.cf b/mail-filter/postfwd/files/postfwd2.example.cf deleted file mode 100644 index 614f633.. --- a/mail-filter/postfwd/files/postfwd2.example.cf +++ /dev/null @@ -1,154 +0,0 @@ -# source: -# http://hege.li/howto/spam/etc/postfwd/postfwd.conf -# -# This version was included on 29 Mar 2010. Newer versions -# may be available. - -### -### Example config for postfwd 1.10pre8+ -### - -## Check DNS Whitelisting - -id=OK_DNSWL; \ - rbl=list.dnswl.org/^127/43200; \ - action=OK - -## Check HELO and reverse DNS - -id=SET_HELO; \ - helo_name=^(\[|[^.]+$|.*?[0-9.-]{8}); \ - action=set(HIT_helo=1) - -id=SET_NODNS; \ - client_name=^unknown$; \ - action=set(HIT_nodns=1) - -id=REJECT_HELO_NODNS; \ - HIT_helo==1; HIT_nodns==1; \ - action=REJECT Blocked - contact postmas...@example.net for help - Suspicious HELO [$$helo_name] and missing reverse DNS [$$client_address] - -## Check ZEN first for immediate blocking - less queries for other lists -## See usage policy: http://www.spamhaus.org/organization/dnsblusage.html - -id=REJECT_RBL_ZEN; \ - rbl=zen.spamhaus.org; \ - action=REJECT Blocked - contact postmas...@example.net for help - DNSBL [$$dnsbltext] - -## Check other DNSBLs in parallel - -& { \ - rbl=bl.spamcop.net; \ - rbl=b.barracudacentral.org; \ - rbl=bl.spameatingmonkey.net; \ - rbl=dnsbl-1.uceprotect.net; \ - rbl=psbl.surriel.com; \ - rbl=combined.njabl.org; \ - rbl=dnsbl.sorbs.net; \ - rbl=ix.dnsbl.manitu.net; \ -}; - -id=EVAL_DNSBLS; \ - & rblcount=all; \ - action=set(HIT_rbls=$$rblcount,HIT_dtxt=$$dnsbltext) - -id=REJECT_RBL_MULTI; \ - HIT_rbls>=2; \ - action=REJECT Blocked - contact postmas...@example.net for help - Multiple DNSBLs [$$HIT_dtxt] - -## Check RHSBLs if there wasn't enough DNSBLs hit - -&_REVERSE { \ - rhsbl_reverse_client=dynamic.rhs.mailpolice.com; \ -}; - -&_SENDER { \ - rhsbl_sender=dbl.spamhaus.org; \ - rhsbl_sender=multi.uribl.com; \ - rhsbl_sender=multi.surbl.org; \ - rhsbl_sender=rhsbl.ahbl.org; \ - rhsbl_sender=rhsbl.sorbs.net; \ - rhsbl_sender=dsn.rfc-ignorant.org; \ -}; - -id=EVAL_RHSBLS; \ - &_REVERSE; &_SENDER; rhsblcount=all; \ - action=set(HIT_rhsbls=$$rhsblcount,HIT_rtxt=$$dnsbltext) - -id=REJECT_RHSBL_MULTI; \ - HIT_rhsbls>=2; \ - action=REJECT Blocked - contact postmas...@example.net for help - Multiple RHSBLs [$$HIT_rtxt] - -## See if we get any combined hits from rules before - -id=REJECT_RBL_RHSBL; \ - HIT_rbls>=1; HIT_rhsbls>=1; \ - action=REJECT Blocked - contact postmas...@example.net for help - RHSBL and DNSBL [$$HIT_rtxt] [$$HIT_dtxt] - -id=REJECT_RBL_HELO; \ - HIT_rbls>=1; HIT_helo==1; \ - action=REJECT Blocked - contact postmas...@example.net for help - DNSBL [$$HIT_dtxt] and suspicious HELO [$$helo_name] - -id=REJECT_RBL_NODNS; \ - HIT_rbls>=1; HIT_nodns==1; \ - action=REJECT Blocked - contact postmas...@example.net for help - DNSBL [$$HIT_dtxt] and missing reverse DNS [$$client_address] - -id=REJECT_RHSBL_HELO; \ - HIT_rhsbls>=1; HIT_helo==1; \ - action=REJECT Blocked - contact postmas...@example.net for help - RHSBL [$$HIT_rtxt] and suspicious HELO [$$helo_name] - -id=REJECT_RHSBL_NODNS; \ - HIT_rhsbls>=1; HIT_nodns==1; \ - action=REJECT Blocked - contact postmas...@example.net for help - RHSBL [$$HIT_rtxt] and missing reverse DNS [$$client_address] - -## Finally greylist all lesser hits. -## -## A more DNSBL friendly way would be to greylist everything suspicious -## before DNS checks. Currently this requires you to setup some postfix -## tables before postfwd is called, since greylisting can be only done last -## in postfwd (action always exits processing). - -id=GREY_HELO; HIT_helo==1; action=check_postgrey -id=GREY_NODNS; HIT_nodns==1; action=check_postgrey -id=GREY_RBL; HIT_rbls>=1; action=check_postgrey -id=GREY_RHSBL; HIT_rhsbls>=1; action=check_postgrey - -&_GREY { \ - rbl=dnsbl-2.uceprotect.net; \ - rbl=dnsbl-3.uceprotect.net; \ -}; - -id=GREY_DNSBL; &_GREY; action=check_postgrey - - - -## -## This example is free to use as per BSD license: -## -## Copyright (c) 2008, Henrik Krohns-## All rights reserved. -## -## Redistribution and use in source and binary forms, with or without modification, -## are permitted provided that the following conditions are met: -## -## * Redistributions of source code must retain the above copyright -##notice, this list of conditions and the following disclaimer. -## * Redistributions in binary form must reproduce the
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: b41f1ca3ed54ab1e3f7d17a94624387fb5aefc3c Author: Göktürk Yüksek gentoo org> AuthorDate: Sun Dec 18 21:46:32 2016 + Commit: Göktürk Yüksek gentoo org> CommitDate: Sun Dec 18 21:46:32 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b41f1ca3 mail-filter/postfwd: remove the obsolete description tag from the metadata Package-Manager: portage-2.3.0 mail-filter/postfwd/metadata.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/mail-filter/postfwd/metadata.xml b/mail-filter/postfwd/metadata.xml index a68d695d..b3ab72e 100644 --- a/mail-filter/postfwd/metadata.xml +++ b/mail-filter/postfwd/metadata.xml @@ -4,7 +4,6 @@ i...@roessner-net.com Christian Roessner - Proxy-Maintainer. Assign bugs to him msch...@gentoo.org
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: f60ff4c94e6893aa8c3db2113e61815795e90656 Author: Kent Fredric gmail com> AuthorDate: Sun Mar 6 09:18:25 2016 + Commit: Andreas Hüttel gentoo org> CommitDate: Wed Mar 9 20:48:19 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f60ff4c9 mail-filter/postfwd: Fix dependency on dev-perl/Net-Server Package-Manager: portage-2.2.27 mail-filter/postfwd/postfwd-1.35-r3.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail-filter/postfwd/postfwd-1.35-r3.ebuild b/mail-filter/postfwd/postfwd-1.35-r3.ebuild index a35f890..c55c829 100644 --- a/mail-filter/postfwd/postfwd-1.35-r3.ebuild +++ b/mail-filter/postfwd/postfwd-1.35-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -19,7 +19,7 @@ DEPEND="" RDEPEND=">=dev-lang/perl-5.16.3 virtual/perl-Sys-Syslog dev-perl/Net-DNS - dev-perl/net-server + dev-perl/Net-Server " pkg_setup() {
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/
commit: 232f30a1baf056b35402ca343ad130b50e196173 Author: Pacho Ramos gentoo org> AuthorDate: Sat Oct 3 12:25:12 2015 + Commit: Pacho Ramos gentoo org> CommitDate: Sat Oct 3 12:25:31 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=232f30a1 mail-filter/postfwd: Drop old Package-Manager: portage-2.2.22 mail-filter/postfwd/postfwd-1.35-r2.ebuild | 87 -- 1 file changed, 87 deletions(-) diff --git a/mail-filter/postfwd/postfwd-1.35-r2.ebuild b/mail-filter/postfwd/postfwd-1.35-r2.ebuild deleted file mode 100644 index 2886529..000 --- a/mail-filter/postfwd/postfwd-1.35-r2.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils user - -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 - - # init script and respective configuration file - newinitd "${FILESDIR}"/${PN}.init ${PN} - newconfd "${FILESDIR}"/${PN}.conf ${PN} -} - -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 -}
[gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/files/, mail-filter/postfwd/
commit: 6380f83b6aa3cdb85211e79686d719943661ca92 Author: Pacho Ramos gentoo org> AuthorDate: Sat Oct 3 12:24:59 2015 + Commit: Pacho Ramos gentoo org> CommitDate: Sat Oct 3 12:25:29 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6380f83b mail-filter/postfwd: Install systemd unit file (#528034 by Stefan G. Weichinger) Package-Manager: portage-2.2.22 mail-filter/postfwd/files/postfwd.service | 11 mail-filter/postfwd/postfwd-1.35-r3.ebuild | 88 ++ 2 files changed, 99 insertions(+) diff --git a/mail-filter/postfwd/files/postfwd.service b/mail-filter/postfwd/files/postfwd.service new file mode 100644 index 000..376e8d2 --- /dev/null +++ b/mail-filter/postfwd/files/postfwd.service @@ -0,0 +1,11 @@ +[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-1.35-r3.ebuild b/mail-filter/postfwd/postfwd-1.35-r3.ebuild new file mode 100644 index 000..a35f890 --- /dev/null +++ b/mail-filter/postfwd/postfwd-1.35-r3.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +}