mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
bda75efad9
<ChangeLog> *) Change: matching of cookies in routes made case sensitive. *) Change: decreased log level of common errors when clients close connections. *) Change: removed the Perl module's "--include=" ./configure option. *) Feature: built-in WebSocket server implementation for Node.js module. *) Feature: splitting PATH_INFO from request URI in PHP module. *) Feature: request routing by scheme (HTTP or HTTPS). *) Feature: support for multipart requests body in Java module. *) Feature: improved API compatibility with Node.js 11.10 or later. *) Bugfix: reconfiguration failed if "listeners" or "applications" objects were missing. *) Bugfix: applying a large configuration might have failed. </ChangeLog>
80 lines
1.6 KiB
Makefile
80 lines
1.6 KiB
Makefile
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= unit
|
|
PORTVERSION= 1.10.0
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://unit.nginx.org/download/
|
|
|
|
MAINTAINER= osa@FreeBSD.org
|
|
COMMENT?= Dynamic web application server
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES+= compiler:c11 cpe
|
|
|
|
CPE_VENDOR= nginx
|
|
CPE_PRODUCT= unit
|
|
|
|
OPTIONS_DEFINE?= \
|
|
DEBUG \
|
|
IPV6 \
|
|
UNIXSOCK
|
|
OPTIONS_DEFAULT?=UNIXSOCK
|
|
|
|
DEBUG_DESC= Enable debug logging
|
|
UNIXSOCK_DESC= Enable unix sockets
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
UNIT_VARDIR?= /var
|
|
UNIT_RUNDIR?= ${UNIT_VARDIR}/run/unit
|
|
UNIT_LOGDIR?= ${UNIT_VARDIR}/log/${PORTNAME}
|
|
UNIT_LOGFILE?= ${UNIT_LOGDIR}/${PORTNAME}.log
|
|
UNIT_PIDFILE?= ${UNIT_RUNDIR}/${PORTNAME}.pid
|
|
UNIT_SOCK?= ${UNIT_RUNDIR}/control.unit.sock
|
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--modules=libexec/unit/modules \
|
|
--state=libexec/unit \
|
|
--log=${UNIT_LOGFILE} \
|
|
--pid=${UNIT_PIDFILE} \
|
|
--ld-opt="-L${LOCALBASE}/lib"
|
|
|
|
PLIST_FILES?= sbin/unitd
|
|
PLIST_DIRS?= libexec/unit/modules \
|
|
libexec/unit
|
|
|
|
USE_RC_SUBR?= unitd
|
|
SUB_LIST= UNIT_PIDFILE=${UNIT_PIDFILE} \
|
|
UNIT_SOCK=${UNIT_SOCK} \
|
|
PREFIX=${PREFIX}
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CONFIGURE_ARGS+=--debug
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MIPV6)
|
|
CONFIGURE_ARGS+=--no-ipv6
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MUNIXSOCK)
|
|
CONFIGURE_ARGS+=--no-unix-sockets
|
|
.else
|
|
CONFIGURE_ARGS+=--control=unix:${UNIT_SOCK}
|
|
.endif
|
|
|
|
.if !target(post-install)
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${UNIT_LOGDIR}
|
|
${MKDIR} ${STAGEDIR}${UNIT_RUNDIR}
|
|
${ECHO_CMD} @dir ${UNIT_LOGDIR} >> ${TMPPLIST}
|
|
${ECHO_CMD} @dir ${UNIT_RUNDIR} >> ${TMPPLIST}
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|