[arch-commits] Commit in mod_wsgi/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 17:10:14 UTC 2018


    Date: Saturday, June 30, 2018 @ 17:10:14
  Author: felixonmars
Revision: 348632

archrelease: copy trunk to community-staging-x86_64

Added:
  mod_wsgi/repos/community-staging-x86_64/
  mod_wsgi/repos/community-staging-x86_64/PKGBUILD
    (from rev 348631, mod_wsgi/trunk/PKGBUILD)
  mod_wsgi/repos/community-staging-x86_64/mod_wsgi.install
    (from rev 348631, mod_wsgi/trunk/mod_wsgi.install)

------------------+
 PKGBUILD         |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 mod_wsgi.install |   14 +++++++++++++
 2 files changed, 71 insertions(+)

Copied: mod_wsgi/repos/community-staging-x86_64/PKGBUILD (from rev 348631, mod_wsgi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 17:10:14 UTC (rev 348632)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Ryan Coyner <rcoyner at gmail.com>
+
+pkgbase=mod_wsgi
+pkgname=($pkgbase 'mod_wsgi2')
+pkgver=4.5.24
+pkgrel=2
+pkgdesc='Python WSGI adapter module for Apache'
+arch=('x86_64')
+url='http://www.modwsgi.org/'
+license=('APACHE')
+makedepends=('apache' 'git' 'python' 'python2')
+install='mod_wsgi.install'
+source=("git+https://github.com/GrahamDumpleton/mod_wsgi#tag=$pkgver")
+md5sums=('SKIP')
+
+build() {
+  # Configure and build mod_wsgi for py2
+  cp -r "$pkgbase" py2
+  cd py2
+  ./configure \
+    --prefix=/usr \
+    --with-apxs=/usr/bin/apxs \
+    --with-python=/usr/bin/python2
+
+  make
+
+  # Configure and build mod_wsgi for py3
+  cd "$srcdir/$pkgbase"
+  ./configure \
+    --prefix=/usr \
+    --with-apxs=/usr/bin/apxs \
+    --with-python=/usr/bin/python
+
+  make LDLIBS="$(pkg-config python3 --libs) -lpthread -ldl -lutil -lm"
+}
+
+package_mod_wsgi() {
+  pkgdesc='Python WSGI adapter module for Apache'
+  depends=('apache' 'python')
+  conflicts=('mod_wsgi2')
+
+  make -C "$pkgbase" DESTDIR="$pkgdir" install
+}
+
+package_mod_wsgi2() {
+  pkgdesc='Python2 WSGI adapter module for Apache'
+  depends=('apache' 'python2')
+  conflicts=('mod_wsgi')
+
+  make -C py2 DESTDIR="$pkgdir" install
+}
+
+# getver: github.com/GrahamDumpleton/mod_wsgi
+# vim: ts=2 sw=2 et:

Copied: mod_wsgi/repos/community-staging-x86_64/mod_wsgi.install (from rev 348631, mod_wsgi/trunk/mod_wsgi.install)
===================================================================
--- community-staging-x86_64/mod_wsgi.install	                        (rev 0)
+++ community-staging-x86_64/mod_wsgi.install	2018-06-30 17:10:14 UTC (rev 348632)
@@ -0,0 +1,14 @@
+post_install() {
+  cat<<meow
+==>
+==>
+==>  To install mod_wsgi, add the following line in
+==>  /etc/httpd/conf/httpd.conf file :
+==>
+==>  LoadModule wsgi_module modules/mod_wsgi.so
+==>
+==>  and restart/reload Apache.
+==>
+==>
+meow
+}



More information about the arch-commits mailing list