diff --git a/net/opennx/Makefile b/net/opennx/Makefile index 74975922a905..3ef59e488b5c 100644 --- a/net/opennx/Makefile +++ b/net/opennx/Makefile @@ -1,54 +1,54 @@ PORTNAME= opennx PORTVERSION= 0.16.0.729 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/CI-source MAINTAINER= beyert@cs.ucr.edu COMMENT= Open source drop in replacement for NoMachine's NX client WWW= http://opennx.net/ LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/bin/zip:archivers/zip LIB_DEPENDS= libcups.so:print/cups \ libcurl.so:ftp/curl USES= gmake gnome samba:lib xorg USE_XORG= ice sm x11 xau xmu USE_WX= 2.8+ WRKSRC= ${WRKDIR}/${PORTNAME}-0.16 GNU_CONFIGURE= yes LDFLAGS+= -L${LOCALBASE}/lib -L${SAMBALIBS} CONFIGURE_ARGS= --with-wx-config=${WX_CONFIG} CPPFLAGS+= -I${LOCALBASE}/include -I${SAMBAINCLUDES} NO_PACKAGE= must generate a fresh private key at install time LEGAL_PACKAGE= yes SSH_KEYGEN?= ssh-keygen OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls # do not use default private key included with tarball post-patch: @${RM} ${WRKSRC}/share/keys/server.id_dsa.key @${SSH_KEYGEN} -N '' -b 2048 -q -f ${WRKSRC}/share/keys/server.id_dsa.key @${REINPLACE_CMD} 's|/usr/NX/bin/||' \ ${WRKSRC}/extres/xdg/innovidata-opennx.desktop \ ${WRKSRC}/extres/xdg/innovidata-opennx-admin.desktop \ ${WRKSRC}/extres/xdg/innovidata-opennx-wizard.desktop @${RM} ${WRKSRC}/extres/xdg/*.bak post-install: @${CHMOD} 440 ${STAGEDIR}${PREFIX}/share/keys/server.id_dsa.key .include diff --git a/net/opennx/files/patch-opennxApp.cpp b/net/opennx/files/patch-opennxApp.cpp new file mode 100644 index 000000000000..a4a805af02e6 --- /dev/null +++ b/net/opennx/files/patch-opennxApp.cpp @@ -0,0 +1,22 @@ +--- opennxApp.cpp.orig 2022-11-07 09:51:49 UTC ++++ opennxApp.cpp +@@ -759,7 +759,7 @@ void opennxApp::checkNxSmartCardSupport() + #endif + if (!fn.FileExists()) + return; +- time_t last_mtime; ++ long last_mtime; + long last_size; + time_t mtime = fn.GetModificationTime().GetTicks(); + long size = fn.GetSize().ToULong(); +@@ -767,8 +767,8 @@ void opennxApp::checkNxSmartCardSupport() + wxConfigBase::Get()->Read(wxT("Config/NxSshSize"), &last_size, 0); + wxConfigBase::Get()->Read(wxT("Config/NxSshSmartCardSupport"), &m_bNxSmartCardSupport, false); + +- if ((mtime != last_mtime) || (size != last_size)) { +- wxConfigBase::Get()->Write(wxT("Config/NxSshStamp"), mtime); ++ if ((mtime != (time_t)last_mtime) || (size != last_size)) { ++ wxConfigBase::Get()->Write(wxT("Config/NxSshStamp"), (long)mtime); + wxConfigBase::Get()->Write(wxT("Config/NxSshSize"), size); + wxString nxsshcmd = fn.GetShortPath(); + nxsshcmd << wxT(" -I 0 -V");