summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-06-27 15:29:42 +0200
committerFabian Groffen <grobian@gentoo.org>2017-06-27 15:29:57 +0200
commit20f1462f51def007b2a932a4488744e6b32cae12 (patch)
treebd6864dd94b44c04cb0c3df345fb806f22c47df8 /mail-filter/opendmarc
parentapp-misc/elasticsearch: version bump to 5.4.2, drop old and cleanup. (diff)
downloadgentoo-20f1462f51def007b2a932a4488744e6b32cae12.tar.gz
gentoo-20f1462f51def007b2a932a4488744e6b32cae12.tar.bz2
gentoo-20f1462f51def007b2a932a4488744e6b32cae12.zip
mail-filter/opendmarc: add reports USE-flag to hide perl dependencies, bug #622612
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'mail-filter/opendmarc')
-rw-r--r--mail-filter/opendmarc/metadata.xml2
-rw-r--r--mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild18
2 files changed, 16 insertions, 4 deletions
diff --git a/mail-filter/opendmarc/metadata.xml b/mail-filter/opendmarc/metadata.xml
index 833cd0fc6346..a2f23494aa42 100644
--- a/mail-filter/opendmarc/metadata.xml
+++ b/mail-filter/opendmarc/metadata.xml
@@ -14,5 +14,7 @@
<use>
<flag name="spf">Use the <pkg>mail-filter/libspf2</pkg>
for Sender Policy Framework checking</flag>
+ <flag name="reports">Install the reports binaries: expire,
+ import, reports, params</flag>
</use>
</pkgmetadata>
diff --git a/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild b/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild
index 50e8bb5bf2de..f701f5636acd 100644
--- a/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild
+++ b/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild
@@ -12,13 +12,16 @@ SRC_URI="mirror://sourceforge/opendmarc/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~x86 ~x86-fbsd"
-IUSE="spf"
+IUSE="spf +reports"
-DEPEND="dev-perl/DBI
+DEPEND="reports? ( dev-perl/DBI )
|| ( mail-filter/libmilter mail-mta/sendmail )"
RDEPEND="${DEPEND}
- dev-perl/HTTP-Message
- dev-perl/Switch
+ reports? (
+ dev-perl/DBD-mysql
+ dev-perl/HTTP-Message
+ dev-perl/Switch
+ )
spf? ( mail-filter/libspf2 )"
pkg_setup() {
@@ -26,6 +29,13 @@ pkg_setup() {
enewuser milter -1 -1 /var/lib/milter milter
}
+src_prepare() {
+ default
+ if use !reports ; then
+ sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die
+ fi
+}
+
src_configure() {
econf \
--docdir="${EPREFIX}"/usr/share/doc/${PF} \