Lines 1-37
Link Here
|
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
1 |
# Copyright 1999-2003 Gentoo Technologies, Inc. |
|
|
2 |
# Copyright 2003 The Trustees of Indiana University |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /home/cvsroot/gentoo-x86/net-www/mod_auth_kerb/mod_auth_kerb-4.11.ebuild,v 1.3 2003/06/06 23:58:22 rphillips Exp $ |
|
|
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils |
6 |
|
6 |
|
7 |
DESCRIPTION="An Apache2 authentication DSO using Kerberos" |
7 |
DESCRIPTION="An Apache authentication DSO using Kerberos" |
8 |
HOMEPAGE="http://modauthkerb.sourceforge.net/" |
8 |
HOMEPAGE="http://modauthkerb.sourceforge.net/" |
9 |
|
9 |
|
10 |
S=${WORKDIR}/src |
10 |
S=${WORKDIR}/src |
11 |
SRC_URI="mirror://sourceforge/modauthkerb/${P}.tar.gz" |
11 |
SRC_URI="mirror://sourceforge/modauthkerb/mod_auth_kerb-4.13.tar.gz" |
12 |
DEPEND="app-crypt/mit-krb5 =net-www/apache-2*" |
12 |
DEPEND="app-crypt/mit-krb5 |
|
|
13 |
apache2? ( =net-www/apache-2* ) |
14 |
!apache2? ( =net-www/apache/apache-1* )" |
13 |
LICENSE="Apache-1.1" |
15 |
LICENSE="Apache-1.1" |
14 |
KEYWORDS="~x86" |
16 |
KEYWORDS="x86" |
15 |
IUSE="" |
17 |
IUSE="" |
16 |
SLOT="0" |
18 |
SLOT="0" |
17 |
|
19 |
|
18 |
src_unpack() { |
20 |
src_unpack() { |
19 |
unpack ${A} || die; cd ${S} || die; |
21 |
unpack ${A} || die; cd ${S} || die; |
20 |
epatch ${FILESDIR}/mod_auth_kerb_register.patch |
22 |
if [ "`use apache2`" ]; \ |
|
|
23 |
then epatch ${FILESDIR}/mod_auth_kerb_register.patch; \ |
24 |
fi |
21 |
} |
25 |
} |
22 |
|
26 |
|
23 |
src_compile() { |
27 |
src_compile() { |
24 |
cd modules/kerberos |
28 |
cd modules/kerberos |
25 |
apxs2 -DAPXS2 -DKRB5 -DKRB5_SAVE_CREDENTIALS \ |
29 |
if [ "`use apache2`" ]; \ |
|
|
30 |
then apxs2 -DAPXS2 -DKRB5 -DKRB5_SAVE_CREDENTIALS \ |
26 |
-DKRB_DEF_REALM=\\\"EOS.NCSU.EDU\\\" \ |
31 |
-DKRB_DEF_REALM=\\\"EOS.NCSU.EDU\\\" \ |
27 |
-ldl -lkrb5 -lcom_err -lk5crypto -c ${PN}.c || die |
32 |
-ldl -lkrb5 -lcom_err -lk5crypto -c mod_auth_kerb.c || die; \ |
|
|
33 |
else |
34 |
apxs -DKRB5 -DKRB5_SAVE_CREDENTIALS \ |
35 |
-DKRB_DEF_REALM=\\\"EOS.NCSU.EDU\\\" \ |
36 |
-ldl -lkrb5 -lcom_err -lk5crypto -c mod_auth_kerb.c || die; \ |
37 |
fi |
28 |
} |
38 |
} |
29 |
|
39 |
|
30 |
src_install() { |
40 |
src_install() { |
31 |
exeinto /usr/lib/apache2-extramodules |
41 |
if [ "`use apache2`" ] |
32 |
doexe modules/kerberos/.libs/${PN}.so |
42 |
then |
33 |
insinto /etc/apache2/conf/modules.d |
43 |
exeinto /usr/lib/apache2-extramodules |
34 |
doins ${FILESDIR}/11_mod_auth_kerb.conf |
44 |
doexe modules/kerberos/mod_auth_kerb.so |
35 |
dodoc ${FILESDIR}/11_mod_auth_kerb.conf |
45 |
insinto /etc/apache2/conf/modules.d |
36 |
#thats all the docs there is right now! |
46 |
else |
|
|
47 |
exeinto /usr/lib/apache-extramodules; \ |
48 |
doexe modules/kerberos/mod_auth_kerb.so; \ |
49 |
insinto /etc/apache/conf/modules.d |
50 |
fi |
51 |
doins ${FILESDIR}/13_mod_auth_kerb.conf |
52 |
dodoc ${FILESDIR}/13_mod_auth_kerb.conf |
37 |
} |
53 |
} |