Lines 1-7
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_ldap_userdir/mod_ldap_userdir-1.1.4.ebuild,v 1.5 2005/01/09 00:32:44 hollow Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-www/mod_ldap_userdir/mod_ldap_userdir-1.1.4.ebuild,v 1.5 2005/01/09 00:32:44 hollow Exp $ |
4 |
IUSE="apache2" |
4 |
IUSE="apache2 ssl" |
5 |
|
5 |
|
6 |
DESCRIPTION="Apache module that enables ~/public_html from an LDAP directory." |
6 |
DESCRIPTION="Apache module that enables ~/public_html from an LDAP directory." |
7 |
HOMEPAGE="http://horde.net/~jwm/software/mod_ldap_userdir/" |
7 |
HOMEPAGE="http://horde.net/~jwm/software/mod_ldap_userdir/" |
Lines 10-17
Link Here
|
10 |
S=${WORKDIR}/${P} |
10 |
S=${WORKDIR}/${P} |
11 |
SRC_URI="http://horde.net/~jwm/software/mod_ldap_userdir/${P}.tar.gz" |
11 |
SRC_URI="http://horde.net/~jwm/software/mod_ldap_userdir/${P}.tar.gz" |
12 |
|
12 |
|
13 |
DEPEND="=net-www/apache-1* |
13 |
DEPEND="!apache2? ( =net-www/apache-1* ) |
14 |
apache2? ( =net-www/apache-2* ) |
|
|
15 |
ssl? ( dev-libs/openssl ) |
14 |
ssl? ( dev-libs/openssl ) |
16 |
net-nds/openldap" |
15 |
net-nds/openldap" |
17 |
|
16 |
|
Lines 21-32
Link Here
|
21 |
src_compile() { |
20 |
src_compile() { |
22 |
local myconf |
21 |
local myconf |
23 |
if use apache2; then |
22 |
if use apache2; then |
24 |
myconf="${myconf} --with-apxs2=/usr/sbin/apxs2" |
23 |
myconf="${myconf} --with-apxs=/usr/sbin/apxs2" |
25 |
else |
24 |
else |
26 |
myconf="${myconf} --with-apxs=/usr/sbin/apxs" |
25 |
myconf="${myconf} --with-apxs=/usr/sbin/apxs" |
27 |
fi |
26 |
fi |
28 |
|
27 |
|
29 |
use ssl && myconf="${myconf} -with-tls" |
28 |
use ssl && myconf="${myconf} --with-tls" |
30 |
|
29 |
|
31 |
myconf="${myconf} --with-activate" |
30 |
myconf="${myconf} --with-activate" |
32 |
./configure ${myconf} || die "Configure failed" |
31 |
./configure ${myconf} || die "Configure failed" |
Lines 38-43
Link Here
|
38 |
if use apache2; then |
37 |
if use apache2; then |
39 |
exeinto /usr/lib/apache2-extramodules |
38 |
exeinto /usr/lib/apache2-extramodules |
40 |
doexe mod_ldap_userdir.so |
39 |
doexe mod_ldap_userdir.so |
|
|
40 |
insinto /etc/apache2/conf/modules.d |
41 |
doins ${FILESDIR}/47_mod_ldap_userdir.conf |
41 |
else |
42 |
else |
42 |
exeinto /usr/lib/apache-extramodules |
43 |
exeinto /usr/lib/apache-extramodules |
43 |
doexe mod_ldap_userdir.so |
44 |
doexe mod_ldap_userdir.so |
Lines 49-54
Link Here
|
49 |
if use apache2; then |
50 |
if use apache2; then |
50 |
einfo "Adjust /etc/apache2/conf/modules.d/47_mod_ldap_userdir.conf to match your setup and" |
51 |
einfo "Adjust /etc/apache2/conf/modules.d/47_mod_ldap_userdir.conf to match your setup and" |
51 |
einfo "add '-D LDAPuserdir' to your APACHE2_OPTS in /etc/conf.d/apache2" |
52 |
einfo "add '-D LDAPuserdir' to your APACHE2_OPTS in /etc/conf.d/apache2" |
|
|
53 |
else |
54 |
einfo "Adjust /etc/apache/conf/addon-modules/47_mod_ldap_userdir.conf to match your setup." |
52 |
einfo "To configure the package run \"ebuild /var/db/pkg/net-www/${PF}/${PF}.ebuild config\"" |
55 |
einfo "To configure the package run \"ebuild /var/db/pkg/net-www/${PF}/${PF}.ebuild config\"" |
53 |
fi |
56 |
fi |
54 |
} |
57 |
} |