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/opensmtpd-extras/
Date: Sun, 11 Oct 2015 00:19:04
Message-Id: 1444523082.da9ea683893e2d1fe5eef209ab919dec864d7975.blueness@gentoo
1 commit: da9ea683893e2d1fe5eef209ab919dec864d7975
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 00:24:32 2015 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 00:24:42 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da9ea683
7
8 mail-filter/opensmtpd-extras: add libressl support
9
10 Package-Manager: portage-2.2.20.1
11
12 .../opensmtpd-extras-5.7.1-r1.ebuild | 92 ++++++++++++++++++++++
13 1 file changed, 92 insertions(+)
14
15 diff --git a/mail-filter/opensmtpd-extras/opensmtpd-extras-5.7.1-r1.ebuild b/mail-filter/opensmtpd-extras/opensmtpd-extras-5.7.1-r1.ebuild
16 new file mode 100644
17 index 0000000..4249381
18 --- /dev/null
19 +++ b/mail-filter/opensmtpd-extras/opensmtpd-extras-5.7.1-r1.ebuild
20 @@ -0,0 +1,92 @@
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 flag-o-matic autotools
28 +
29 +DESCRIPTION="Extra tables, filters, and various other addons for OpenSMTPD"
30 +HOMEPAGE="https://github.com/OpenSMTPD/OpenSMTPD-extras"
31 +SRC_URI="https://www.opensmtpd.org/archives/${P}.tar.gz"
32 +
33 +LICENSE="ISC BSD BSD-1 BSD-2 BSD-4"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~x86"
36 +MY_COMPONENTS="
37 + filter-clamav
38 + filter-dkim-signer
39 + filter-dnsbl
40 + filter-lua
41 + filter-monkey
42 + filter-pause
43 + filter-perl
44 + filter-python
45 + filter-regex
46 + filter-spamassassin
47 + filter-stub
48 + filter-trace
49 + filter-void
50 +
51 + queue-null
52 + queue-python
53 + queue-ram
54 + queue-stub
55 +
56 + scheduler-python
57 + scheduler-ram
58 + scheduler-stub
59 +
60 + table-ldap
61 + table-mysql
62 + table-passwd
63 + table-postgres
64 + table-python
65 + table-redis
66 + table-socketmap
67 + table-sqlite
68 + table-stub
69 +"
70 +IUSE="${MY_COMPONENTS} libressl luajit"
71 +
72 +# Deps:
73 +# mysql needs -lmysqlclient
74 +# sqlite needs -lsqlite3
75 +# redis needs -lhiredis
76 +# postgres requires -lpq
77 +# ldap uses internal library and requires no deps
78 +# spamassassin uses internal library and requires no deps
79 +# clamav uses internal library and requires no deps
80 +# dnsbl needs -lasr
81 +# python requires python, currently pegged at 2.7
82 +# lua requires any lua version
83 +
84 +DEPEND="mail-mta/opensmtpd
85 + dev-libs/libevent
86 + !libressl? ( dev-libs/openssl:0 )
87 + libressl? ( dev-libs/libressl )
88 + filter-python? ( dev-lang/python:2.7 )
89 + filter-perl? ( dev-lang/perl )
90 + filter-lua? ( luajit? ( dev-lang/luajit:2 ) !luajit? ( dev-lang/lua:* ) )
91 + filter-dnsbl? ( net-libs/libasr )
92 + table-sqlite? ( dev-db/sqlite:3 )
93 + table-mysql? ( virtual/mysql )
94 + table-postgres? ( dev-db/postgresql:* )
95 + table-redis? ( dev-libs/hiredis )
96 + table-python? ( dev-lang/python:2.7 )
97 + scheduler-python? ( dev-lang/python:2.7 )
98 + queue-python? ( dev-lang/python:2.7 )
99 +"
100 +RDEPEND="${DEPEND}"
101 +
102 +src_prepare() {
103 + eautoreconf
104 +}
105 +src_configure() {
106 + econf \
107 + --with-privsep-user=smtpd \
108 + --with-privsep-path=/var/empty \
109 + --sysconfdir=/etc/opensmtpd \
110 + --with-lua-type=$(usex luajit luajit lua) \
111 + $(for use in $MY_COMPONENTS; do use_with $use; done)
112 +}