diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 08:42:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-10-27 08:42:41 +0100 |
commit | 0fcaac21e786bd7911b1e8f436cd885c5e2f6437 (patch) | |
tree | ba392915815492b0ce486fc0e3ad5afb4a849b6f /mail-filter/postgrey/postgrey-1.37_p20230714.ebuild | |
parent | e30edd47e1804bf3ed1ea7be2eac67f4b8cd9f38 (diff) |
gentoo auto-resync : 27:10:2023 - 08:42:41
Diffstat (limited to 'mail-filter/postgrey/postgrey-1.37_p20230714.ebuild')
-rw-r--r-- | mail-filter/postgrey/postgrey-1.37_p20230714.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/mail-filter/postgrey/postgrey-1.37_p20230714.ebuild b/mail-filter/postgrey/postgrey-1.37_p20230714.ebuild new file mode 100644 index 000000000000..36bacbd45f11 --- /dev/null +++ b/mail-filter/postgrey/postgrey-1.37_p20230714.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +COMMIT="5f60afc8e77cc2b12682636de4ad983992d6a1d2" +DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting" +HOMEPAGE="https://postgrey.schweikert.ch/" +SRC_URI="https://github.com/schweikert/postgrey/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="selinux" + +DEPEND=" + acct-group/postgrey + acct-user/postgrey +" +# TODO: Use db.eclass? +RDEPEND=" + ${DEPEND} + >=dev-lang/perl-5.6.0 + dev-perl/Net-Server + dev-perl/IO-Multiplex + dev-perl/BerkeleyDB + dev-perl/Net-DNS + dev-perl/NetAddr-IP + dev-perl/Net-RBLClient + dev-perl/Parse-Syslog + virtual/perl-Digest-SHA + >=sys-libs/db-4.1 + selinux? ( sec-policy/selinux-postgrey ) +" + +src_prepare() { + default + + # bug #479400 + sed -i 's@#!/usr/bin/perl -T -w@#!/usr/bin/perl -w@' postgrey || die "sed failed" + sed -i -e '/git/d' Makefile || die +} + +src_install() { + # postgrey data/DB in /var + diropts -m0770 -o ${PN} -g ${PN} + dodir /var/spool/postfix/${PN} + keepdir /var/spool/postfix/${PN} + fowners postgrey:postgrey /var/spool/postfix/${PN} + fperms 0770 /var/spool/postfix/${PN} + + # postgrey binary + dosbin ${PN} + dosbin contrib/postgreyreport + + # policy-test script + dosbin policy-test + + # postgrey data in /etc/postfix + insinto /etc/postfix + insopts -o root -g ${PN} -m 0640 + doins postgrey_whitelist_clients postgrey_whitelist_recipients + + # documentation + dodoc Changes README README.exim + + # init.d + conf.d files + insopts -o root -g root -m 755 + newinitd "${FILESDIR}"/${PN}-1.34-r3.rc.new ${PN} + + insopts -o root -g root -m 640 + newconfd "${FILESDIR}"/${PN}.conf.new ${PN} + + systemd_dounit "${FILESDIR}"/postgrey.service +} |