svn commit: r526068 - head/www/unit
Sergey A. Osokin
osa at FreeBSD.org
Thu Feb 13 22:08:56 UTC 2020
Author: osa
Date: Thu Feb 13 22:08:56 2020
New Revision: 526068
URL: https://svnweb.freebsd.org/changeset/ports/526068
Log:
This commit introduces two new knobs:
o) SSL - enable SSL/TLS, disable by default;
o) DEVKIT - install unit static library and headers for development.
Bump PORTREVISION.
Modified:
head/www/unit/Makefile
Modified: head/www/unit/Makefile
==============================================================================
--- head/www/unit/Makefile Thu Feb 13 21:55:01 2020 (r526067)
+++ head/www/unit/Makefile Thu Feb 13 22:08:56 2020 (r526068)
@@ -3,6 +3,7 @@
PORTNAME= unit
PORTVERSION= 1.15.0
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://unit.nginx.org/download/
@@ -19,11 +20,15 @@ CPE_PRODUCT= unit
OPTIONS_DEFINE?= \
DEBUG \
+ DEVKIT \
IPV6 \
+ SSL \
UNIXSOCK
OPTIONS_DEFAULT?=UNIXSOCK
DEBUG_DESC= Enable debug logging
+DEVKIT_DESC= Install headers and library
+SSL_DESC= Enable SSL/TLS
UNIXSOCK_DESC= Enable unix sockets
.include <bsd.port.options.mk>
@@ -57,16 +62,37 @@ SUB_LIST= UNIT_PIDFILE=${UNIT_PIDFILE} \
CONFIGURE_ARGS+=--debug
.endif
+.if ${PORT_OPTIONS:MDEVKIT}
+PLIST_FILES+= include/nxt_unit_field.h \
+ include/nxt_unit.h \
+ include/nxt_unit_request.h \
+ include/nxt_unit_response.h \
+ include/nxt_unit_sptr.h \
+ include/nxt_unit_typedefs.h \
+ include/nxt_unit_websocket.h \
+ include/nxt_version.h \
+ include/nxt_websocket_header.h \
+ lib/libunit.a
+.endif
+
.if empty(PORT_OPTIONS:MIPV6)
CONFIGURE_ARGS+=--no-ipv6
.endif
+.if ${PORT_OPTIONS:MSSL}
+CONFIGURE_ARGS+=--openssl
+USES+= ssl
+.endif
+
.if empty(PORT_OPTIONS:MUNIXSOCK)
CONFIGURE_ARGS+=--no-unix-sockets
.else
CONFIGURE_ARGS+=--control=unix:${UNIT_SOCK}
.endif
+post-build-DEVKIT-on:
+ @cd ${WRKSRC} && ${GMAKE} build/libunit.a
+
.if !target(post-install)
post-install:
${MKDIR} ${STAGEDIR}${UNIT_LOGDIR}
@@ -74,6 +100,9 @@ post-install:
${ECHO_CMD} @dir ${UNIT_LOGDIR} >> ${TMPPLIST}
${ECHO_CMD} @dir ${UNIT_RUNDIR} >> ${TMPPLIST}
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules
+
+post-install-DEVKIT-on:
+ ${GMAKE} -C ${WRKSRC} libunit-install DESTDIR=${STAGEDIR}
.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list