Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 11857 Details for
Bug 19094
mod_jk-1.2.3-r13 (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-www/mod_jk-1.2.3-r5.ebuild
mod_jk-1.2.3-r5.ebuild (text/plain), 7.21 KB, created by
steveb
on 2003-05-12 18:01:59 UTC
(
hide
)
Description:
net-www/mod_jk-1.2.3-r5.ebuild
Filename:
MIME Type:
Creator:
steveb
Created:
2003-05-12 18:01:59 UTC
Size:
7.21 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># net-www/mod_jk-1.2.3-r5.ebuild, SteveB (tp22a@softhome.net) ># ># Revisions: 12.05.2003: net-www/mod_jk-1.2.3-r5.ebuild ># - fixed some stuff with Apache2 (I am still not sure if ># everything is okay. Don't have Apache2 installed. I just have ># readed the apache2 ebuild, but not installed it.) ># 12.05.2003: net-www/mod_jk-1.2.3-r4.ebuild ># - corrected spelling (thx to Brett Simpson, simpsonb@impmail.dnsalias.com) ># - taking care of 'use doc' in pkg_postinst ># 10.05.2003: net-www/mod_jk-1.2.3-r3.ebuild ># - added pkg_config ># - using now apachedelmod and apacheaddmod to modify apache.conf ># - mod_jk now uses APACHE_OPTS from /etc/conf.d/apache (-D JK) ># 10.05.2003: net-www/mod_jk-1.2.3-r2.ebuild ># - added more info for user (especialy for non SSL user) ># 09.05.2003: net-www/mod_jk-1.2.3-r1.ebuild ># - added doc IUSE flag ># - added jni IUSE flag (this use flag does not officialy exists) ># to install mod_jk with JNI support do the following: USE='jni' emerge mod_jk ># - added various config flags if jni is used ># - polished up some ebuild parts ># 08.05.2003: net-www/mod_jk-1.2.3.ebuild ># - initial ebuild > >IUSE="apache2 doc jni ssl" > >S=${WORKDIR}/jakarta-tomcat-connectors-jk-${PV}-src >DESCRIPTION="Apach JK module for connecting Apache to Tomcat" >HOMEPAGE="http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v${PV}/doc/" >SRC_URI="http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v${PV}/src/jakarta-tomcat-connectors-jk-${PV}-src.tar.gz" > >KEYWORDS="x86 sparc ppc alpha hppa" > >[[ -z "${CATALINA_HOME}" || "${CATALINA_HOME}" == "" ]] && CATALINA_HOME="/opt/tomcat" >[[ -z "${JAVA_HOME}" || "${JAVA_HOME}" == "" ]] && JAVA_HOME="$(java-config --jdk-home)" > >DEPEND=">=net-www/tomcat-3.3 > >=virtual/jdk-1.2 > ssl? ( net-www/mod_ssl ) > || ( > apache2? ( >=net-www/apache-2 ) > >=net-www/apache-1.3 > )" >LICENSE="Apache-1.1" >SLOT="0" > >src_compile() { > local myconf > > cd "${S}/jk/native" > > sh ./buildconf.sh || die > > use apache2 && myconf="${myconf} --with-apxs2=/usr/sbin/apxs2" || myconf="${myconf} --with-apxs=/usr/sbin/apxs" > use ssl && myconf="${myconf} --enable-EAPI" > use jni && myconf="${myconf} --enable-jni --with-java-home=${JAVA_HOME}" > > econf ${myconf} || die "configure failed (myconf=${myconf})" > > emake || die "make failed (myconf=${myconf})" >} > >src_install() { > cd "${S}/jk/native" > > if [ "`use apache2`" ] ; then > dodir /usr/lib/apache2 > exeinto /usr/lib/apache2 > doexe ./apache-2.0/mod_jk.so > dodir /usr/lib/apache2-extramodules > dosym ../apache2/mod_jk.so /usr/lib/apache2-extramodules/mod_jk.so > else > dodir /usr/lib/apache > exeinto /usr/lib/apache > doexe ./apache-1.3/mod_jk.so > dodir /usr/lib/apache-extramodules > dosym ../apache/mod_jk.so /usr/lib/apache-extramodules/mod_jk.so > fi > > if [ "`use doc`" ] ; then > dohtml -r ${S}/jk/docs/* > dodoc ${S}/jk/README.txt > fi > > dodir ${CATALINA_HOME}/conf > insinto ${CATALINA_HOME}/conf > doins ${FILESDIR}/workers.properties > doins ${FILESDIR}/tomcat-apache.conf >} > >pkg_postinst() { > einfo "****************************************************************" > if [ "`use apache2`" ] ; then > einfo " To auto-updated apache2.conf for the use of this module execute:" > else > einfo " To auto-updated apache.conf for the use of this module execute:" > fi > einfo " ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config" > einfo > if [ "`use apache2`" ] ; then > einfo " You should then edit your /etc/conf.d/apache2 file to suit" > else > einfo " You should then edit your /etc/conf.d/apache file to suit" > fi > einfo " (just add \"-D JK\" to APACHE_OPTS)." > einfo > einfo " For more info about mod_jk visit the following URL:" > einfo " ${HOMEPAGE}" > if [ "`use doc`" ] ; then > einfo > einfo " Or read the documentation at the following location:" > einfo " /usr/share/doc/${PF}/html/index.html" > fi > einfo "****************************************************************" > if [ ! "`use ssl`" ] ; then > ewarn "****************************************************************" > ewarn " You did not enable SSL support for ${PN}. If you later build" > ewarn " SSL support for Apache, do not forget to reemerge this module" > ewarn " with SSL support, by adding \"ssl\" to your USE flags or by" > ewarn " temporarily adding \"ssl\" to the USE variable before emerging:" > ewarn " USE='ssl' emerge ${PN}" > ewarn "****************************************************************" > fi >} > >pkg_config() { > if [ "`use apache2`" ] ; then > ${ROOT}/usr/sbin/apache2addmod \ > ${ROOT}/etc/apache2/conf/apache2.conf \ > extramodules/mod_jk.so mod_jk.c jk_module \ > define=JK \ > addconf=${CATALINA_HOME}/conf/tomcat-apache.conf > :; > else > ${ROOT}/usr/sbin/apacheaddmod \ > ${ROOT}/etc/apache/conf/apache.conf \ > extramodules/mod_jk.so mod_jk.c jk_module \ > define=JK \ > addconf=${CATALINA_HOME}/conf/tomcat-apache.conf > :; > fi > einfo "****************************************************************" > if [ "`use apache2`" ] ; then > einfo " The module mod_jk has been appended to your apache2.conf" > einfo > einfo " Be sure to append \"-D JK\" to APACHE_OPTS in /etc/conf.d/apache2" > else > einfo " The module mod_jk has been appended to your apache.conf" > einfo > einfo " Be sure to append \"-D JK\" to APACHE_OPTS in /etc/conf.d/apache" > fi > einfo > einfo " You may want to tweak the settings for this module in:" > einfo " ${CATALINA_HOME}/conf/tomcat-apache.conf" > einfo " ${CATALINA_HOME}/conf/worker.properties" > einfo "****************************************************************" >} > >pkg_postrm () { > if [ "`use apache2`" ] ; then > ${ROOT}/usr/sbin/apache2delmod \ > ${ROOT}/etc/apache2/conf/apache2.conf \ > mod_jk mod_jk jk_module \ > define=JK \ > addconf=${CATALINA_HOME}/conf/tomcat-apache.conf > :; > else > ${ROOT}/usr/sbin/apachedelmod \ > ${ROOT}/etc/apache/conf/apache.conf \ > mod_jk mod_jk jk_module \ > define=JK \ > addconf=${CATALINA_HOME}/conf/tomcat-apache.conf > :; > fi > einfo "****************************************************************" > if [ "`use apache2`" ] ; then > einfo " The module mod_jk has been removed from your apache2.conf" > else > einfo " The module mod_jk has been removed from your apache.conf" > fi > einfo "****************************************************************" > ewarn "****************************************************************" > ewarn " You removed an Apache module and need to restart Apache." > ewarn > if [ "`use apache2`" ] ; then > ewarn " Please execute \"/etc/init.d/apache2 restart\" now." > else > ewarn " Please execute \"/etc/init.d/apache restart\" now." > fi > ewarn "****************************************************************" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19094
:
10475
|
10476
|
10737
|
10738
|
10739
|
10961
|
10962
|
10963
|
10964
|
11725
|
11754
|
11755
|
11766
|
11767
|
11782
|
11816
|
11857
|
11963
|
11964
|
11982
|
11994
|
11995
|
11999
|
12014
|
12018
|
12071
|
12077
|
12078
|
12079
|
12087
|
12106
|
12123
|
41532
|
47676
|
50889
|
53227
|
56445
|
56446