bket c677338f67 Do not allow scrypt to ignore RLIMIT_DATA
scrypt estimates the amount of available RAM, and ignores RLIMIT_DATA on
systems which have mmap. From tedu@ (http://mail.tarsnap.com/scrypt/msg00263.html):

"...this is the wrong thing to do for OpenBSD. On OpenBSD, rlimit_data
is applied to anonymous mmap (since that's now the heap) for
consistency.  RLIMIT_RSS is a vestigal do nothing define."

Issue is fixed by reverting 2b478e7ce5

While here set COMPILER and COMPILER_LANGS to fix building on sparc64
and powerpc (from kmos@, and tested by kmos@ and cwen@).

OK cwen@, "patch looks good to me" tedu@
2020-01-12 17:25:37 +00:00

33 lines
580 B
Makefile

# $OpenBSD: Makefile,v 1.11 2020/01/12 17:25:37 bket Exp $
COMMENT = command-line encryption using scrypt key derivation function
DISTNAME = scrypt-1.3.0
REVISION = 0
SHARED_LIBS += scrypt-kdf 0.0 # 1.0
CATEGORIES = security
HOMEPAGE = https://www.tarsnap.com/scrypt/
# BSD
PERMIT_PACKAGE = Yes
WANTLIB = c crypto
MASTER_SITES = ${HOMEPAGE}
EXTRACT_SUFX = .tgz
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-libscrypt-kdf
DEBUG_PACKAGES = ${BUILD_PACKAGES}
TEST_TARGET = test
.include <bsd.port.mk>