diff options
author | Vieri Di Paola <rentorbuy@yahoo.com> | 2022-08-29 11:48:00 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-25 06:51:07 +0100 |
commit | bb2427ffa72ef11c0589318af1f4ac51861dae95 (patch) | |
tree | a14b1136656a673e6c61b94426c6f7379b8585d7 /mail-filter/mimedefang/mimedefang-3.1.ebuild | |
parent | net-misc/rsync: drop 3.2.4-r1, 3.2.5-r1 (diff) | |
download | gentoo-bb2427ffa72ef11c0589318af1f4ac51861dae95.tar.gz gentoo-bb2427ffa72ef11c0589318af1f4ac51861dae95.tar.bz2 gentoo-bb2427ffa72ef11c0589318af1f4ac51861dae95.zip |
mail-filter/mimedefang: version bump to 3.1 and several fixes
* PID dir according to upstream changelog (2017)
* Perl vendor path
* Unit test
* Postfix and sendmail dependencies (virtual/mta too broad)
Closes: https://bugs.gentoo.org/801646
Closes: https://bugs.gentoo.org/866662
Signed-off-by: Vieri Di Paola <rentorbuy@yahoo.com>
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'mail-filter/mimedefang/mimedefang-3.1.ebuild')
-rw-r--r-- | mail-filter/mimedefang/mimedefang-3.1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/mail-filter/mimedefang/mimedefang-3.1.ebuild b/mail-filter/mimedefang/mimedefang-3.1.ebuild new file mode 100644 index 000000000000..80c4242a862d --- /dev/null +++ b/mail-filter/mimedefang/mimedefang-3.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Antispam, antivirus and other customizable filters for MTAs with Milter support" +HOMEPAGE="https://www.mimedefang.org/" +SRC_URI="https://mimedefang.org/releases/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="clamav +poll test" +RESTRICT="!test? ( test )" + +RDEPEND=" + || ( mail-mta/sendmail mail-mta/postfix ) + acct-group/defang + acct-user/defang + dev-perl/Digest-SHA1 + dev-perl/IO-stringy + dev-perl/MailTools + dev-perl/MIME-tools + dev-perl/Unix-Syslog + mail-filter/libmilter:= + virtual/perl-MIME-Base64 + clamav? ( app-antivirus/clamav ) +" + +DEPEND=" + ${RDEPEND} + test? ( + dev-perl/Test-Class + dev-perl/Test-Most + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.72-ldflags.patch" + "${FILESDIR}/${PN}-vendor.patch" + "${FILESDIR}/${PN}-tests2.patch" +) + +src_configure() { + local myeconfargs=( + --with-user=defang + $(use_enable poll) + $(use_enable clamav) + $(use_enable clamav clamd) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + emake DESTDIR="${D}" INSTALL_STRIP_FLAG="" install + + fowners defang:defang /etc/mail/mimedefang-filter + fperms 644 /etc/mail/mimedefang-filter + insinto /etc/mail/ + newins "${S}"/SpamAssassin/spamassassin.cf sa-mimedefang.cf + + keepdir /var/spool/{MD-Quarantine,MIMEDefang} + fowners defang:defang /var/spool/{MD-Quarantine,MIMEDefang} + fperms 700 /var/spool/{MD-Quarantine,MIMEDefang} + + keepdir /var/log/mimedefang + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + dodoc -r examples contrib +} + +pkg_postinst() { + elog "You can install Mail::SpamAssassin (mail-filter/spamassassin) and" + elog "HTML::Parser (dev-perl/HTML-Parser) even after installing if you require" + elog "them as they are loaded at run-time." +} |