SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

32
www/ap2-mod_wsgi/Makefile Normal file
View file

@ -0,0 +1,32 @@
COMMENT= Python WSGI compliant interface module for Apache2
PKGNAME= ap2-mod_wsgi-${GH_TAGNAME}
REVISION= 0
CATEGORIES= www
GH_ACCOUNT= GrahamDumpleton
GH_PROJECT= mod_wsgi
GH_TAGNAME= 4.9.4
HOMEPAGE= https://modwsgi.readthedocs.io/
# Apache License 2.0
PERMIT_PACKAGE= Yes
WANTLIB += iconv intl m pthread ${MODPY_WANTLIB} util
MODULES= lang/python
LIB_DEPENDS= ${MODPY_LIB_DEPENDS}
RUN_DEPENDS= www/apache-httpd
BUILD_DEPENDS= www/apache-httpd
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-apxs=${LOCALBASE}/sbin/apxs2 \
--with-python=${MODPY_BIN}
NO_TEST= Yes
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (mod_wsgi-4.9.4.tar.gz) = 7pJqP9VnWJC5COvCPbH49/A9w0WSQavc811Gxo4b4ps=
SIZE (mod_wsgi-4.9.4.tar.gz) = 706904

View file

@ -0,0 +1,5 @@
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
interface for hosting Python based web applications within Apache. The
adapter is written completely in C code against the Apache C runtime and
for hosting WSGI applications within Apache has a lower overhead than
using existing WSGI adapters for mod_python or CGI.

View file

@ -0,0 +1,2 @@
@so lib/apache2/mod_wsgi.so
share/doc/pkg-readmes/${PKGSTEM}

View file

@ -0,0 +1,9 @@
+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------
To enable the ap2-mod_wsgi module, the following line needs to be added
to ${SYSCONFDIR}/apache2/httpd2.conf:
LoadModule wsgi_module ${PREFIX}/lib/apache2/mod_wsgi.so
Then httpd2(8) must be restarted.

View file

@ -0,0 +1,3 @@
The following line needs to be removed from ${SYSCONFDIR}/apache2/httpd2.conf
then httpd2(8) must be restarted:
LoadModule wsgi_module ${PREFIX}/lib/apache2/mod_wsgi.so