# HG changeset patch # User Franz Glasner # Date 1552135534 -3600 # Node ID 68e6057a7c0a411ede5793c88ca18a331247d987 # Parent b09307db405483c9d372f60ae35fb9991d608798# Parent ef54be27c71bc6a4d798df5bad543cbdcf6a0518 MERGE: the python2 plugin from the old repository diff -r ef54be27c71b -r 68e6057a7c0a .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,3 @@ +syntax: regexp + +/work/ diff -r ef54be27c71b -r 68e6057a7c0a uwsginl-plugin-lang-py3/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-py3/Makefile Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,59 @@ +# Created by: Franz Glasner +# $FreeBSD$ + +PORTNAME?= ${UWSGI_NAME}-plugin-lang-py3 +DISTVERSION= 2.0.16 +PORTREVISION?= 0 +CATEGORIES?= www python +MASTER_SITES= http://projects.unbit.it/downloads/ +DISTNAME= uwsgi-${DISTVERSION} + +MAINTAINER?= freebsd-dev@dom66.de +COMMENT?= Language plugin for Python 3 (OS default) + +LICENSE= GPLv2-WITH-LINKING-EXCEPTION +LICENSE_GROUPS= FSF GPL OSI +LICENSE_NAME= GPLv2 with linking exception +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +BUILD_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl +RUN_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl + +# This specific python version is built +USES?= python:3 gettext-runtime +# Some python version is needed when building +USES+= python:build pkgconfig + +PLIST_FILES= ${PLUGIN_DIR}/${PLUGIN_FILENAME} + +MAKE_ENV+= UWSGI_PROFILE_OVERRIDE=plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR} PYTHON=${PYTHON_CMD} + +UWSGI_NAME= uwsginl +UWSGI_PATH= ${LOCALBASE}/bin/${UWSGI_NAME} +PLUGIN_DIR= lib/${UWSGI_NAME}/plugins + +# The name of the plugin to be created (to eventually distingush py2 and py3) +PLUGIN_NAME?= python3 +# Where to find the sources for the plugin (defaults to plugins/${PLUGIN_NAME}) +.if defined(MASTERDIR) +.if !defined(PLUGIN_SOURCE) || empty(PLUGIN_SOURCE) +PLUGIN_SOURCE= plugins/${PLUGIN_NAME} +.endif +.else +PLUGIN_SOURCE= plugins/python +.endif +# The complete basename of the plugin +PLUGIN_FILENAME= ${PLUGIN_NAME}_plugin.so + +do-configure: + @${DO_NADA} + +do-build: + @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${UWSGI_PATH} --build-plugin "${PLUGIN_SOURCE} ${PLUGIN_NAME}") + +do-install: + ${INSTALL_LIB} ${BUILD_WRKSRC}/${PLUGIN_FILENAME} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} + +.include diff -r ef54be27c71b -r 68e6057a7c0a uwsginl-plugin-lang-py3/distinfo --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-py3/distinfo Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,3 @@ +TIMESTAMP = 1518267669 +SHA256 (uwsgi-2.0.16.tar.gz) = a911f48f3cc51ac82fdabc4e001f18a32569128680beb5a833ebc3ff6edcc1f4 +SIZE (uwsgi-2.0.16.tar.gz) = 798509 diff -r ef54be27c71b -r 68e6057a7c0a uwsginl-plugin-lang-py3/pkg-descr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-py3/pkg-descr Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,4 @@ +Python3 language plugin for uwsginl. +Links to the default Python3 version on the system. + +WWW: http://projects.unbit.it/uwsgi/ diff -r ef54be27c71b -r 68e6057a7c0a uwsginl-plugin-lang-py34/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-py34/Makefile Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,15 @@ +# Created by: Franz Glasner +# $FreeBSD$ + +PORTNAME= ${UWSGI_NAME}-plugin-lang-py34 + +COMMENT= Language plugin for Python 3.4 + +USES= python:3.4 gettext-runtime + +PLUGIN_NAME= python34 +PLUGIN_SOURCE= plugins/python + +MASTERDIR= ${.CURDIR}/../uwsginl-plugin-lang-py3 + +.include "${MASTERDIR}/Makefile" diff -r ef54be27c71b -r 68e6057a7c0a uwsginl-plugin-lang-py34/pkg-descr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-py34/pkg-descr Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,4 @@ +Python3.4 language plugin for uwsginl. +Links to python3.4. + +WWW: http://projects.unbit.it/uwsgi/ diff -r ef54be27c71b -r 68e6057a7c0a uwsginl/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl/Makefile Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,74 @@ +# Created by: Franz Glasner +# $FreeBSD$ +# Based on www/uwsgi by: Daniel Gerzo + +PORTNAME= uwsginl +PORTVERSION= 2.0.16 +PORTREVISION= 2 +CATEGORIES= www +MASTER_SITES= https://projects.unbit.it/downloads/ +DISTNAME= uwsgi-${DISTVERSION} + +MAINTAINER= freebsd-dev@dom66.de +COMMENT= Application host which uses the uwsgi protocol (nolang profile) + +LICENSE= GPLv2-WITH-LINKING-EXCEPTION +LICENSE_GROUPS= FSF GPL OSI +LICENSE_NAME= GPLv2 with linking exception +LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +USES= pkgconfig python:build +USE_RC_SUBR= uwsginl + +MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_BIN_NAME=${PORTNAME} UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe UWSGI_PROFILE_OVERRIDE=plugin_dir=${PREFIX}/${PLUGIN_DIR} + +USERS= uwsgi +GROUPS= uwsgi + +PLIST_SUB= PORTNAME=${PORTNAME} PLUGIN_DIR=${PLUGIN_DIR} + +OPTIONS_DEFINE= DEBUGSYM UWSGIDEBUG JSON PCRE XML SSL +OPTIONS_DEFAULT= SSL + +DEBUGSYM_DESC= Build with debug symbols +UWSGIDEBUG_DESC= Enable uwsgi debugging (def UWSGI_DEBUG, implies DEBUG) + +DEBUGSYM_VARS= EXTRA_BUILDARGS+=--debug + +UWSGIDEBUG_VARS= BUILDCONF_DEBUG=true + +JSON_VARS= BUILDCONF_JSON=jansson +JSON_LIB_DEPENDS= libjansson.so:devel/jansson + +PCRE_VARS= BUILDCONF_PCRE=true +PCRE_LIB_DEPENDS= libpcre.so:devel/pcre + +XML_VARS= BUILDCONF_XML=libxml2 +XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 + +SSL_VARS= BUILDCONF_SSL=true +SSL_USES= ssl +SSL_CFLAGS= -I${OPENSSLINC} +SSL_LDFLAGS= ${OPENSSL_LDFLAGS} + +.include + +PLUGIN_DIR= lib/${PORTNAME}/plugins + +post-patch: +.for bcvar in DEBUG JSON PCRE XML SSL + @${REINPLACE_CMD} -e '/^${bcvar:tl} =/ s|= .*|= ${BUILDCONF_${bcvar}:Ufalse}|' ${WRKSRC}/buildconf/base.ini +.endfor + +do-configure: + @${DO_NADA} + +do-build: + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} uwsgiconfig.py --build ${EXTRA_BUILDARGS} --verbose) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + ${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} + +.include diff -r ef54be27c71b -r 68e6057a7c0a uwsginl/distinfo --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl/distinfo Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,3 @@ +TIMESTAMP = 1518267669 +SHA256 (uwsgi-2.0.16.tar.gz) = a911f48f3cc51ac82fdabc4e001f18a32569128680beb5a833ebc3ff6edcc1f4 +SIZE (uwsgi-2.0.16.tar.gz) = 798509 diff -r ef54be27c71b -r 68e6057a7c0a uwsginl/files/uwsginl.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl/files/uwsginl.in Sat Mar 09 13:45:34 2019 +0100 @@ -0,0 +1,159 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: uwsginl +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf to enable uwsgi: +# +# uwsginl_enable (bool): Set it to "YES" to enable uwsgi +# Default is "NO". +# uwsginl_socket (path/str): Set the path to the uwsgi unix socket +# Default is /tmp/uwsginl.sock. +# uwsginl_socket_mode (int): Set the mode of the socket. +# Default is 660. +# uwsginl_socket_owner (str): Set the owner of the socket. +# Default is uwsgi:www. +# uwsginl_emperor (bool): Set it to "YES" to run uwsgi in emperor mode +# Default is "NO". +# uwsginl_configfile (path): Set the path to the config file +# Default is %%PREFIX%%/etc/uwsginl/uwsginl.ini. +# uwsginl_vassals_dir (path): Set the path to the vassals directory +# Default is %%PREFIX%%/etc/uwsginl/vassals. +# uwsginl_logfile (path): Set the path to the uwsgi log file +# Default is /var/log/uwsginl.log. +# uwsginl_pidfile (path): Set the path to the uwsgi pid file +# Default is /var/run/uwsginl.pid. +# uwsginl_uid (int): Set the UID of the process to run with +# Default is uwsgi. +# uwsginl_gid (int): Set the GID of the process to run with +# Default is uwsgi. +# uwsginl_flags (str): Set the uwsgi command line arguments +# Default is "-L". +# uwsginl_procname (str): Define to "uWSGI" if you start uwsgi with +# --auto-procname option. +# +# If you would like to have multiple uWSGI instances running, you can +# define multiple profiles: +# +# uwsginl_profiles (str): Set the list of uwsgi profiles +# Default is "". +# +# For each profile you can then define different options (except for +# uwsginl_enable) using the syntax uwsginl__