blob: c3a2d81da1bff3b51d348ec30d6cbe89ffda458c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
PORTNAME= mod_wsgi
DISTVERSION= 4.9.2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}
MAINTAINER= douglas@douglasthrift.net
COMMENT= Python WSGI adapter module for Apache
WWW= https://www.modwsgi.org/
LICENSE= APACHE20
USES= apache:2.4+ cpe gettext python:3.6-3.11
USE_PYTHON= flavors
CPE_VENDOR= modwsgi
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>
|