From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:42305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghLOP-0006zo-2f for guix-patches@gnu.org; Wed, 09 Jan 2019 16:28:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghLON-0001qX-Qo for guix-patches@gnu.org; Wed, 09 Jan 2019 16:28:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghLOM-0001pt-JJ for guix-patches@gnu.org; Wed, 09 Jan 2019 16:28:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ghLOM-0003yy-9W for guix-patches@gnu.org; Wed, 09 Jan 2019 16:28:02 -0500 Subject: [bug#33980] gnu: Add pwsafe Resent-Message-ID: References: <0b3c2a46-255a-968b-c0a8-1c2b750352d4@yahoo.de> <87wond3gwn.fsf@gnu.org> From: Tim Gesthuizen Message-ID: <72cf6bcd-5ee7-c2af-eb89-2199a47e866f@yahoo.de> Date: Wed, 9 Jan 2019 22:27:25 +0100 MIME-Version: 1.0 In-Reply-To: <87wond3gwn.fsf@gnu.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PKnPaxMblSDjD6UyQ1JTr0S1RAem59JyG" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 33980@debbugs.gnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PKnPaxMblSDjD6UyQ1JTr0S1RAem59JyG Content-Type: multipart/mixed; boundary="NTVjHp7uSludQNu8oO2H2D7RTF3MBBp7H"; protected-headers="v1" From: Tim Gesthuizen To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= Cc: 33980@debbugs.gnu.org Message-ID: <72cf6bcd-5ee7-c2af-eb89-2199a47e866f@yahoo.de> Subject: Re: [bug#33980] gnu: Add pwsafe References: <0b3c2a46-255a-968b-c0a8-1c2b750352d4@yahoo.de> <87wond3gwn.fsf@gnu.org> In-Reply-To: <87wond3gwn.fsf@gnu.org> --NTVjHp7uSludQNu8oO2H2D7RTF3MBBp7H Content-Type: multipart/mixed; boundary="------------893E7A7D1DF2C44EC35341D7" Content-Language: en-US This is a multi-part message in MIME format. --------------893E7A7D1DF2C44EC35341D7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, >> + ;; TODO: The help subsystem cannot be initialized >> + ;; TODO: pwsafe tries to download GTest which does not work in th= e daemon >> + ;; environment and is not functional. Substitute CMakeLists.txt t= o use >> + ;; native GTest and reenable unit tests. >> + (arguments '(#:configure-flags (list "-DNO_GTEST=3DYES"))) >=20 > It would be ideal if you could get the tests running. :-) Done. It's a really ugly hack but they are running. This uncovered the problem of the help system not initializing because /usr/bin/file was hardcoded. So enabling unit tests was a good idea (as always) :) >> + (native-inputs `(("coreutils" ,coreutils) >=20 > Coreutils is not needed, it=E2=80=99s an implicit input already. Removed. >> + (synopsis "Password safe to store passwords encrypted") >> + (description "A password manager originally designed by Bruce Sch= neier. >> +It offers a simple UI to manage passwords for different services. Th= ere are >> +other programs that support the file format on different plattforms."= ) > ^^ > Typo. >=20 > Also please make full sentences. Hope I got everything corrrect this time. Patch is attached. Tim. --------------893E7A7D1DF2C44EC35341D7 Content-Type: text/x-patch; name="0001-gnu-Add-pwsafe.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-gnu-Add-pwsafe.patch" =46rom 5106465e332782896f84b4e3ff3ae03588aeca2a Mon Sep 17 00:00:00 2001 From: Tim Gesthuizen Date: Sat, 29 Dec 2018 23:21:58 +0100 Subject: [PATCH] gnu: Add pwsafe * gnu/packages/password-utils.scm (pwsafe): New variable --- gnu/packages/password-utils.scm | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-util= s.scm index 357ef86d5..8adea891e 100644 --- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -21,6 +21,7 @@ ;;; Copyright =C2=A9 2018 Arun Isaac ;;; Copyright =C2=A9 2018 Pierre Neidhardt ;;; Copyright =C2=A9 2018 Amirouche Boubekki +;;; Copyright =C2=A9 2018 Tim Gesthuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -42,6 +43,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages admin) @@ -51,7 +53,9 @@ #:use-module (gnu packages compression) #:use-module (gnu packages crypto) #:use-module (gnu packages curl) + #:use-module (gnu packages file) #:use-module (gnu packages freedesktop) + #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) #:use-module (gnu packages gnuzilla) @@ -72,6 +76,7 @@ #:use-module (gnu packages tls) #:use-module (gnu packages qt) #:use-module (gnu packages version-control) + #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg) #:use-module (gnu packages xml) @@ -168,6 +173,57 @@ algorithms AES or Twofish.") (license license:gpl3) (properties `((superseded . ,keepassxc))))) =20 +(define-public pwsafe + (package + (name "pwsafe") + (version "3.48.0") + (home-page "https://www.pwsafe.org/" ) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pwsafe/pwsafe.git") + (commit version))) + (sha256 (base32 "0hxv23yh76liggxbjn4m132z15sklra8ms341xgzl4n5vjx3= 0ihi")) + (file-name (string-append name "-" version "-checkout")))) + (build-system cmake-build-system) + (native-inputs `(("gettext" ,gettext-minimal) + ("perl" ,perl) + ("zip" ,zip))) + (inputs `(("curl" ,curl) + ("file" ,file) + ("gtest" ,googletest) + ("libuuid" ,util-linux) + ("libxt" ,libxt) + ("libxtst" ,libxtst) + ("openssl" ,openssl) + ("qrencode" ,qrencode) + ("wxwidgets" ,wxwidgets) + ("xerces-c" ,xerces-c))) + (arguments '(#:configure-flags (list "-DNO_GTEST=3DYES") + #:phases (modify-phases %standard-phases + (add-after 'unpack 'add-gtest + (lambda* (#:key inputs #:allow-other-keys)= + (chmod "CMakeLists.txt" #o644) + (let ((cmake-port (open-file "CMakeLists= =2Etxt" + "a"))) + (display "find_package(GTest) +add_subdirectory(src/test)\n" cmake-port) + (close cmake-port)))) + (add-after 'add-gtest 'patch-executables + (lambda* (#:key inputs #:allow-other-keys)= + (chmod "src/test/OSTest.cpp" #o644) + (substitute* "src/os/unix/media.cpp" + (("/usr/bin/file") + (string-append (assoc-ref i= nputs "file") + "/bin/file")= ))))))) + (synopsis "Password safe with automatic input and key generation") + (description "pwsafe is a password manager originally designed by Br= uce +Schneier. It offers a simple UI to manage passwords for different servi= ces. +There are other programs that support the file format on different +platforms.") + (license license:artistic2.0))) + (define-public shroud (package (name "shroud") --=20 2.20.1 --------------893E7A7D1DF2C44EC35341D7-- --NTVjHp7uSludQNu8oO2H2D7RTF3MBBp7H-- --PKnPaxMblSDjD6UyQ1JTr0S1RAem59JyG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEKUiC5+8BRKEri5fa0uWPaa77GdUFAlw2Zz4ACgkQ0uWPaa77 GdVB+gf+JfSY+eL60FZQcQE5gjzT+0hyphEP7fp9EGNb3fF+v2Jl+DoOaLUDI4Tg IjSxwzYfrytcx1Tdav8t2kyw5bSRxX5iyTLdJkdFKxQmd2jHGE1QHD2t8PiPRQj0 9Ay5OR6qvDSbIKgs4KokGiDnno3UyCWOOZUX8/z5ookEd/Z+JsxHwKenzOo0kyLE Az+aWBu+6lDxJ+rbLJHe08YFLF9Xw9mZLteacrrZ5XbmponVLJIBrQqc2IUabXZn dj4Lt83NtGwirSbZ46m4O9Hnh8bg6vnE/gJULlZn6PYzgdx//ZGbnqTn56/lj1n8 xzFuhAvHQe+m7EUKYVWbziiES0+Aig== =v+eS -----END PGP SIGNATURE----- --PKnPaxMblSDjD6UyQ1JTr0S1RAem59JyG--