Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 32436 | Differences between
and this patch

Collapse All | Expand All

(-)mod_ldap_userdir.orig/mod_ldap_userdir-1.1.4.ebuild (-4 / +22 lines)
Lines 1-7 Link Here
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
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: $ 
3
4
4
# supposedly this module also supports apache1, depends on apache2 until tested.
5
detectapache() {
5
detectapache() {
6
        local domsg=
6
        local domsg=
7
        [ -n "$1" ] && domsg=1
7
        [ -n "$1" ] && domsg=1
Lines 48-54 Link Here
48
S=${WORKDIR}/${P}
48
S=${WORKDIR}/${P}
49
SRC_URI="http://horde.net/~jwm/software/mod_ldap_userdir/mod_ldap_userdir-1.1.4.tar.bz2"
49
SRC_URI="http://horde.net/~jwm/software/mod_ldap_userdir/mod_ldap_userdir-1.1.4.tar.bz2"
50
50
51
DEPEND="=net-www/apache-2*
51
DEPEND=" apache2? =net-www/apache-2*
52
		!apache2? =net-www/apache-1*
52
		net-nds/openldap"
53
		net-nds/openldap"
53
54
54
LICENSE="GPL"
55
LICENSE="GPL"
Lines 57-62 Link Here
57
src_compile() {
58
src_compile() {
58
	local myconf
59
	local myconf
59
	use apache2 && myconf="${myconf} --with-apxs=/usr/sbin/apxs2"
60
	use apache2 && myconf="${myconf} --with-apxs=/usr/sbin/apxs2"
61
	use apache2 || myconf="${myconf} --with-apxs=/usr/sbin/apxs"
60
	myconf="${myconf} --with-activate"
62
	myconf="${myconf} --with-activate"
61
	./configure ${myconf} || die
63
	./configure ${myconf} || die
62
	make clean
64
	make clean
Lines 70-76 Link Here
70
	exeinto /usr/lib/apache${apache}-extramodules
72
	exeinto /usr/lib/apache${apache}-extramodules
71
	doexe mod_ldap_userdir.so
73
	doexe mod_ldap_userdir.so
72
74
73
	insinto /etc/apache${apache}/conf/modules.d
75
	use apache2 && insinto /etc/apache${apache}/conf/modules.d
76
	use apache2 || insinto /etc/apache/conf/addon-modules
74
	doins ${FILESDIR}/47_mod_ldap_userdir.conf
77
	doins ${FILESDIR}/47_mod_ldap_userdir.conf
75
}
78
}
76
79
Lines 79-84 Link Here
79
    if [ -n "${USE_APACHE2}" ] ; then
82
    if [ -n "${USE_APACHE2}" ] ; then
80
        einfo "Adjust /etc/apache2/conf/modules.d/47_mod_ldap_userdir.conf to match your setup and"
83
        einfo "Adjust /etc/apache2/conf/modules.d/47_mod_ldap_userdir.conf to match your setup and"
81
		einfo "add '-D LDAPuserdir' to your APACHE2_OPTS in /etc/conf.d/apache2"
84
		einfo "add '-D LDAPuserdir' to your APACHE2_OPTS in /etc/conf.d/apache2"
85
	else
86
        einfo
87
        einfo "Execute \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
88
        einfo "to have your apache.conf auto-updated for use with this module."
89
        einfo "You should then edit your /etc/conf.d/apache file to suit."
90
        einfo
82
    fi
91
    fi
83
}
92
}
84
93
94
95
96
pkg_config() {
97
	/usr/sbin/apacheaddmod \
98
		${ROOT}/etc/apache/conf/apache.conf \
99
		extramodules/mod_ldap_userdir.so mod_ldap_userdir.c ldap_userdir_module \
100
		define=LDAPuserdir addconf=conf/addon-modules/47_mod_ldap_userdir.conf
101
}
102

Return to bug 32436