summaryrefslogtreecommitdiff
blob: a8035cba23f86fce78ebe338726d3f316b348776 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_gnutls/mod_gnutls-0.2.0.ebuild,v 1.5 2007/04/11 14:50:01 chtekk Exp $

inherit apache-module ssl-cert

KEYWORDS="amd64 ~sparc ~x86"

DESCRIPTION="mod_gnutls uses GnuTLS to provide SSL v3, TLS 1.0 and TLS 1.1 encryption for Apache2, similarly to mod_ssl."
HOMEPAGE="http://www.outoforder.cc/projects/apache/mod_gnutls/"
SRC_URI="http://www.outoforder.cc/downloads/${PN}/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""

DEPEND=">=net-libs/gnutls-1.2.0"
RDEPEND="${DEPEND}"

APACHE2_MOD_CONF="47_${PN}"
APACHE2_MOD_DEFINE="GNUTLS"

DOCFILES="LICENSE NOTICE README"

need_apache2

src_compile() {
	econf --with-apxs=${APXS2} || die "econf failed"

	emake || die "emake failed"
}

src_install() {
	mv -f "src/.libs/libmod_gnutls.so" "src/.libs/${PN}.so"

	insinto "${APACHE2_CONFDIR}"
	doins data/rsafile data/dhfile

	keepdir "${APACHE2_CONFDIR}/ssl"
	keepdir /var/cache/${PN}

	apache-module_src_install
}