diff --git a/sysutils/passwordsafe/Makefile b/sysutils/passwordsafe/Makefile index 7ee3a35c0bdd..ddcf407bd37a 100644 --- a/sysutils/passwordsafe/Makefile +++ b/sysutils/passwordsafe/Makefile @@ -1,78 +1,70 @@ PORTNAME= passwordsafe DISTVERSION= 1.12.0 PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= brnrd@FreeBSD.org COMMENT= Popular secure and convenient password manager LICENSE= ART20 NOT_FOR_ARCHS= aarch64 armv6 armv7 NOT_FOR_ARCHS_REASON= Cannot determine whether the target CPU is big or little endian - please fix PwsPlatform.h LIB_DEPENDS= libcurl.so:ftp/curl \ libuuid.so:misc/e2fsprogs-libuuid \ libxerces-c.so:textproc/xerces-c3 \ libqrencode.so:graphics/libqrencode BUILD_DEPENDS= zip:archivers/zip CONFLICTS= pwsafe -USES= gmake pkgconfig xorg +USES= compiler:c++11-lang gmake pkgconfig xorg USE_GITHUB= yes USE_WX= 3.0+ USE_XORG= x11 xtst OPTIONS_DEFINE= NLS YUBIKEY YUBIKEY_DESC= Yubikey support OPTIONS_SUB= yes NLS_USES= gettext YUBIKEY_LIB_DEPENDS= libykpers-1.so:security/ykpers YUBIKEY_MAKE_ENV_OFF= NO_YUBI=yes MAKE_ENV= NO_QR=yes GH_ACCOUNT= pwsafe GH_PROJECT= ${GH_ACCOUNT} WX_COMPS= wx WANT_WX_VER= 3.0 LDFLAGS= -L${PREFIX}/lib -lqrencode ALL_TARGET= unicoderelease -.include - -.if (defined(PPC_ABI) && ${PPC_ABI} == ELFv2) || ${ARCH} == powerpc -USES+= compiler:gcc-c++11-lib -.else -USES+= compiler:c++11-lang -.endif - post-patch: . for f in Makefile.freebsd help/Makefile.freebsd src/os/unix/Makefile \ src/os/unix/dir.cpp src/ui/wxWidgets/Makefile ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/$f . endfor post-build: ${GMAKE} -C ${WRKSRC}/src/ui/wxWidgets/I18N mos ${GMAKE} -C ${WRKSRC}/help all do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/ui/wxWidgets/GCCUnicodeRelease/pwsafe \ ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DOCSDIR}/help ${CP} ${WRKSRC}/help/help*.zip ${STAGEDIR}${DOCSDIR}/help post-install-NLS-on: .for l in da de es fr it ko nl pl ru sv zh ${MKDIR} ${STAGEDIR}${PREFIX}/locale/$l/LC_MESSAGES ${INSTALL_DATA} ${WRKSRC}/src/ui/wxWidgets/I18N/mos/$l/LC_MESSAGES/pwsafe.mo \ ${STAGEDIR}${PREFIX}/locale/$l/LC_MESSAGES .endfor .include diff --git a/sysutils/passwordsafe/files/patch-src_core_ItemData.cpp b/sysutils/passwordsafe/files/patch-src_core_ItemData.cpp new file mode 100644 index 000000000000..e60bc7f24d0f --- /dev/null +++ b/sysutils/passwordsafe/files/patch-src_core_ItemData.cpp @@ -0,0 +1,11 @@ +--- src/core/ItemData.cpp.orig 2022-04-25 06:47:08 UTC ++++ src/core/ItemData.cpp +@@ -1940,6 +1940,7 @@ bool CItemData::DeSerializePlainText(const std::vector + + #ifdef PWS_BIG_ENDIAN +- unsigned char buf[len] = {0}; ++ unsigned char buf[len]; ++ memset(buf, 0, len*sizeof(char)); + + switch(type) { + case CTIME: