among other changes, this addresses CVE-2020-15166 https://github.com/zeromq/libzmq/security/advisories/GHSA-fc3w-qxf5-7hp6
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.35 2020/09/12 07:42:51 jasper Exp $
|
|
|
|
COMMENT = open source message queue optimised for performance
|
|
|
|
V = 4.3.3
|
|
DISTNAME = zeromq-${V}
|
|
|
|
SHARED_LIBS += zmq 5.2 # 7.3
|
|
|
|
CATEGORIES = net
|
|
HOMEPAGE = http://zeromq.org/
|
|
|
|
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# LGPLv3
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += c m pthread sodium ${COMPILER_LIBCXX}
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES = https://github.com/zeromq/libzmq/releases/download/v$V/
|
|
|
|
BUILD_DEPENDS = textproc/asciidoc \
|
|
textproc/xmlto
|
|
LIB_DEPENDS = security/libsodium
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ARGS = --disable-Werror
|
|
# XXX: verify tweetnacl (the default) uses proper randomness before using it
|
|
CONFIGURE_ARGS += --with-libsodium
|
|
|
|
# XXX libsodium: https://github.com/jedisct1/libsodium/pull/104
|
|
CONFIGURE_ENV = CXXFLAGS="-Wno-long-long ${CXXFLAGS}"
|
|
|
|
# test_system needs to be able to create at least 496 sockets
|
|
do-test:
|
|
cd ${WRKSRC} && ulimit -n 1024 && ${MAKE_PROGRAM} ${TEST_TARGET}
|
|
|
|
.include <bsd.port.mk>
|