blob: ef65b9481c147b713e44b1a998aa70d5eccb8b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit pam user
DESCRIPTION="GNU Anubis is an outgoing mail processor"
HOMEPAGE="https://www.gnu.org/software/anubis/"
SRC_URI="mirror://gnu/anubis/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="crypt guile mysql postgres nls pam pcre sasl socks5 +gnutls tcpd test"
RDEPEND="sys-libs/gdbm
crypt? ( >=app-crypt/gpgme-1.8.0 )
guile? ( >=dev-scheme/guile-1.8 )
mysql? ( dev-db/mysql-connector-c )
pam? ( virtual/pam )
postgres? ( dev-db/postgresql:*[server] )
nls? ( sys-devel/gettext )
pcre? ( >=dev-libs/libpcre-3.9 )
sasl? ( virtual/gsasl )
gnutls? ( net-libs/gnutls )
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
DEPEND="${RDEPEND}
test? ( dev-util/dejagnu )"
REQUIRED_USE="mysql? ( sasl )
postgres? ( sasl )"
PATCHES=( "${FILESDIR}/anubis-4.2-gdbm.patch" )
pkg_setup() {
enewuser anubis
}
src_configure() {
econf --with-unprivileged-user=anubis \
--disable-rpath \
$(use_with mysql) \
$(use_with postgres) \
$(use_with pam) \
$(use_with pcre) \
$(use_enable nls) \
$(use_with guile) \
$(use_with sasl gsasl) \
$(use_with gnutls) \
$(use_with tcpd tcp-wrappers) \
$(use_with socks5 socks-proxy) \
$(use_with crypt gpgme)
}
src_test() {
emake -C testsuite check
}
src_install() {
default
docinto examples
dodoc examples/*anubis*
docinto guile
dodoc guile/*.scm
use pam && pamd_mimic system-auth anubis auth account session
}
|