Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
changeset 3:cbc74218977f
Configure and prepare an empty directory for installing plugins
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 15 Sep 2017 22:41:17 +0200 |
| parents | 003d10e103ef |
| children | ebd6edf33748 |
| files | Makefile pkg-plist |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Fri Sep 15 21:59:09 2017 +0200 +++ b/Makefile Fri Sep 15 22:41:17 2017 +0200 @@ -30,7 +30,7 @@ USERS= uwsgi GROUPS= uwsgi -PLIST_FILES= bin/uwsginl +PLIST_SUB= PORTNAME=${PORTNAME} PLUGIN_DIR=${PLUGIN_DIR} OPTIONS_DEFINE= DEBUG JSON PCRE XML @@ -47,16 +47,20 @@ .include <bsd.port.options.mk> +PLUGIN_DIR= lib/${PORTNAME}/plugins + post-patch: .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: @${DO_NADA} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + ${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .include <bsd.port.mk>
