Files
ports/www/unit-ruby/Makefile
T
Sergey A. Osokin 11d9a3ffb1 www/unit*: update from 1.26.1* to 1.27.0
<ChangeLog>

*) Feature: ability to specify a custom index file name when serving
   static files.

*) Feature: variables support in the "location" option of the "return"
   action.

*) Feature: support empty strings in the "location" option of the
   "return" action.

*) Feature: added a new variable, $request_uri, that includes both the
   path and the query parts as per RFC 3986, sections 3-4.

*) Feature: Ruby Rack environment parameter "SCRIPT_NAME" support.

*) Feature: compatibility with GCC 12.

*) Bugfix: Ruby Sinatra applications don't work without custom logging.

*) Bugfix: the controller process could crash when a chain of more than
   four certificates was uploaded.

*) Bugfix: some Perl applications failed to process the request body,
   notably with Plack.

*) Bugfix: some Spring Boot applications failed to start, notably with
   Grails.

*) Bugfix: incorrect Python protocol auto detection (ASGI or WSGI) for
   native callable object, notably with Falcon.

*) Bugfix: ECMAScript modules did not work with the recent Node.js
   versions.

</ChangeLog>
2022-06-02 12:40:55 -04:00

43 lines
939 B
Makefile

# Created by: Sergey Osokin <osa@FreeBSD.org>
PKGNAMESUFFIX= -${UNIT_MODNAME}
UNIT_MODNAME= ruby${RUBY_VER}
COMMENT= Ruby module for NGINX Unit
RUN_DEPENDS= rackup:www/rubygem-rack \
unitd:www/unit
PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so
USE_RUBY= yes
CFLAGS+= -fdeclspec
USE_RC_SUBR?= # reset to empty
MASTERDIR= ${.CURDIR}/../unit
post-configure:
cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} ruby \
--ruby=ruby${RUBY_VER:S|.||} \
--module=${UNIT_MODNAME}
do-build:
cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${UNIT_MODNAME}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \
${STAGEDIR}${PREFIX}/libexec/unit/modules/
# Overwrite the target in the ${MASTERDIR}/Makefile
post-install:
@${DO_NADA}
.include "${MASTERDIR}/Makefile"