671cd67169
effects versions 1.2.19 and 1.2.20 only: CVE-2007-0774 A Long URL Stack Overflow Vulnerability exists in the URI handler for the mod_jk library. When parsing a long URL request, the URI worker map routine performs an unsafe memory copy. This results in a stack overflow condition which can be leveraged execute arbitrary code. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0774
60 lines
1.8 KiB
Makefile
60 lines
1.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2007/04/06 21:18:34 kurt Exp $
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
# and has Apache that supports DSO's.
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= "Apache-Tomcat AJP Connector"
|
|
|
|
V= 1.2.21
|
|
DISTNAME= tomcat-connectors-${V}-src
|
|
PKGNAME= mod_jk-${V}
|
|
CATEGORIES= www
|
|
|
|
HOMEPAGE= http://tomcat.apache.org/connectors-doc/index.html
|
|
|
|
MAINTAINER= Kurt Miller <kurt@openbsd.org>
|
|
|
|
# Apache Software License 2.0
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=tomcat/tomcat-connectors/jk/source/jk-$V/}
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
NO_REGRESS= Yes
|
|
USE_GMAKE= Yes
|
|
USE_LIBTOOL= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --with-apxs=/usr/sbin/apxs
|
|
CONFIGURE_ENV+= CFLAGS='${CFLAGS} -DCHROOTED_APACHE'
|
|
|
|
WRKSRC= ${WRKDIST}/native
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/scripts/build/unix
|
|
|
|
EXAMPLES= workers.properties workers.properties.minimal
|
|
DOCDIR= ${PREFIX}/share/doc/mod_jk
|
|
SUBST_VARS= DOCDIR
|
|
|
|
do-install:
|
|
sed 's,/usr/local,${TRUEPREFIX},' \
|
|
< ${FILESDIR}/mod_jk-enable >${WRKBUILD}/mod_jk-enable
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/mod_jk-enable ${PREFIX}/sbin/mod_jk-enable
|
|
${INSTALL_DATA} ${WRKBUILD}/apache-1.3/mod_jk.so ${PREFIX}/lib/mod_jk.so
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_jk
|
|
${INSTALL_DATA} ${FILESDIR}/mod_jk.conf ${PREFIX}/share/examples/mod_jk
|
|
.for file in ${EXAMPLES}
|
|
${INSTALL_DATA} ${WRKSRC}/../conf/${file} ${PREFIX}/share/examples/mod_jk
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
sed 's,/usr/local,${TRUEPREFIX},' \
|
|
< ${FILESDIR}/README.OpenBSD >${WRKBUILD}/README.OpenBSD
|
|
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKDIST}/LICENSE ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKDIST}/NOTICE ${DOCDIR}
|
|
|
|
.include "bsd.port.mk"
|