Files
ports/security/lastpass-cli/Makefile
T
John W. O'Brien 76da322580 security/lastpass-cli: ensure consistent OpenSSL usage
The recent change, switching security/openssl from 1.1.1w to 3.0.11
uncovered a latent bug in security/lastpass-cli, which always uses
OpenSSL from base regardless of the ssl setting in DEFAULT_VERSIONS.
With DEFAULT_VERSIONS+=ssl=openssl, the configure phase reports
"Installing openssl-3.0.11,1" and subsequently

    -- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1t")

This patch fixes the bug and ensures the same OpenSSL version is used
throughout.

PR:		274507
MFH:		2023Q4
2023-10-19 03:07:27 -04:00

56 lines
1.5 KiB
Makefile

PORTNAME= lastpass-cli
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.6
CATEGORIES= security
MAINTAINER= ports@FreeBSD.org
COMMENT= LastPass command line interface tool
WWW= https://lastpass.com/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl
USES= cmake:noninja gnome pkgconfig ssl
USE_GNOME= libxml2
USE_GITHUB= yes
GH_ACCOUNT= lastpass
TEST_TARGET= lpass-test test
PLIST_FILES= bin/lpass
OPTIONS_DEFINE= BASH MANPAGES PINENTRY XCLIP XSEL
OPTIONS_DEFAULT= BASH MANPAGES
PINENTRY_DESC= Use pinentry for password entry
XCLIP_DESC= Use xclip for interacting with X11 clipboard
XSEL_DESC= Use xsel for interacting with X11 clipboard
BASH_BUILD_DEPENDS= bash-completion>=0:shells/bash-completion
BASH_RUN_DEPENDS= bash-completion>=0:shells/bash-completion
BASH_PLIST_FILES= share/bash-completion/completions/lpass
MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
xmlto:textproc/xmlto
MANPAGES_ALL_TARGET= all doc-man
MANPAGES_INSTALL_TARGET= install install-doc
MANPAGES_PLIST_FILES= ${MANPREFIX}/share/man/man1/lpass.1.gz
PINENTRY_RUN_DEPENDS= pinentry:security/pinentry
XCLIP_RUN_DEPENDS= xclip:x11/xclip
XSEL_RUN_DEPENDS= xsel:x11/xsel-conrad
CMAKE_ARGS+= -DOPENSSL_ROOT_DIR=${OPENSSLBASE}
post-extract:
@${REINPLACE_CMD} -e 's/-Wno-language-extension-token//g' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's/build\/lpass-test/lpass-test/' \
${WRKSRC}/test/include.sh
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lpass
.include <bsd.port.mk>