1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/www/unit-ruby/Makefile
Sergey A. Osokin 6684134299 */*unit*: update NGINX Unit: 1.29.1 -> 1.30.0
<ChangeLog>

*) Change: remove Unix domain listen sockets upon reconfiguration.

*) Feature: basic URI rewrite support.

*) Feature: NJS loadable modules support.

*) Feature: per-application logging.

*) Feature: conditional logging of route selection.

*) Feature: support the keys API on the request objects in NJS.

*) Feature: default values for 'make install' pathnames such as prefix;
   this allows to './configure && make && sudo make install'.

*) Feature: "server_version" setting to omit the version token from
   "Server" header field.

*) Bugfix: request header field values could be corrupted in some cases;
   the bug had appeared in 1.29.0.

*) Bugfix: PHP error handling (added missing 403 and 404 errors).

*) Bugfix: Perl applications crash on second responder call.

</ChangeLog>
2023-05-12 10:36:16 -04:00

41 lines
908 B
Makefile

PKGNAMESUFFIX= -${UNIT_MODNAME}
UNIT_MODNAME= ruby${RUBY_VER}
COMMENT= Ruby module for NGINX Unit
RUN_DEPENDS= rackup:www/rubygem-rack22 \
unitd:www/unit
PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so
USES= ruby
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/lib/unit/modules/${UNIT_MODNAME}.unit.so \
${STAGEDIR}${PREFIX}/libexec/unit/modules/
# Overwrite the target in the ${MASTERDIR}/Makefile
post-install:
@${DO_NADA}
.include "${MASTERDIR}/Makefile"