diff options
author | girgen <girgen@FreeBSD.org> | 2005-07-27 09:59:42 +0800 |
---|---|---|
committer | girgen <girgen@FreeBSD.org> | 2005-07-27 09:59:42 +0800 |
commit | 615f6c756263485bb89b3408eeb9a38cc1b777ad (patch) | |
tree | e66da857dc0dcded3d40966c13d26263704a83fe /www | |
parent | 7bb41df377a58ced78f6e0562c4bb3727ed01ff4 (diff) | |
download | freebsd-ports-gnome-615f6c756263485bb89b3408eeb9a38cc1b777ad.tar.gz freebsd-ports-gnome-615f6c756263485bb89b3408eeb9a38cc1b777ad.tar.zst freebsd-ports-gnome-615f6c756263485bb89b3408eeb9a38cc1b777ad.zip |
JK2 is officially deprecated due to lack of developer interest. See
http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1
Upgrading to last released version, 2.0.4.
ports/67839 is fixed, probably also ports/71479.
ports/74622 handles configuration problems; I will not address this PR
fully since the software is deprecated, although I did add some
helping notes, and the port now installs the sample config file.
PR: ports/67839, ports/71479, ports/74622
Approved by: seanc, ade (implicit)
Diffstat (limited to 'www')
-rw-r--r-- | www/mod_jk2/Makefile | 36 | ||||
-rw-r--r-- | www/mod_jk2/distinfo | 4 | ||||
-rw-r--r-- | www/mod_jk2/files/patch-Makefile-in | 27 | ||||
-rw-r--r-- | www/mod_jk2/files/patch-apache13-makefile-apxs-in | 14 | ||||
-rw-r--r-- | www/mod_jk2/files/patch-common::jk_mutex_thread_c | 11 | ||||
-rw-r--r-- | www/mod_jk2/files/patch-configure | 55 | ||||
-rw-r--r-- | www/mod_jk2/files/patch-configure.in | 23 | ||||
-rw-r--r-- | www/mod_jk2/files/patch-include::jk_mutex_h | 20 | ||||
-rw-r--r-- | www/mod_jk2/pkg-descr | 7 | ||||
-rw-r--r-- | www/mod_jk2/pkg-message | 17 | ||||
-rw-r--r-- | www/mod_jk2/pkg-plist | 5 |
11 files changed, 126 insertions, 93 deletions
diff --git a/www/mod_jk2/Makefile b/www/mod_jk2/Makefile index 44e7a9174e80..745d47a0a3cb 100644 --- a/www/mod_jk2/Makefile +++ b/www/mod_jk2/Makefile @@ -6,7 +6,7 @@ # PORTNAME= mod_jk2 -PORTVERSION= 2.0.2 +PORTVERSION= 2.0.4 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} MASTER_SITE_SUBDIR= tomcat-connectors/jk2/source @@ -15,18 +15,20 @@ DISTNAME= jakarta-tomcat-connectors-jk2-${PORTVERSION}-src MAINTAINER?= girgen@FreeBSD.org COMMENT?= Apache JK2 module for connecting to Tomcat using AJP1X +DEPRECATED= "JK2 is officially unsupported, no further development will take place." + USE_APACHE= yes USE_GMAKE= YES -USE_LIBTOOL_VER= 13 -USE_AUTOCONF_VER= 253 -USE_AUTOMAKE_VER= 15 -AUTOMAKE_ARGS= --add-missing GNU_CONFIGURE= YES -CONFIGURE_ARGS+= --with-apxs${APACHE2}=${APXS} +CONFIGURE_ARGS= --with-apxs${APACHE2}=${APXS} + ALL_TARGET= jk2-build-apxs +INSTALL_TARGET= jk2-install-apxs WRKSRC= ${WRKDIR}/jakarta-tomcat-connectors-jk2-${PORTVERSION}-src/jk/native2 +PKGMESSAGE= ${WRKDIR}/.pkg-message + .include <bsd.port.pre.mk> .if exists(${LOCALBASE}/include/apache2/apr.h) @@ -46,22 +48,26 @@ APACHE2= 2 PLIST_SUB= APACHE2=2 PKGNAMESUFFIX= -apache2 APACHE= apache2 -AP_EXT= la .else APACHE2= PLIST_SUB= APACHE2= -AP_EXT= so APACHE= apache13 +BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/apr:patch +APR_DIR= `cd ${PORTSDIR}/devel/apr && make -V WRKDIR` +APR_VERSION= `cd ${PORTSDIR}/devel/apr && make -V PORTVERSION` +CONFIGURE_ARGS+=--with-apr=${APR_DIR}/apr-${APR_VERSION} \ + --with-apr-util=${APR_DIR}/apr-util-${APR_VERSION} .endif -pre-patch: build-depends - post-patch: - cd ${WRKSRC}; ${ACLOCAL}; ${LIBTOOLIZE} + @ ${SED} "s|/usr/local|${PREFIX}|g" \ + < ${MASTERDIR}/pkg-message \ + > ${PKGMESSAGE} -do-install: - cd ${WRKSRC}/server/${APACHE} ;\ - ${GMAKE} -f Makefile.apxs install ;\ - ${APXS} -e -A -n jk2 mod_jk2.${AP_EXT} +post-install: + ${INSTALL_DATA} ${WRKSRC}/../conf/workers2.properties \ + ${PREFIX}/etc/apache${APACHE2}/workers2.properties.sample + - ${APXS} -e -A -n jk2 mod_jk2.so + ${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/www/mod_jk2/distinfo b/www/mod_jk2/distinfo index e8e7c99659b5..f0cc64b1ccd7 100644 --- a/www/mod_jk2/distinfo +++ b/www/mod_jk2/distinfo @@ -1,2 +1,2 @@ -MD5 (jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz) = c75bd11d96324356b0ffaed2b5bf7fc4 -SIZE (jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz) = 598529 +MD5 (jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz) = 444bef31619f772df1f0b1c50e6ba773 +SIZE (jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz) = 907088 diff --git a/www/mod_jk2/files/patch-Makefile-in b/www/mod_jk2/files/patch-Makefile-in new file mode 100644 index 000000000000..ac3dddb8e32a --- /dev/null +++ b/www/mod_jk2/files/patch-Makefile-in @@ -0,0 +1,27 @@ +--- Makefile.in~ Wed Mar 24 14:33:15 2004 ++++ Makefile.in Thu Sep 9 04:06:21 2004 +@@ -8,6 +8,8 @@ + + clean-apxs: @APR_CLEAN@ jk2-clean-apxs + ++install: jk2-install ++ + install-apxs: jk2-install-apxs + + jk2-build: +@@ -25,6 +27,15 @@ + echo "Making $$target in $$i"; \ + if test "$$i" != "."; then \ + (cd $$i && $(MAKE) -f Makefile.apxs) || exit 1; \ ++ fi; \ ++ done; ++ ++jk2-install: ++ list='@WEBSERVERS@'; \ ++ for i in $$list; do \ ++ echo "Making $$target in $$i"; \ ++ if test "$$i" != "."; then \ ++ (cd $$i && $(MAKE) install) || exit 1; \ + fi; \ + done; + diff --git a/www/mod_jk2/files/patch-apache13-makefile-apxs-in b/www/mod_jk2/files/patch-apache13-makefile-apxs-in deleted file mode 100644 index 433e51d91e40..000000000000 --- a/www/mod_jk2/files/patch-apache13-makefile-apxs-in +++ /dev/null @@ -1,14 +0,0 @@ ---- server/apache13/Makefile.apxs.in.orig Wed Mar 19 10:21:04 2003 -+++ server/apache13/Makefile.apxs.in Wed Jun 18 03:10:02 2003 -@@ -18,7 +18,10 @@ - all: mod_jk2.so - - mod_jk2.so: -- $(APXS) -c -o $@ -Wc,"${JK_INCL} ${APR_CFLAGS} ${APR_LDFLAGS}" "${JAVA_INCL}" mod_jk2.c ${COMMON_C_FILES} -+ $(APXS) -c -o $@ -Wc,"${JK_INCL} ${APR_CFLAGS} ${APR_LDFLAGS}" "${JAVA_INCL}" jk_service_apache13.c mod_jk2.c ${COMMON_C_FILES} -+ -+install: -+ $(APXS) -i mod_jk2.so - - clean: - rm -f *.o *.so diff --git a/www/mod_jk2/files/patch-common::jk_mutex_thread_c b/www/mod_jk2/files/patch-common::jk_mutex_thread_c deleted file mode 100644 index 1021aa87df4a..000000000000 --- a/www/mod_jk2/files/patch-common::jk_mutex_thread_c +++ /dev/null @@ -1,11 +0,0 @@ ---- common/jk_mutex_thread.c~ Thu Jul 31 19:30:38 2003 -+++ common/jk_mutex_thread.c Wed Sep 10 01:37:29 2003 -@@ -159,7 +159,7 @@ - } - - --#elif defined( _REENTRANT ) -+#elif defined( _THREAD_SAFE ) && defined( FREEBSD_THREAD_HACK ) - /*-------------------- PThread - @deprecated, use APR if possible -------------------- */ - - #include <pthread.h> diff --git a/www/mod_jk2/files/patch-configure b/www/mod_jk2/files/patch-configure new file mode 100644 index 000000000000..d0c98e7d9ba2 --- /dev/null +++ b/www/mod_jk2/files/patch-configure @@ -0,0 +1,55 @@ +--- configure.orig Wed Mar 24 14:46:12 2004 ++++ configure Wed Jul 27 03:36:21 2005 +@@ -20237,15 +20231,15 @@ + + echo "$as_me:$LINENO: checking for apr APR_LIBNAME" >&5 + echo $ECHO_N "checking for apr APR_LIBNAME... $ECHO_C" >&6 +- if ${TEST} ! -f "${APR_DIR}/apr-config" ; then +- { { echo "$as_me:$LINENO: error: cannot find apr-config file in ${APR_DIR}" >&5 +-echo "$as_me: error: cannot find apr-config file in ${APR_DIR}" >&2;} ++ if ${TEST} ! -f "${APR_DIR}/apr-1-config" ; then ++ { { echo "$as_me:$LINENO: error: cannot find apr-1-config file in ${APR_DIR}" >&5 ++echo "$as_me: error: cannot find apr-1-config file in ${APR_DIR}" >&2;} + { (exit 1); exit 1; }; } + fi +- jk_apr_get_tempval=`${APR_DIR}/apr-config --link-libtool 2> /dev/null` ++ jk_apr_get_tempval=`${APR_DIR}/apr-1-config --link-libtool 2> /dev/null` + if ${TEST} -z "${jk_apr_get_tempval}" ; then +- { { echo "$as_me:$LINENO: error: ${APR_DIR}/apr-config --link-libtool failed" >&5 +-echo "$as_me: error: ${APR_DIR}/apr-config --link-libtool failed" >&2;} ++ { { echo "$as_me:$LINENO: error: ${APR_DIR}/apr-1-config --link-libtool failed" >&5 ++echo "$as_me: error: ${APR_DIR}/apr-1-config --link-libtool failed" >&2;} + { (exit 1); exit 1; }; } + fi + jk_apr_get_tempval=`basename ${jk_apr_get_tempval}` +@@ -20384,15 +20378,15 @@ + + echo "$as_me:$LINENO: checking for apr-util APR_UTIL_LIBNAME" >&5 + echo $ECHO_N "checking for apr-util APR_UTIL_LIBNAME... $ECHO_C" >&6 +- if ${TEST} ! -f "${APR_UTIL_DIR}/apu-config" ; then +- { { echo "$as_me:$LINENO: error: cannot find apu-config file in ${APR_UTIL_DIR}" >&5 +-echo "$as_me: error: cannot find apu-config file in ${APR_UTIL_DIR}" >&2;} ++ if ${TEST} ! -f "${APR_UTIL_DIR}/apu-1-config" ; then ++ { { echo "$as_me:$LINENO: error: cannot find apu-1-config file in ${APR_UTIL_DIR}" >&5 ++echo "$as_me: error: cannot find apu-1-config file in ${APR_UTIL_DIR}" >&2;} + { (exit 1); exit 1; }; } + fi +- jk_apu_get_tempval=`${APR_UTIL_DIR}/apu-config --link-libtool 2> /dev/null` ++ jk_apu_get_tempval=`${APR_UTIL_DIR}/apu-1-config --link-libtool 2> /dev/null` + if ${TEST} -z "${jk_apu_get_tempval}" ; then +- { { echo "$as_me:$LINENO: error: ${APR_UTIL_DIR}/apu-config --link-libtool failed" >&5 +-echo "$as_me: error: ${APR_UTIL_DIR}/apu-config --link-libtool failed" >&2;} ++ { { echo "$as_me:$LINENO: error: ${APR_UTIL_DIR}/apu-1-config --link-libtool failed" >&5 ++echo "$as_me: error: ${APR_UTIL_DIR}/apu-1-config --link-libtool failed" >&2;} + { (exit 1); exit 1; }; } + fi + jk_apu_get_tempval=`basename ${jk_apu_get_tempval}` +@@ -20490,7 +20484,7 @@ + APR_CLEAN="" + APR_DIR="" + APR_LIBDIR=${tempval} +- APR_LDFLAGS="`apr-config --link-ld` -L${tempval}" ++ APR_LDFLAGS="`apr-1-config --link-ld` -L${tempval}" + COMMON_APR_OBJECTS="\${COMMON_APR_OBJECTS}" + use_apr=true + fi diff --git a/www/mod_jk2/files/patch-configure.in b/www/mod_jk2/files/patch-configure.in deleted file mode 100644 index 7311ea55fdf1..000000000000 --- a/www/mod_jk2/files/patch-configure.in +++ /dev/null @@ -1,23 +0,0 @@ -The apache mod_jk modules *communicate* with Java using an internet -protocol, AJP13, but they are written in C. I can't come up with any -reason to look for a JDK here, it's plain stupid! Since apache and -tomcat can be run on separate machines, there is no dependency -whatsoever... /Palle - ---- configure.in.orig Tue Oct 22 00:00:00 2002 -+++ configure.in Thu Feb 26 00:19:35 2004 -@@ -184,10 +184,10 @@ - - dnl Java settings - --JK_JDK() --JK_JDK_OS() --JK_JNI() --JK_PCRE() -+dnl JK_JDK() -+dnl JK_JDK_OS() -+dnl JK_JNI() -+dnl JK_PCRE() - - AC_SUBST(JAVA_HOME) - AC_SUBST(JAVA_PLATFORM) diff --git a/www/mod_jk2/files/patch-include::jk_mutex_h b/www/mod_jk2/files/patch-include::jk_mutex_h deleted file mode 100644 index 0eea18125e22..000000000000 --- a/www/mod_jk2/files/patch-include::jk_mutex_h +++ /dev/null @@ -1,20 +0,0 @@ ---- include/jk_mutex.h~ Thu Jul 31 19:30:40 2003 -+++ include/jk_mutex.h Wed Sep 10 01:33:27 2003 -@@ -76,7 +76,7 @@ - #include "apr_thread_mutex.h" - #elif defined( WIN32 ) - #include <windows.h> --#elif defined( _REENTRANT ) -+#elif defined( _THREAD_SAFE ) && defined ( FREEBSD_THREAD_HACK ) - #include <pthread.h> - #endif - -@@ -122,7 +122,7 @@ - apr_thread_mutex_t *threadMutex; - #elif defined( WIN32 ) - CRITICAL_SECTION threadMutex; --#elif defined( _REENTRANT ) -+#elif defined( _THREAD_SAFE ) && defined ( FREEBSD_THREAD_HACK ) - pthread_mutex_t threadMutex; - #else - void *threadMutex; diff --git a/www/mod_jk2/pkg-descr b/www/mod_jk2/pkg-descr index f7eeaba7eaef..c232a4579f82 100644 --- a/www/mod_jk2/pkg-descr +++ b/www/mod_jk2/pkg-descr @@ -1,4 +1,5 @@ -mod_jk2 handles the communication between Tomcat and Apache. -JK2 is a refactoring of JK and is much more powerful. +NOTE: mod_jk2 is deprecated, please use mod_jk instead. See +http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1 +for more information. -WWW: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html +WWW: http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/ diff --git a/www/mod_jk2/pkg-message b/www/mod_jk2/pkg-message index 67c3bc631981..7e6b4ac9b46c 100644 --- a/www/mod_jk2/pkg-message +++ b/www/mod_jk2/pkg-message @@ -1,5 +1,16 @@ ***************************************************************************** -Make sure mod_jk.so is enabled in ${PREFIX}/etc/apache2/httpd.conf and -mod_jk is configured. Have a look at -${PREFIX}/etc/apache2/mod_jk.conf.sample for an example. + +Make sure mod_jk2.so is enabled in ${PREFIX}/etc/apache2/httpd.conf and +mod_jk2 is configured. You will probably have to add + +JkSet config.file /usr/local/etc/apache2/workers2.properties + +to you config file and create the workers2.properties file according +to the docs at the web site: +http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/ + +Please note that this software is *deprecated*. See +http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115.1 +for more information. + ***************************************************************************** diff --git a/www/mod_jk2/pkg-plist b/www/mod_jk2/pkg-plist index 61f52649044e..6094f431fe9a 100644 --- a/www/mod_jk2/pkg-plist +++ b/www/mod_jk2/pkg-plist @@ -1,3 +1,4 @@ +etc/apache%%APACHE2%%/workers2.properties.sample libexec/apache%%APACHE2%%/mod_jk2.so -@exec %D/sbin/apxs -e -A -n jk2 %f -@unexec %D/sbin/apxs -e -A -n jk2 %f +@exec %D/sbin/apxs -e -A -n jk2 %f || true +@unexec %D/sbin/apxs -e -A -n jk2 %f || true |