blob: 73781e2d7f9b846da35f5280a582f4af3daaa8ca (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_nss/mod_nss-1.0.8-r1.ebuild,v 1.2 2010/07/11 09:00:45 lxnay Exp $
EAPI="2"
WANT_AUTOMAKE="1.6"
inherit base autotools apache-module
DESCRIPTION="SSL/TLS module for the Apache HTTP server"
HOMEPAGE="http://directory.fedoraproject.org/wiki/Mod_nss"
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ecc"
DEPEND=">=dev-libs/nss-3.11.4
>=dev-libs/nspr-4.6.4
dev-util/pkgconfig
sys-apps/sed"
RDEPEND=">=dev-libs/nss-3.11.4
>=dev-libs/nspr-4.6.4
net-dns/bind-tools"
APACHE2_MOD_CONF="47_${PN}"
APACHE2_MOD_DEFINE="NSS"
DOCFILES="NOTICE README"
need_apache2
src_prepare() {
# setup proper exec name
sed -i -e 's/certutil/nsscertutil/' gencert.in || die "sed failed"
eautoreconf
}
src_configure() {
econf $(use_enable ecc) --with-apxs=${APXS} || die "econf failed"
}
src_compile() {
base_src_compile
}
src_install() {
# override broken build system
mv .libs/libmodnss.so .libs/"${PN}".so || die "cannot move lib"
dosbin gencert nss_pcache
dohtml docs/mod_nss.html
newbin migrate.pl nss_migrate
dodir /etc/apache2/nss
apache-module_src_install
}
pkg_postinst() {
apache-module_pkg_postinst
elog "If you need to generate a SSL certificate,"
elog "please use gencert tool from net-dns/bind-tools"
}
|