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 1F1E51382C5 for ; Fri, 30 Apr 2021 06:46:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43622E085B; Fri, 30 Apr 2021 06:46:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 20278E085B for ; Fri, 30 Apr 2021 06:46:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 8F25E340D11 for ; Fri, 30 Apr 2021 06:46:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1851C737 for ; Fri, 30 Apr 2021 06:46:38 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1619765189.da8164259b730c8a0ba69d0cb292df9267c06e9b.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/opendmarc/files/, mail-filter/opendmarc/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/opendmarc/Manifest mail-filter/opendmarc/files/opendmarc-1.4.1-build-fix.patch mail-filter/opendmarc/opendmarc-1.4.1.ebuild X-VCS-Directories: mail-filter/opendmarc/files/ mail-filter/opendmarc/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: da8164259b730c8a0ba69d0cb292df9267c06e9b X-VCS-Branch: master Date: Fri, 30 Apr 2021 06:46:38 +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: c79e09d2-eb55-44c6-9741-beb458fbaa8d X-Archives-Hash: 1d558b1d1474b41c5352131fa3ce167c commit: da8164259b730c8a0ba69d0cb292df9267c06e9b Author: Fabian Groffen gentoo org> AuthorDate: Fri Apr 30 06:46:07 2021 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Fri Apr 30 06:46:29 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da816425 mail-filter/opendmarc-1.4.1: version bump Closes: https://bugs.gentoo.org/781311 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Fabian Groffen gentoo.org> mail-filter/opendmarc/Manifest | 1 + .../files/opendmarc-1.4.1-build-fix.patch | 17 ++++++ mail-filter/opendmarc/opendmarc-1.4.1.ebuild | 70 ++++++++++++++++++++++ 3 files changed, 88 insertions(+) diff --git a/mail-filter/opendmarc/Manifest b/mail-filter/opendmarc/Manifest index d24d52d896e..d5a567f1a86 100644 --- a/mail-filter/opendmarc/Manifest +++ b/mail-filter/opendmarc/Manifest @@ -1 +1,2 @@ DIST opendmarc-1.3.3.tar.gz 575319 BLAKE2B 72dae5553fea9a51d860aaac6d85171a245584a74134df2249217a88f3da04c4eb518141f6342e281c6a9186345d69a34b585dc3ed18bdb53313374db505f4f5 SHA512 bb4bf8e3ad2d1732b07e55316819d4fd708e529b54a336d7d00763e13bfc62580bb1b30f132fa786dbca15e526e8dd5e146c7be454e1c42714a9f57126fc5e12 +DIST opendmarc-1.4.1.tar.gz 426186 BLAKE2B 894b1cdce322950729de542d9c36d1a3226d6eff519ddce5715b50fd561edb815bef33b01194f216ac5388626dab6157391d837da3f11f7e67e3c52a1350f06c SHA512 df0276ebb9a72bfd5bf339976661f48ac66e273f17f66ee633c0017c588936fa0f4236ed15167c834bd394d8ff17dffcc07a92734093e63f84847dab35e69404 diff --git a/mail-filter/opendmarc/files/opendmarc-1.4.1-build-fix.patch b/mail-filter/opendmarc/files/opendmarc-1.4.1-build-fix.patch new file mode 100644 index 00000000000..9be5752828c --- /dev/null +++ b/mail-filter/opendmarc/files/opendmarc-1.4.1-build-fix.patch @@ -0,0 +1,17 @@ +https://github.com/trusteddomainproject/OpenDMARC/issues/163 + +mdomsch + +commit ab1bc01 removed conf_holdquarentinedmessages, but not completely. +A reference to it still exists which causes the build to fail. + +--- a/opendmarc/opendmarc.c ++++ b/opendmarc/opendmarc.c +@@ -3591,7 +3591,6 @@ + ret = SMFIS_CONTINUE; + + if (conf->conf_rejectfail && +- conf->conf_holdquarantinedmessages && + random() % 100 < pct) + { + snprintf(replybuf, sizeof replybuf, diff --git a/mail-filter/opendmarc/opendmarc-1.4.1.ebuild b/mail-filter/opendmarc/opendmarc-1.4.1.ebuild new file mode 100644 index 00000000000..6bbee3d7628 --- /dev/null +++ b/mail-filter/opendmarc/opendmarc-1.4.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib 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" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="spf +reports static-libs" + +DEPEND="reports? ( dev-perl/DBI ) + || ( mail-filter/libmilter mail-mta/sendmail )" +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-build-fix.patch +) + +S=${WORKDIR}/OpenDMARC-rel-${PN}-${PV//./-} + +src_prepare() { + default + + eautoreconf + if use !reports ; then + sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die + fi +} + +src_configure() { + econf \ + $(use_with spf) \ + $(use_with spf spf2-include "${EPREFIX}"/usr/include/spf2) \ + $(use_with spf spf2-lib "${EPREFIX}"/usr/$(get_libdir)) \ + $(use_enable static-libs static) +} + +src_install() { + default + + use static-libs || rm -f "${ED}"/usr/$(get_libdir)/*.la + + 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 +}