pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/lastpass-cli



Module Name:    pkgsrc
Committed By:   vins
Date:           Thu Aug  1 20:10:15 UTC 2024

Modified Files:
        pkgsrc/security/lastpass-cli: Makefile distinfo
        pkgsrc/security/lastpass-cli/patches: patch-CMakeLists.txt
            patch-clipboard.c patch-upload-queue.c

Log Message:
security/lastpass-cli: update to 15.0

Taking maintainership

# Changes (since version 1.3.1)

Version 1.5.0

    Add support for URL logging
    Fix segmentation faults on Mac OS X
    Fix synchronization issues, which caused empty IDs
    Fix feature flags file deletion on logout

Version 1.4.0

    Add support for writing encrypted URLs
    Add support for feature flags
    Fix shared folder username

Version 1.3.7

    Add support for reading encrypted URLs (Tibor Komlossy)
    Fix GCC 10 compatibility issue #532 (Tibor Komlossy)

Version 1.3.6

    Bugfix version

Version 1.3.5

   Updating certificate hashes (Béla Ormos)

Version 1.3.4

    Updating post parameters (Gergely Der)

Version 1.3.3

    Decrease the time for the cli app to do things (Wesley Schwengle)
    'blob_load' refactor (Wesley Schwengle)
    Fixed bug where logout requires login (Wesley Schwengle)
    Fix non-default PKG_CONFIG_PATH on macOS (Alyssa Ross)

Version 1.3.2

    Don't require using make (Eli Schwartz)
    Disable IPv6 support (Wesley Schwengle)
    Link against Brew Curl on MacOS (Tom Sullivan)
    Autogenerate versions from git (Wesley Schwengle/Eli Schwartz)
    Remove memory leak in config_path_for_type (Tom Sullivan)
    Install bash-completions in PREFIX dir (Wesley Schwengle)
    Include libgen.h for BSD builds (Tom Sullivan)
    Create subdirectories when determining config path (Tom Sullivan)
    Only show basename in usage (William Casarin)
    Fix segmentation fault on BSD while running make test (Björn Ketelaars)


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/security/lastpass-cli/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/lastpass-cli/distinfo
cvs rdiff -u -r1.1 -r1.2 \
    pkgsrc/security/lastpass-cli/patches/patch-CMakeLists.txt \
    pkgsrc/security/lastpass-cli/patches/patch-clipboard.c \
    pkgsrc/security/lastpass-cli/patches/patch-upload-queue.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/lastpass-cli/Makefile
diff -u pkgsrc/security/lastpass-cli/Makefile:1.29 pkgsrc/security/lastpass-cli/Makefile:1.30
--- pkgsrc/security/lastpass-cli/Makefile:1.29  Wed May 29 16:34:16 2024
+++ pkgsrc/security/lastpass-cli/Makefile       Thu Aug  1 20:10:15 2024
@@ -1,23 +1,28 @@
-# $NetBSD: Makefile,v 1.29 2024/05/29 16:34:16 adam Exp $
+# $NetBSD: Makefile,v 1.30 2024/08/01 20:10:15 vins Exp $
 
-DISTNAME=      lastpass-cli-1.3.1
-PKGREVISION=   24
+DISTNAME=      lastpass-cli-1.5.0
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=lastpass/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+MAINTAINER=    vins%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/lastpass/lastpass-cli/
 COMMENT=       Command line interface to LastPass.com
 LICENSE=       gnu-gpl-v2
 
-DEPENDS+=      asciidoc>=0:../../textproc/asciidoc
+TOOL_DEPENDS+= asciidoc>=0:../../textproc/asciidoc
 
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
-USE_TOOLS=     pkg-config
+USE_TOOLS=     bash:test pkg-config
+
+REPLACE_BASH+= test/askpass-wrong.sh test/askpass.sh \
+               test/assert.sh test/include.sh test/tests
+
+CMAKE_ARGS=    -DOPENSSL_ROOT_DIR=${SSLBASE}
 
 INSTALL_TARGET=        install install-doc
+TEST_TARGET=   lpass-test test
 
 .include "../../security/openssl/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"

Index: pkgsrc/security/lastpass-cli/distinfo
diff -u pkgsrc/security/lastpass-cli/distinfo:1.4 pkgsrc/security/lastpass-cli/distinfo:1.5
--- pkgsrc/security/lastpass-cli/distinfo:1.4   Tue Oct 26 11:17:12 2021
+++ pkgsrc/security/lastpass-cli/distinfo       Thu Aug  1 20:10:15 2024
@@ -1,13 +1,13 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:17:12 nia Exp $
+$NetBSD: distinfo,v 1.5 2024/08/01 20:10:15 vins Exp $
 
-BLAKE2s (lastpass-cli-1.3.1.tar.gz) = 5480879250e1c34afa1c541d8d9d5f6a84aa212710c4aad5e3dbb4fdac0b9ef0
-SHA512 (lastpass-cli-1.3.1.tar.gz) = 092d28dc459719e662fbb2c5e92e8cc75be108aa9d7b62569ee44cb34dd9588e78151fdc5ad114c30e8de21c0b8803edc41db9295548c7cbfe6e537c9a52aad2
-Size (lastpass-cli-1.3.1.tar.gz) = 114843 bytes
-SHA1 (patch-CMakeLists.txt) = d5498e06f9fed58186caf3b2ed60c2d30ec43caa
+BLAKE2s (lastpass-cli-1.5.0.tar.gz) = 09a25debf0674d90f7965ea9b2bcb10e53af6c45745644bd93cd035a1d0a1dd1
+SHA512 (lastpass-cli-1.5.0.tar.gz) = 0b5ae5e9048ac2afa626b394100f143c4699c3dab8d57d4b17fabe4bf98b4a1004399f157b40b61fe9bba9fad025c23ac1feab5589cb9c447033f4fa1aab197c
+Size (lastpass-cli-1.5.0.tar.gz) = 119219 bytes
+SHA1 (patch-CMakeLists.txt) = 8d63af2f977ce8271c6a01b96a460581af6b673f
 SHA1 (patch-agent.c) = 2e04b136da6116f80d1a1bfa9b831ccba3e3f215
-SHA1 (patch-clipboard.c) = 1c0d7c7cf2f80f21e900257e82736f57b1a8fc0e
+SHA1 (patch-clipboard.c) = a184652b0626c340475f0f23825f24466e810e02
 SHA1 (patch-cmake__extras_install__doc.cmake) = a0d80f60501ac283d66402ef036d6934ea644f17
 SHA1 (patch-http.c) = 6027b06014d5f3c290f55a8086a493d30bdf9023
 SHA1 (patch-password.c) = 6b73b4bdb1a3c54950e17fb2db2ebca10d6a44b0
 SHA1 (patch-process.c) = 565a9d8ea4d08194c15e0e7898b1dd273b1b6f2f
-SHA1 (patch-upload-queue.c) = 45279b48d53f6f9683d3e14c58c4f5ec4c5e89ba
+SHA1 (patch-upload-queue.c) = a5340d96014c01517574275607f493ace212690d

Index: pkgsrc/security/lastpass-cli/patches/patch-CMakeLists.txt
diff -u pkgsrc/security/lastpass-cli/patches/patch-CMakeLists.txt:1.1 pkgsrc/security/lastpass-cli/patches/patch-CMakeLists.txt:1.2
--- pkgsrc/security/lastpass-cli/patches/patch-CMakeLists.txt:1.1       Wed Aug 16 15:18:24 2017
+++ pkgsrc/security/lastpass-cli/patches/patch-CMakeLists.txt   Thu Aug  1 20:10:15 2024
@@ -1,11 +1,11 @@
-$NetBSD: patch-CMakeLists.txt,v 1.1 2017/08/16 15:18:24 jperkin Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.2 2024/08/01 20:10:15 vins Exp $
 
 Link against libsocket on SunOS.
 Remove non-portable compiler warning flags.
 
---- CMakeLists.txt.orig        2017-06-28 12:50:49.000000000 +0000
+--- CMakeLists.txt.orig        2024-05-16 16:29:10.000000000 +0000
 +++ CMakeLists.txt
-@@ -45,10 +45,13 @@ file(GLOB PROJECT_SOURCES *.c)
+@@ -101,7 +101,7 @@ file(GLOB PROJECT_SOURCES *.c)
  
  set(PROJECT_DEFINITIONS "_GNU_SOURCE")
  
@@ -14,13 +14,7 @@ Remove non-portable compiler warning fla
  if(APPLE)
    set(PROJECT_FLAGS "${PROJECT_FLAGS} -Wno-deprecated-declarations")
  endif()
-+if (CMAKE_SYSTEM_NAME MATCHES "SunOS")
-+  set(PROJECT_FLAGS "${PROJECT_FLAGS} -D_XOPEN_SOURCE=600 -D__EXTENSIONS__")
-+endif (CMAKE_SYSTEM_NAME MATCHES "SunOS")
- 
- # Main lpass executable
- add_executable(${PROJECT_NAME} ${PROJECT_HEADERS} ${PROJECT_SOURCES})
-@@ -62,6 +65,9 @@ target_link_libraries(${PROJECT_NAME} ${
+@@ -121,6 +121,9 @@ target_link_libraries(${PROJECT_NAME} ${
  if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
    target_link_libraries(${PROJECT_NAME} "-lkvm")
  endif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
Index: pkgsrc/security/lastpass-cli/patches/patch-clipboard.c
diff -u pkgsrc/security/lastpass-cli/patches/patch-clipboard.c:1.1 pkgsrc/security/lastpass-cli/patches/patch-clipboard.c:1.2
--- pkgsrc/security/lastpass-cli/patches/patch-clipboard.c:1.1  Wed Aug 16 15:18:24 2017
+++ pkgsrc/security/lastpass-cli/patches/patch-clipboard.c      Thu Aug  1 20:10:15 2024
@@ -1,8 +1,8 @@
-$NetBSD: patch-clipboard.c,v 1.1 2017/08/16 15:18:24 jperkin Exp $
+$NetBSD: patch-clipboard.c,v 1.2 2024/08/01 20:10:15 vins Exp $
 
 Avoid "Missing sentinel in function call" warnings.
 
---- clipboard.c.orig   2017-06-28 12:50:49.000000000 +0000
+--- clipboard.c.orig   2024-05-16 16:29:10.000000000 +0000
 +++ clipboard.c
 @@ -64,7 +64,7 @@ void exec_command(char *command) {
                shell = "/bin/sh";
@@ -13,15 +13,17 @@ Avoid "Missing sentinel in function call
  }
  
  void clipboard_open(void)
-@@ -91,10 +91,10 @@ void clipboard_open(void)
+@@ -91,11 +91,11 @@ void clipboard_open(void)
                        exec_command(clipboard_command);
-                       die("Unable to copy contents to clipboard. Please make sure you have `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
+                       die("Unable to copy contents to clipboard. Please make sure you have `wl-clip`, `xclip`, `xsel`, `pbcopy`, or `putclip` installed.");
                } else {
+-                      execlp("wl-copy", "wl-copy", NULL);
 -                      execlp("xclip", "xclip", "-selection", "clipboard", "-in", NULL);
 -                      execlp("xsel", "xsel", "--clipboard", "--input", NULL);
 -                      execlp("pbcopy", "pbcopy", NULL);
 -                      execlp("putclip", "putclip", "--dos", NULL);
-+                      execlp("xclip", "xclip", "-selection", "clipboard", "-in", (char *)0);
++                      execlp("wl-copy", "wl-copy", (char *)0);
++                      execlp("xclip", "xclip", "-selection", "clipboard", "-in", (char*)0);
 +                      execlp("xsel", "xsel", "--clipboard", "--input", (char *)0);
 +                      execlp("pbcopy", "pbcopy", (char *)0);
 +                      execlp("putclip", "putclip", "--dos", (char *)0);
Index: pkgsrc/security/lastpass-cli/patches/patch-upload-queue.c
diff -u pkgsrc/security/lastpass-cli/patches/patch-upload-queue.c:1.1 pkgsrc/security/lastpass-cli/patches/patch-upload-queue.c:1.2
--- pkgsrc/security/lastpass-cli/patches/patch-upload-queue.c:1.1       Wed Aug 16 15:18:24 2017
+++ pkgsrc/security/lastpass-cli/patches/patch-upload-queue.c   Thu Aug  1 20:10:15 2024
@@ -1,9 +1,19 @@
-$NetBSD: patch-upload-queue.c,v 1.1 2017/08/16 15:18:24 jperkin Exp $
+$NetBSD: patch-upload-queue.c,v 1.2 2024/08/01 20:10:15 vins Exp $
 
 SunOS compatibility.
+Compatibility fix for time_t on 32-bit arches.
 
---- upload-queue.c.orig        2017-06-28 12:50:49.000000000 +0000
+--- upload-queue.c.orig        2024-05-16 16:29:10.000000000 +0000
 +++ upload-queue.c
+@@ -86,7 +86,7 @@ static void upload_queue_write_entry(con
+ 
+       for (serial = 0; serial < ULONG_MAX; ++serial) {
+               free(name);
+-              xasprintf(&name, "upload-queue/%lu%04lu", time(NULL), serial);
++              xasprintf(&name, "upload-queue/%llu%04lu", (long long)time(NULL), serial);
+               if (!config_exists(name))
+                       break;
+       }
 @@ -110,8 +110,12 @@ static void upload_queue_cleanup_failure
  
        while ((entry = readdir(dir))) {



Home | Main Index | Thread Index | Old Index