changeset 7:a6ab1247fe1f

Use the UWSGI_BIN_NAME environment variable instead of appending "bin_name" to the build configuration file
author Franz Glasner <hg@dom66.de>
date Sat, 16 Sep 2017 00:10:09 +0200
parents 6dfc8b8f2a4d
children 9bc73563b595
files Makefile
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Sep 15 23:24:08 2017 +0200
+++ b/Makefile	Sat Sep 16 00:10:09 2017 +0200
@@ -23,7 +23,7 @@
 
 CFLAGS+=	-I${OPENSSLINC}
 LDFLAGS+=	${OPENSSL_LDFLAGS}
-MAKE_ENV+=	CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe
+MAKE_ENV+=	CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_BIN_NAME=${PORTNAME} UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe
 
 PYSETUP=			uwsgiconfig.py
 PYDISTUTILS_BUILD_TARGET=	--build
@@ -55,7 +55,6 @@
 .for var in JSON PCRE XML
 	@${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini
 .endfor
-	echo "bin_name = ${PORTNAME}" >> ${WRKSRC}/buildconf/nolang.ini
 	echo "plugin_dir = ${PREFIX}/${PLUGIN_DIR}" >> ${WRKSRC}/buildconf/nolang.ini
 
 do-configure: