blob: 8602f9d72fef4e6da39cf89ba5aebedc9bffd95e (
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
66
67
68
69
70
71
72
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Tools Team <tools@gentoo.org>
# Author: Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-www/jakarta/jakarta-3.1-r2.ebuild,v 1.6 2002/01/24 19:39:46 karltk Exp $
P=jakarta-3.1
A="jakarta-tomcat.tar.gz jakarta-ant.tar.gz"
S=${WORKDIR}
DESCRIPTION="Apache Servlet Engine"
SRC_URI="http://jakarta.apache.org/builds/tomcat/release/v3.1/src/jakarta-tomcat.tar.gz
http://jakarta.apache.org/builds/tomcat/release/v3.1/src/jakarta-ant.tar.gz"
HOMEPAGE="http://jakarta.apache.org"
DEPEND="virtual/glibc sys-apps/which sys-devel/perl
>=virtual/jdk-1.2
>=net-www/apache-1.3"
RDEPEND="virtual/glibc
>=virtual/jdk-1.2
>=net-www/apache-1.3"
src_unpack() {
unpack ${A}
}
src_compile() {
echo "Building ant..."
cd ${S}/jakarta-ant
./bootstrap.sh
echo "Building tomcat..."
cd ${S}/jakarta-tomcat
./build.sh
cd src/native/apache/jserv
apxs -c mod_jserv.c jserv*.c
cd ${S}/build/tomcat/classes
jar -cf tomcat.jar javax org
rm -rf javax
rm -rf org
}
src_install() {
dodir /usr/share/tomcat
cp -a ${S}/build/tomcat/* ${D}/usr/share/tomcat
insinto /usr/share/tomcat/lib
doins ${S}/build/tomcat/classes/tomcat.jar
doins ${S}/build/tomcat/lib/xml.jar
rm -rf ${D}/usr/share/tomcat/classes
insinto /usr/lib/apache
doins ${S}/jakarta-tomcat/src/native/apache/jserv/mod_jserv.so
insinto /etc/httpd
doins ${FILESDIR}/httpd.tomcat
insinto /etc/rc.d/init.d
insopts -m755
doins ${FILESDIR}/jakarta
#insinto /opt/tomcat/conf
#doins ${O}/files/web.xml
cd ${S}/jakarta-tomcat
dodoc BUGS LICENSE README RELEASE-* TODO etc/*.txt src/doc/faq src/doc/readme
dohtml -r etc/*
}
pkg_config() {
einfo "Activating Servlet Engine..."
${ROOT}/usr/sbin/rc-update add jakarta
}
|