Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/sid-milter/
Date: Sun, 11 Oct 2015 00:30:56
Message-Id: 1444523780.6e003ab6ec9e5a92430594dc7f6bc5959863886c.blueness@gentoo
1 commit: 6e003ab6ec9e5a92430594dc7f6bc5959863886c
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 00:36:20 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 00:36:20 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e003ab6
7
8 mail-filter/sid-milter: add libressl support
9
10 Package-Manager: portage-2.2.20.1
11
12 mail-filter/sid-milter/sid-milter-1.0.0-r7.ebuild | 67 +++++++++++++++++++++++
13 1 file changed, 67 insertions(+)
14
15 diff --git a/mail-filter/sid-milter/sid-milter-1.0.0-r7.ebuild b/mail-filter/sid-milter/sid-milter-1.0.0-r7.ebuild
16 new file mode 100644
17 index 0000000..c38bf17
18 --- /dev/null
19 +++ b/mail-filter/sid-milter/sid-milter-1.0.0-r7.ebuild
20 @@ -0,0 +1,67 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +inherit eutils toolchain-funcs user
28 +
29 +DESCRIPTION="A milter-based application to provide Sender-ID verification service"
30 +HOMEPAGE="http://sourceforge.net/projects/sid-milter/"
31 +SRC_URI="mirror://sourceforge/sid-milter/${P}.tar.gz"
32 +
33 +LICENSE="Sendmail-Open-Source"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~x86"
36 +IUSE="ipv6 libressl"
37 +
38 +DEPEND="
39 + !libressl? ( dev-libs/openssl:0 )
40 + libressl? ( dev-libs/libressl )
41 + >=sys-libs/db-3.2:*
42 + || ( mail-filter/libmilter mail-mta/sendmail )"
43 +RDEPEND="${DEPEND}
44 + sys-apps/openrc"
45 +
46 +pkg_setup() {
47 + enewgroup milter
48 + # mail-milter/spamass-milter creates milter user with this home directory
49 + # For consistency reasons, milter user must be created here with this home directory
50 + # even though this package doesn't need a home directory for this user (#280571)
51 + enewuser milter -1 -1 /var/lib/milter milter
52 +}
53 +
54 +src_prepare() {
55 + epatch "${FILESDIR}"/${P}-nopra_on_spf1.patch
56 + epatch "${FILESDIR}"/${P}-as-needed.patch
57 +
58 + local CC="$(tc-getCC)"
59 + local ENVDEF=""
60 + use ipv6 && ENVDEF="${ENVDEF} -DNETINET6"
61 + sed -e "s:@@CC@@:${CC}:" \
62 + -e "s:@@CFLAGS@@:${CFLAGS}:" \
63 + -e "s:@@LDFLAGS@@:${LDFLAGS}:" \
64 + -e "s:@@ENVDEF@@:${ENVDEF}:" \
65 + "${FILESDIR}/gentoo-config.m4" > "${S}/devtools/Site/site.config.m4" \
66 + || die "failed to generate site.config.m4"
67 +}
68 +
69 +src_compile() {
70 + emake -j1
71 +}
72 +
73 +src_install() {
74 + dodir /usr/bin
75 + emake -j1 DESTDIR="${D}" SUBDIRS=sid-filter \
76 + SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
77 + install
78 +
79 + newinitd "${FILESDIR}/sid-filter.init-r1" sid-filter
80 + newconfd "${FILESDIR}/sid-filter.conf" sid-filter
81 +
82 + # man build is broken; do man page installation by hand
83 + doman */*.8
84 +
85 + # some people like docs
86 + dodoc RELEASE_NOTES *.txt sid-filter/README
87 +}