Ok.

(I am still finding local scripts using the gpg2/gpgv2 names as well..)

--
 Sent from a phone, apologies for poor formatting.

On 14 November 2022 08:15:11 Stefan Hagen <sh+openbsd-po...@codevoid.de> wrote:

Hello,

qtpass defaults to using the gpg2 executable and complains at the first
start if it can't be found. Our gpg 2.2 executable is called "gpg".

Let's fix this in the port, so it works out of the box.

OK?

Best Regards,
Stefan


Index: Makefile
===================================================================
RCS file: /cvs/ports/security/qtpass/Makefile,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile
--- Makefile    11 Mar 2022 19:53:59 -0000      1.3
+++ Makefile    14 Nov 2022 08:07:46 -0000
@@ -3,7 +3,7 @@ COMMENT=        multi-platform GUI for password
GH_ACCOUNT=     IJHack
GH_PROJECT=     QtPass
GH_TAGNAME=     v1.3.2
-REVISION=      0
+REVISION=      1
PKGNAME=        ${DISTNAME:L}

CATEGORIES=     security x11
Index: patches/patch-src_configdialog_cpp
===================================================================
RCS file: patches/patch-src_configdialog_cpp
diff -N patches/patch-src_configdialog_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_configdialog_cpp  14 Nov 2022 08:07:46 -0000
@@ -0,0 +1,14 @@
+Our gpg2 is called gpg
+
+Index: src/configdialog.cpp
+--- src/configdialog.cpp.orig
++++ src/configdialog.cpp
+@@ -237,7 +237,7 @@ void ConfigDialog::on_autodetectButton_clicked() {
+   if (!pass.isEmpty())
+     ui->passPath->setText(pass);
+   usePass(!pass.isEmpty());
+-  QString gpg = Util::findBinaryInPath("gpg2");
++  QString gpg = Util::findBinaryInPath("gpg");
+   if (gpg.isEmpty())
+     gpg = Util::findBinaryInPath("gpg");
+   if (!gpg.isEmpty())

Reply via email to