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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 45FBF158096 for ; Thu, 4 Aug 2022 01:45:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AE50E0D75; Thu, 4 Aug 2022 01:45:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85A49E0D77 for ; Thu, 4 Aug 2022 01:45:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 87AB0340C50 for ; Thu, 4 Aug 2022 01:45:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3B2956A for ; Thu, 4 Aug 2022 01:45:48 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1659575114.97993d1f97a199a0bbdee503647441aabf65dde1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendmarc/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild X-VCS-Directories: mail-filter/opendmarc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 97993d1f97a199a0bbdee503647441aabf65dde1 X-VCS-Branch: master Date: Thu, 4 Aug 2022 01:45:48 +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: d08866d9-bba8-428c-a6c4-fb423fd500b8 X-Archives-Hash: 1640225f8a3b387b3fb9231c75ec5427 commit: 97993d1f97a199a0bbdee503647441aabf65dde1 Author: Sam James gentoo org> AuthorDate: Thu Aug 4 01:04:06 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Aug 4 01:05:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97993d1f mail-filter/opendmarc: depend on libmilter libmilter and sendmail no longer block each other, and we also need a := dep on libmilter. (Straight-to-stable is intentional as long been in stable anyway, but not dropping old w/ git mv or similar yet in case folks want to downgrade to older sendmail for now.) Signed-off-by: Sam James gentoo.org> mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild | 70 +++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild b/mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild new file mode 100644 index 000000000000..c78d15504262 --- /dev/null +++ b/mail-filter/opendmarc/opendmarc-1.4.1.1-r5.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools systemd + +DESCRIPTION="Open source DMARC implementation" +HOMEPAGE="http://www.trusteddomain.org/opendmarc/" +SRC_URI="https://github.com/trusteddomainproject/OpenDMARC/archive/rel-${PN}-${PV//./-}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/OpenDMARC-rel-${PN}-${PV//./-}" + +LICENSE="BSD" +SLOT="0/3" # 1.4 has API breakage with 1.3, yet uses same soname +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 sparc x86" +IUSE="spf +reports" + +DEPEND="mail-filter/libmilter:= + reports? ( dev-perl/DBI )" +RDEPEND="${DEPEND} + acct-user/opendmarc + reports? ( + dev-perl/DBD-mysql + dev-perl/HTTP-Message + dev-perl/Switch + ) + spf? ( mail-filter/libspf2 )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.1.1-CVE-2021-34555.patch + "${FILESDIR}"/${PN}-1.4.1.1-underlinking.patch +) + +src_prepare() { + default + + eautoreconf + if use !reports ; then + sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die + fi +} + +src_configure() { + econf \ + --disable-static \ + $(use_with spf) \ + $(use_with spf spf2-include "${EPREFIX}"/usr/include/spf2) \ + $(use_with spf spf2-lib "${EPREFIX}"/usr/$(get_libdir)) +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die + + newinitd "${FILESDIR}"/opendmarc.initd opendmarc + newconfd "${FILESDIR}"/opendmarc.confd opendmarc + systemd_dounit "${FILESDIR}/${PN}.service" + + dodir /etc/opendmarc + + # create config file + sed \ + -e 's:^# UserID .*$:UserID opendmarc:' \ + -e "s:^# PidFile .*:PidFile ${EPREFIX}/var/run/opendmarc/opendmarc.pid:" \ + -e '/^# Socket /s:^# ::' \ + "${S}"/opendmarc/opendmarc.conf.sample \ + > "${ED}"/etc/opendmarc/opendmarc.conf \ + || die +}