and fixing a bug introduced in 0.5.0 (not updated in ports until post-5.5): "when crypto_sign_open() was given a signed message too short to even contain a signature, it was putting an unlimited amount of zeros into the target buffer instead of immediately returning -1."
33 lines
736 B
Makefile
33 lines
736 B
Makefile
# $OpenBSD: Makefile,v 1.5 2014/07/16 13:45:01 sthen Exp $
|
|
|
|
COMMENT= library for network communications and cryptography
|
|
|
|
DISTNAME= libsodium-0.6.1
|
|
|
|
SHARED_LIBS += sodium 3.0 # .12.0
|
|
|
|
CATEGORIES= security net
|
|
|
|
HOMEPAGE= https://github.com/jedisct1/libsodium
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# ISC
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += m
|
|
|
|
MASTER_SITES= https://download.libsodium.org/libsodium/releases/
|
|
|
|
SEPARATE_BUILD= Yes
|
|
# If built with OpenBSD libtool, self-tests and net/dnscrypt-proxy fail
|
|
USE_LIBTOOL= gnu
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libsodium
|
|
${INSTALL_DATA} ${WRKSRC}/README.markdown ${PREFIX}/share/doc/libsodium/
|
|
|
|
.include <bsd.port.mk>
|