pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www Package the mod_proxy_uwsgi support separately fro...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c04a4dce3d5
branches:  trunk
changeset: 376471:4c04a4dce3d5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Mar 02 16:14:46 2018 +0000

description:
Package the mod_proxy_uwsgi support separately from the main uwsgi
package.

diffstat:

 www/ap-uwsgi/DESCR           |   2 ++
 www/ap-uwsgi/Makefile        |  14 ++++++++++++++
 www/ap-uwsgi/PLIST           |   2 ++
 www/py-uwsgi/Makefile        |  24 +++++-------------------
 www/py-uwsgi/Makefile.common |  23 +++++++++++++++++++++++
 5 files changed, 46 insertions(+), 19 deletions(-)

diffs (102 lines):

diff -r c7eef4cc0ec7 -r 4c04a4dce3d5 www/ap-uwsgi/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-uwsgi/DESCR        Fri Mar 02 16:14:46 2018 +0000
@@ -0,0 +1,2 @@
+This package provides mod_proxy_uwsgi. It provides uwsgi-transport
+support for the Apache server.
diff -r c7eef4cc0ec7 -r 4c04a4dce3d5 www/ap-uwsgi/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-uwsgi/Makefile     Fri Mar 02 16:14:46 2018 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2018/03/02 16:14:46 joerg Exp $
+
+.include  "../../www/py-uwsgi/Makefile.common"
+
+PKGNAME=       ${APACHE_PKG_PREFIX}-${DISTNAME}
+COMMENT=       Apache proxy backend for the uWSGI protocol
+
+APACHE_MODULE=         YES
+APACHE_MODULE_SRCDIR=  ${WRKSRC}/apache2
+APACHE_MODULE_SRC=     mod_proxy_uwsgi.c
+APACHE_MODULE_NAME=    mod_proxy_uwsgi.la
+
+.include "../../mk/apache.module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c7eef4cc0ec7 -r 4c04a4dce3d5 www/ap-uwsgi/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-uwsgi/PLIST        Fri Mar 02 16:14:46 2018 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/03/02 16:14:46 joerg Exp $
+lib/httpd/mod_proxy_uwsgi.so
diff -r c7eef4cc0ec7 -r 4c04a4dce3d5 www/py-uwsgi/Makefile
--- a/www/py-uwsgi/Makefile     Fri Mar 02 16:01:30 2018 +0000
+++ b/www/py-uwsgi/Makefile     Fri Mar 02 16:14:46 2018 +0000
@@ -1,25 +1,16 @@
-# $NetBSD: Makefile,v 1.38 2018/02/13 08:34:03 adam Exp $
-
-DISTNAME=      uwsgi-2.0.16
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    www python
-MASTER_SITES=  ${MASTER_SITE_PYPI:=u/uwsgi/}
+# $NetBSD: Makefile,v 1.39 2018/03/02 16:14:46 joerg Exp $
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://uwsgi-docs.readthedocs.io/
+.include  "Makefile.common"
+
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 COMMENT=       Feature-rich WSGI server
-LICENSE=       gnu-gpl-v2 # with linking exception
-
-USE_TOOLS+=    pkg-config
 
 PLIST_SUBST+=  PYPKGPREFIX=${PYPKGPREFIX}
 EGG_NAME=      ${DISTNAME:S/uwsgi/uWSGI/}
 
 .include "options.mk"
 
-INSTALL_ENV+=  UWSGI_INCLUDES=${PREFIX}/include
-INSTALL_ENV+=  UWSGI_PROFILE_OVERRIDE="pcre=True;ssl=True;${UWSGI_DEBUG};${UWSGI_JSON};${UWSGI_UUID};${UWSGI_XML};${UWSGI_YAML}"
-
+INSTALL_ENV+=          UWSGI_PROFILE_OVERRIDE="${UWSGI_DEBUG}${UWSGI_JSON}${UWSGI_PCRE}${UWSGI_SSL}${UWSGI_UUID}${UWSGI_XML}${UWSGI_YAML}"
 INSTALLATION_DIRS+=    share/examples/${PYPKGPREFIX}-uwsgi
 
 post-install:
@@ -27,10 +18,5 @@
        ${INSTALL_DATA} ${WRKSRC}/examples/* \
                ${DESTDIR}${PREFIX}/share/examples/${PYPKGPREFIX}-uwsgi
 
-.include "../../devel/pcre/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/egg.mk"
-.include "../../security/openssl/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c7eef4cc0ec7 -r 4c04a4dce3d5 www/py-uwsgi/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-uwsgi/Makefile.common      Fri Mar 02 16:14:46 2018 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile.common,v 1.1 2018/03/02 16:15:35 joerg Exp $
+#
+# used by www/ap-uwsgi/Makefile
+# used by www/py-uwsgi/Makefile
+
+DISTNAME=      uwsgi-2.0.16
+CATEGORIES=    www python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=u/uwsgi/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://projects.unbit.it/uwsgi
+LICENSE=       gnu-gpl-v2 # with linking exception
+
+PATCHDIR=              ${.CURDIR}/../../www/py-uwsgi/patches
+DISTINFO_FILE=         ${.CURDIR}/../../www/py-uwsgi/distinfo
+
+USE_LANGUAGES= c
+USE_TOOLS+=    pkg-config
+
+INSTALL_ENV+=          UWSGI_INCLUDES=${PREFIX}/include
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"



Home | Main Index | Thread Index | Old Index