diff options
Diffstat (limited to 'net-im/libsignal-node/Makefile')
-rw-r--r-- | net-im/libsignal-node/Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/net-im/libsignal-node/Makefile b/net-im/libsignal-node/Makefile index fe8433019a98..b8302f813606 100644 --- a/net-im/libsignal-node/Makefile +++ b/net-im/libsignal-node/Makefile @@ -1,11 +1,12 @@ PORTNAME= libsignal DISTVERSIONPREFIX= v -DISTVERSION= 0.42.0 +DISTVERSION= 0.45.0 +PORTREVISION= 1 CATEGORIES= net-im PKGNAMESUFFIX= -node DISTFILES= libsignal-node-${DISTVERSION}-yarn-cache.tar.gz -MAINTAINER= ports@FreeBSD.org +MAINTAINER= mikael@FreeBSD.org COMMENT= Platform-agnostic APIs used by the official Signal clients and servers WWW= https://github.com/signalapp/libsignal @@ -14,15 +15,21 @@ LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= aarch64 amd64 -FETCH_DEPENDS= yarn-node20>0:www/yarn-node20 -EXTRACT_DEPENDS=yarn-node20>0:www/yarn-node20 +FETCH_DEPENDS= yarn-node${NODEJS_VERSION}>0:www/yarn-node${NODEJS_VERSION} +EXTRACT_DEPENDS=yarn-node${NODEJS_VERSION}>0:www/yarn-node${NODEJS_VERSION} BUILD_DEPENDS= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} \ protoc:devel/protobuf \ - yarn:www/yarn-node18 + yarn:www/yarn-node${NODEJS_VERSION} USES= cargo gmake python:build USE_GITHUB= yes GH_ACCOUNT= signalapp +# to get the GH_TUPLE +# git clone git@github.com:signalapp/boring.git +# cd boring +# git checkout correct_tag (grep boring Makefile.crates) +# git submodule update --init --recursive +# the hash for boringssl and fips should be printed on screen GH_TUPLE= google:boringssl:44b3df6f03d85c901767250329c571db405122d5:boringssl \ google:boringssl:853ca1ea1168dff08011e5d42d94609cc0ca2e27:boringssl_fips @@ -40,6 +47,7 @@ USE_LDCONFIG= yes PLIST_FILES= lib/libsignal_node.so +NODEJS_VERSION= 20 NODE_ARCH= ${ARCH:S/aarch64/arm64/:S/amd64/x64/:S/i386/ia32/:C/powerpc64.*/ppc64/} NPM_RINGRTC_DIR= npm-@signalapp-ringrtc-2.36.0-67d1b48bd4c1ea31c155ea14a0bd28f04e46eff5-integrity NPM_SIGNAL_DIR= npm-@signalapp-libsignal-client-0.39.1-15b41f15c516ae3eecf8a098a9c9c7aac00444d7-integrity @@ -77,10 +85,11 @@ post-patch: ${REINPLACE_CMD} "s#python3#${PYTHON_CMD}#" \ ${WRKSRC}/node/binding.gyp -# Check hash here: https://github.com/signalapp/boring/tree/libsignal/boring-sys/deps +# to get the hash: +# fetch -o - https://raw.githubusercontent.com/signalapp/libsignal/v0.45.0/Cargo.lock | grep https://github.com/signalapp/boring post-extract: - ${MV} ${WRKDIR}/boringssl-44b3df6f03d85c901767250329c571db405122d5/* ${WRKDIR}/boring-8245063ae6eb97d909982b89fad45bb7f0a2a1a0/boring-sys/deps/boringssl - ${MV} ${WRKDIR}/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/* ${WRKDIR}/boring-8245063ae6eb97d909982b89fad45bb7f0a2a1a0/boring-sys/deps/boringssl-fips + ${MV} ${WRKDIR}/boringssl-44b3df6f03d85c901767250329c571db405122d5/* ${WRKDIR}/boring-signal-v4.6.0/boring-sys/deps/boringssl + ${MV} ${WRKDIR}/boringssl-853ca1ea1168dff08011e5d42d94609cc0ca2e27/* ${WRKDIR}/boring-signal-v4.6.0/boring-sys/deps/boringssl-fips ${CP} ${FILESDIR}/node/package.json ${WRKSRC}/node |