[csw-devel] SF.net SVN: gar:[3615] csw/mgar/pkg/mod_wsgi/trunk
rthurner at users.sourceforge.net
rthurner at users.sourceforge.net
Sat Mar 7 17:19:44 CET 2009
Revision: 3615
http://gar.svn.sourceforge.net/gar/?rev=3615&view=rev
Author: rthurner
Date: 2009-03-07 16:19:30 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
initial files, copied from mod_python
Added Paths:
-----------
csw/mgar/pkg/mod_wsgi/trunk/Makefile
csw/mgar/pkg/mod_wsgi/trunk/checksums
csw/mgar/pkg/mod_wsgi/trunk/files/
csw/mgar/pkg/mod_wsgi/trunk/files/postinstall
csw/mgar/pkg/mod_wsgi/trunk/files/preremove
csw/mgar/pkg/mod_wsgi/trunk/files/space
Added: csw/mgar/pkg/mod_wsgi/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mod_wsgi/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/mod_wsgi/trunk/Makefile 2009-03-07 16:19:30 UTC (rev 3615)
@@ -0,0 +1,38 @@
+GARNAME = mod_wsgi
+GARVERSION = 2.3
+CATEGORIES = lib
+
+DESCRIPTION = an Apache/Python WSGI adapter module
+define BLURB
+ Mod_wsgi is a python WSGI adapter module for Apache.
+endef
+
+MASTER_SITES = http://code.google.com/p/modwsgi
+DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += postinstall preremove space
+
+PACKAGES = CSWap2modwsgi
+
+REQUIRED_PKGS_CSWap2modwsgi = CSWap2prefork CSWpython
+CATALOGNAME_CSWap2modwsgi = ap2_modwsgi
+SPKG_DESC_CSWap2modwsgi = an Apache/Python WSGI adapter module
+
+#PATCHFILES = configure.diff
+#PATCHFILES += connobject.diff
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = (\d+(?:\.\d+)*)
+
+CONFIGURE_ARGS = $(DIRPATHS)
+CONFIGURE_ARGS += --with-apxs=$(prefix)/apache2/sbin/apxs
+CONFIGURE_ARGS += --with-python=$(bindir)/python
+CONFIGURE_ARGS += --with-python-src=../python
+
+## There are no tests for this
+TEST_SCRIPTS = skip
+
+test-skip:
+ $(DONADA)
+
+include gar/category.mk
+
Added: csw/mgar/pkg/mod_wsgi/trunk/checksums
===================================================================
--- csw/mgar/pkg/mod_wsgi/trunk/checksums (rev 0)
+++ csw/mgar/pkg/mod_wsgi/trunk/checksums 2009-03-07 16:19:30 UTC (rev 3615)
@@ -0,0 +1,4 @@
+c686e1c498dbe5753fe491c3cf61cff4 download/mod_wsgi-2.3.tar.gz
+a2e8679f45232e56efbc352597ffe456 download/postinstall
+a67766841dedbaba0d7b15e7f08c8658 download/preremove
+0dd379f20ceb32fc77bb3a9bf045097f download/space
Added: csw/mgar/pkg/mod_wsgi/trunk/files/postinstall
===================================================================
--- csw/mgar/pkg/mod_wsgi/trunk/files/postinstall (rev 0)
+++ csw/mgar/pkg/mod_wsgi/trunk/files/postinstall 2009-03-07 16:19:30 UTC (rev 3615)
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Enable the wsgi module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+ $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -a -n wsgi mod_wsgi.so
+
+# Finito
+cat <<END
+
+NOTICE: mod_wsgi is enabled in httpd.conf but the server was not restarted.
+Please configure mod_wsgi and restart apache.
+
+END
+
+exit 0
Added: csw/mgar/pkg/mod_wsgi/trunk/files/preremove
===================================================================
--- csw/mgar/pkg/mod_wsgi/trunk/files/preremove (rev 0)
+++ csw/mgar/pkg/mod_wsgi/trunk/files/preremove 2009-03-07 16:19:30 UTC (rev 3615)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+CSW_PREFIX=${PKG_INSTALL_ROOT}/opt/csw
+AP2_PREFIX=$CSW_PREFIX/apache2
+AP2_BINDIR=$AP2_PREFIX/sbin
+AP2_LIBEXEC=$AP2_PREFIX/libexec
+AP2_CONFDIR=$AP2_PREFIX/etc
+AP2_EXTRADIR=$AP2_CONFDIR/extra
+AP2_CONFIG=$AP2_CONFDIR/httpd.conf
+
+# Disable the wsgi module
+PKG_INSTALL_ROOT=${PKG_INSTALL_ROOT:-'/'}
+chroot $PKG_INSTALL_ROOT \
+ $AP2_BINDIR/apxs -S LIBEXECDIR=$AP2_LIBEXEC -e -A -n wsgi mod_wsgi.so
+
+cat <<END
+
+NOTICE: mod_wsgi is disabled in httpd.conf but the server was not restarted.
+Please check your configuration and restart apache.
+
+END
+
+exit 0
Added: csw/mgar/pkg/mod_wsgi/trunk/files/space
===================================================================
--- csw/mgar/pkg/mod_wsgi/trunk/files/space (rev 0)
+++ csw/mgar/pkg/mod_wsgi/trunk/files/space 2009-03-07 16:19:30 UTC (rev 3615)
@@ -0,0 +1 @@
+$BASEDIR 4
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list