Diff opendmarc-1.1.3 with a opendmarc-1.3.2-r1

/usr/portage/mail-filter/opendmarc/opendmarc-1.3.2-r1.ebuild 2018-03-08 23:08:00.000000000 +0300
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2018 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=6
5

  
6
inherit user systemd
5 7

  
6 8
DESCRIPTION="Open source DMARC implementation "
7 9
HOMEPAGE="http://www.trusteddomain.org/opendmarc/"
......
9 11

  
10 12
LICENSE="BSD"
11 13
SLOT="0"
12
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
13
IUSE=""
14
KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~x86 ~x86-fbsd"
15
IUSE="spf +reports"
14 16

  
15
DEPEND="dev-perl/DBI
17
DEPEND="reports? ( dev-perl/DBI )
16 18
	|| ( mail-filter/libmilter mail-mta/sendmail )"
17 19
RDEPEND="${DEPEND}
18
	dev-perl/Switch"
20
	reports? (
21
		dev-perl/DBD-mysql
22
		dev-perl/HTTP-Message
23
		dev-perl/Switch
24
	)
25
	spf? ( mail-filter/libspf2 )"
26

  
27
pkg_setup() {
28
	enewgroup milter
29
	enewuser milter -1 -1 /var/lib/milter milter
30
}
19 31

  
20 32
src_prepare() {
21
	# fix building with newer glibc, already fixed in later releases, #640012
22
	sed -i -e 's/T_RRSIG/disabled_T_RRSIG/' libopendmarc/opendmarc_dns.c || die
33
	default
34
	if use !reports ; then
35
		sed -i -e '/^SUBDIRS =/s/reports//' Makefile.in || die
36
	fi
23 37
}
24 38

  
25 39
src_configure() {
26 40
	econf \
27 41
		--docdir="${EPREFIX}"/usr/share/doc/${PF} \
28
		--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
42
		--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
43
		$(use_with spf) \
44
		$(use_with spf spf2-include "${EPREFIX}"/usr/include/spf2) \
45
		$(use_with spf spf2-lib "${EPREFIX}"/usr/lib)
46
}
47

  
48
src_install() {
49
	default
50

  
51
	newinitd "${FILESDIR}"/opendmarc.initd opendmarc
52
	newconfd "${FILESDIR}"/opendmarc.confd opendmarc
53
	systemd_dounit "${FILESDIR}/${PN}.service"
54

  
55
	dodir /etc/opendmarc
56

  
57
	# create config file
58
	sed \
59
		-e 's:^# UserID .*$:UserID milter:' \
60
		-e "s:^# PidFile .*:PidFile ${EPREFIX}/var/run/opendmarc/opendmarc.pid:" \
61
		-e '/^# Socket /s:^# ::' \
62
		"${S}"/opendmarc/opendmarc.conf.sample \
63
		> "${ED}"/etc/opendmarc/opendmarc.conf \
64
		|| die
29 65
}
Thank you!