diff options
Diffstat (limited to 'www/mod_wsgi')
-rw-r--r-- | www/mod_wsgi/Makefile | 30 | ||||
-rw-r--r-- | www/mod_wsgi/distinfo | 3 | ||||
-rw-r--r-- | www/mod_wsgi/files/270_mod_wsgi.conf.sample.in | 8 | ||||
-rw-r--r-- | www/mod_wsgi/pkg-descr | 2 | ||||
-rw-r--r-- | www/mod_wsgi/pkg-plist | 3 |
5 files changed, 46 insertions, 0 deletions
diff --git a/www/mod_wsgi/Makefile b/www/mod_wsgi/Makefile new file mode 100644 index 000000000000..4e2f1f7af825 --- /dev/null +++ b/www/mod_wsgi/Makefile @@ -0,0 +1,30 @@ +PORTNAME= mod_wsgi +DISTVERSION= 5.0.2 +CATEGORIES= www python +MASTER_SITES= PYPI +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 cpe gettext python:3.8+ +USE_PYTHON= flavors + +CPE_VENDOR= modwsgi + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" + +SUB_FILES= ${APMOD_FILE} +APMOD_FILE= 270_${PORTNAME}.conf.sample +PLIST_SUB+= APMOD_FILE=${APMOD_FILE} + +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> diff --git a/www/mod_wsgi/distinfo b/www/mod_wsgi/distinfo new file mode 100644 index 000000000000..4c19d21d8e9b --- /dev/null +++ b/www/mod_wsgi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1756060194 +SHA256 (mod_wsgi-5.0.2.tar.gz) = 6fe5557c3ef25c184c2c994905fe52be1c06ae5c46235ecafe558e84789e2159 +SIZE (mod_wsgi-5.0.2.tar.gz) = 498627 diff --git a/www/mod_wsgi/files/270_mod_wsgi.conf.sample.in b/www/mod_wsgi/files/270_mod_wsgi.conf.sample.in new file mode 100644 index 000000000000..0177f0a7f668 --- /dev/null +++ b/www/mod_wsgi/files/270_mod_wsgi.conf.sample.in @@ -0,0 +1,8 @@ +## vim: set filetype=apache: +## +## module file for mod_wsgi +## +## PROVIDE: mod_wsgi +## REQUIRE: + +#LoadModule wsgi_module %%APACHEMODDIR%%/mod_wsgi.so diff --git a/www/mod_wsgi/pkg-descr b/www/mod_wsgi/pkg-descr new file mode 100644 index 000000000000..9ff8186a24d3 --- /dev/null +++ b/www/mod_wsgi/pkg-descr @@ -0,0 +1,2 @@ +The mod_wsgi package provides an Apache module that implements a WSGI-compliant +interface for hosting Python based web applications on top of the Apache web server. diff --git a/www/mod_wsgi/pkg-plist b/www/mod_wsgi/pkg-plist new file mode 100644 index 000000000000..c2e491134ebe --- /dev/null +++ b/www/mod_wsgi/pkg-plist @@ -0,0 +1,3 @@ +@sample %%APACHEETCDIR%%/modules.d/%%APMOD_FILE%% +%%APACHEMODDIR%%/%%AP_MODULE%% +@postunexec echo "Don't forget to remove all mod_wsgi-related directives in your httpd.conf" |