pkgsrc/devel/apr/Makefile
reed a03322e020 Update apache2 to 2.0.49. This includes various changes since last release
including:
  *) SECURITY: CAN-2004-0174 (cve.mitre.org)
     Fix starvation issue on listening sockets where a short-lived
     connection on a rarely-accessed listening socket will cause a
     child to hold the accept mutex and block out new connections until
     another connection arrives on that rarely-accessed listening socket.
     With Apache 2.x there is no performance concern about enabling the
     logic for platforms which don't need it, so it is enabled everywhere
     except for Win32.  [Jeff Trawick]

  *) SECURITY: CAN-2004-0113 (cve.mitre.org)
     mod_ssl: Fix a memory leak in plain-HTTP-on-SSL-port handling.
     PR 27106.  [Joe Orton]

  *) SECURITY: CAN-2003-0020 (cve.mitre.org)
     Escape arbitrary data before writing into the errorlog. Unescaped
     errorlogs are still possible using the compile time switch
     "-DAP_UNSAFE_ERROR_LOG_UNESCAPED".  [Geoffrey Young, Andr<E9> Malo]

Complete changelog is at http://www.apache.org/dist/httpd/CHANGES_2.0

Package changes include:

buildlink depends increased for apache2 (but not for apr).

apr package version changes, but APR_VERSION stays same.

more files installed and added to PLIST.
share/httpd/manual/search/manual-index.cgi removed from PLIST.
Also removing share/httpd/htdocs and share/httpd directories
removed from PLIST because already handled by MAKE_DIRS.
(I think this should use OWN_DIRS.)

(jlam@ said he would like this update done during freeze.)
2004-03-22 19:50:16 +00:00

66 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2004/03/22 19:50:16 reed Exp $
PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION}
CATEGORIES= devel
HOMEPAGE= http://apr.apache.org/
COMMENT= Apache Portable Runtime
# Don't bump this when apache upgrades; it is only apache2-2.0.45 and
# under that includes its own apr. apr was split out in 2.0.45nb1.
CONFLICTS= apache2<=2.0.45
USE_BUILDLINK3= YES
USE_LIBTOOL= YES
WRKSRC= ${WRKDIR}/${DISTNAME}/srclib
BUILD_DIRS= ${WRKSRC}/apr ${WRKSRC}/apr-util
CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
LDFLAGS.SunOS+= -lnsl
pre-configure:
.for f in apr/config.layout apr-util/config.layout
${SED} -e 's|@PREFIX@|${PREFIX}|g' < ${WRKSRC}/$f > ${WRKSRC}/$f.new
${MV} ${WRKSRC}/$f.new ${WRKSRC}/$f
.endfor
.undef f
APR_CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--with-devrandom=/dev/urandom \
--with-installbuilddir=${PREFIX}/libexec/apr
APU_CONFIGURE_ARGS= \
--prefix=${PREFIX} \
--with-apr=${WRKSRC}/apr \
--with-expat=${BUILDLINK_PREFIX.expat} \
--without-gdbm
.include "../../mk/bsd.prefs.mk"
.if ${APR_USE_DB4} == "YES"
APU_CONFIGURE_ARGS+=\
--with-berkeley-db=${BUILDLINK_PREFIX.db4}/include:${LOCALBASE}
.else
APU_CONFIGURE_ARGS+= --with-dbm=sdbm
.endif
do-configure:
@cd ${WRKSRC}/apr && ${SETENV} ${CONFIGURE_ENV} ./configure \
${APR_CONFIGURE_ARGS}
@cd ${WRKSRC}/apr-util && ${SETENV} ${CONFIGURE_ENV} ./configure \
${APU_CONFIGURE_ARGS}
post-install:
${RM} ${PREFIX}/libexec/apr/libtool
${INSTALL_SCRIPT} ${PKG_LIBTOOL} ${PREFIX}/libexec/apr/libtool
.include "../../www/apache2/Makefile.common"
.if ${APR_USE_DB4} == "YES"
.include "../../databases/db4/buildlink3.mk"
.endif
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"