# HG changeset patch # User Franz Glasner # Date 1552121920 -3600 # Node ID 98faecd6ea000390b4c371f15f575104e91fa2e8 # Parent 70b8e449d5638939bb06808ff4388ae4442f922d# Parent 5227737fcf7419f0f2fbea4284c6e14716309de4 MERGE: port revision 2 from uwsgi 2.0.16 diff -r 70b8e449d563 -r 98faecd6ea00 Makefile --- a/Makefile Wed Feb 21 22:25:05 2018 +0100 +++ b/Makefile Sat Mar 09 09:58:40 2019 +0100 @@ -4,6 +4,7 @@ PORTNAME= uwsginl PORTVERSION= 2.0.16 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://projects.unbit.it/downloads/ DISTNAME= uwsgi-${DISTVERSION} @@ -17,11 +18,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -USES= pkgconfig python:build ssl +USES= pkgconfig python:build USE_RC_SUBR= uwsginl -CFLAGS+= -I${OPENSSLINC} -LDFLAGS+= ${OPENSSL_LDFLAGS} 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 @@ -29,7 +28,9 @@ PLIST_SUB= PORTNAME=${PORTNAME} PLUGIN_DIR=${PLUGIN_DIR} -OPTIONS_DEFINE= DEBUGSYM UWSGIDEBUG JSON PCRE XML +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) @@ -46,12 +47,17 @@ 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 +.for bcvar in DEBUG JSON PCRE XML SSL @${REINPLACE_CMD} -e '/^${bcvar:tl} =/ s|= .*|= ${BUILDCONF_${bcvar}:Ufalse}|' ${WRKSRC}/buildconf/base.ini .endfor diff -r 70b8e449d563 -r 98faecd6ea00 files/uwsginl.in --- a/files/uwsginl.in Wed Feb 21 22:25:05 2018 +0100 +++ b/files/uwsginl.in Sat Mar 09 09:58:40 2019 +0100 @@ -92,7 +92,7 @@ eval uwsginl_logfile=\${uwsginl_${profile}_logfile:-"/var/log/${name}-${profile}.log"} eval uwsginl_pidfile=\${uwsginl_${profile}_pidfile:-"/var/run/${name}-${profile}.pid"} eval uwsginl_uid=\${uwsginl_${profile}_uid:-"${uwsginl_uid}"} - eval uwsginl_gid=\${uwsginl_${profile}_gid:-"${uwsginl_uid}"} + eval uwsginl_gid=\${uwsginl_${profile}_gid:-"${uwsginl_gid}"} eval uwsginl_flags=\${uwsginl_${profile}_flags:-"${uwsginl_flags}"} eval uwsginl_procname=\${uwsginl_${profile}_procname:-"${uwsginl_procname}"} eval uwsginl_emperor=\${uwsginl_${profile}_emperor:-"${uwsginl_emperor}"}