From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9695139347 for ; Sun, 11 Jul 2021 19:07:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3593E0D61; Sun, 11 Jul 2021 19:07:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AC725E0D61 for ; Sun, 11 Jul 2021 19:07:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E707B342B0A for ; Sun, 11 Jul 2021 19:07:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 56ABF7CE for ; Sun, 11 Jul 2021 19:07:43 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1626030447.3defd2e0d2aacb510d6e56aff7227ad36be9353f.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/postfwd/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/postfwd/postfwd-2.02-r1.ebuild X-VCS-Directories: mail-filter/postfwd/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 3defd2e0d2aacb510d6e56aff7227ad36be9353f X-VCS-Branch: master Date: Sun, 11 Jul 2021 19:07:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 668fb590-c2a5-45f0-aa02-39b18e074d2e X-Archives-Hash: cabf0bbf7ebf81c6559a289f80fe4096 commit: 3defd2e0d2aacb510d6e56aff7227ad36be9353f Author: Conrad Kostecki gentoo org> AuthorDate: Sun Jul 11 19:04:06 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sun Jul 11 19:07:27 2021 +0000 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 00000000000..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 +}