mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
fd0b0c16e4
- use dedicated module file Bugs Fixed (since 4.4.6): ------------------------- 1. Apache 2.2.29 and 2.4.11 introduce additional fields to the request structure ``request_rec`` due to CVE-2013-5704. The addition of these fields will cause versions of mod_wsgi from 4.4.0-4.4.5 to crash when used in mod_wsgi daemon mode and mod_wsgi isn't initialising the new structure members. If you are upgrading your Apache installation to those versions or later versions, you must also update to mod_wsgi version 4.4.6. The mod_wsgi 4.4.6 source code must have also been compiled against the newer Apache version. PR: 201023 Submitted by: ohauer Approved by: douglas_at_douglasthrift.net (maintainer)
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= mod_wsgi
|
|
PORTVERSION= 4.4.13
|
|
CATEGORIES= www python
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
PKGNAMESUFFIX= 4
|
|
|
|
MAINTAINER= douglas@douglasthrift.net
|
|
COMMENT= Python WSGI adapter module for Apache
|
|
|
|
LICENSE= APACHE20
|
|
|
|
CONFLICTS_INSTALL=${PKGNAMEPREFIX}mod_wsgi3.* mod_wsgi3.*
|
|
|
|
PROJECTHOST= modwsgi
|
|
|
|
USE_APACHE= 22+
|
|
USES= python
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= GrahamDumpleton
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}"
|
|
|
|
SUB_FILES= pkg-message ${APMOD_FILE}
|
|
APMOD_FILE= 270_${PORTNAME}.conf.sample
|
|
PLIST_SUB+= APMOD_FILE=${APMOD_FILE}
|
|
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} "======================= ATTENTION! ======================"
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "If you want to use daemon mode you will need to make sure"
|
|
@${ECHO_MSG} "Apache and APR include thread support."
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "========================================================="
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
|
|
${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${PORTNAME}.so
|
|
.include <bsd.port.mk>
|