summaryrefslogtreecommitdiff
blob: 49fb71688c7bcaedc862f50c75c028a220f9ada4 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/anubis/anubis-3.6.2.ebuild,v 1.2 2003/02/13 14:22:40 vapier Exp $

DESCRIPTION="GNU Anubis is an outgoing mail processor."
HOMEPAGE="http://www.gnu.org/software/anubis/"
SRC_URI="mirror://gnu/anubis/${P}.tar.gz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~x86"
IUSE="ssl pam tcpd crypt"

DEPEND="crypt? ( >=app-crypt/gpgme-0.3.13 )
	ssl?   ( >=dev-libs/openssl-0.9.6 )
	pam?   ( >=sys-libs/pam-0.75 )
	tcpd?  ( >=sys-apps/tcp-wrappers-7.6 )
	         >=dev-libs/libpcre-3.9"

S=${WORKDIR}/${P}

src_compile() {
	local myconf
	
	myconf="--with-pcre"
	
	use crypt || myconf="${myconf} --without-gpgme"
	use ssl  && myconf="${myconf} --with-openssl"
	use pam  && myconf="${myconf} --with-pam"
	use tcpd && myconf="${myconf} --with-tcp-wrappers"

	./configure ${myconf} --prefix=/usr --host=${CHOST} || die
	emake || die
}

src_install() {
	einstall
}