Subject: bug#60053: closed (Re: [bug#60053] [PATCH] gnu: Add pdfcrack.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 03 Jan 2023 14:13:02 +0000

Your bug report

#60053: [PATCH] gnu: Add pdfcrack.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
60053: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60053
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#60053] [PATCH] gnu: Add pdfcrack.
From: Nicolas Goaziou <[email-masked]>
To: phodina via Guix-patches via <[email-masked]>
Cc: [email-masked], phodina <[email-masked]>
Date: Tue, 03 Jan 2023 15:12:32 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

phodina via Guix-patches via <[email-masked]> writes:

> here's another Kali tool in case you forget password for PDF file.

It looks like I forgot to close this one.

I applied your patch a couple of weeks ago. Thank you!

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] gnu: Add pdfcrack.
From: phodina <[email-masked]>
To: Guix Patches <[email-masked]>
Date: Tue, 13 Dec 2022 23:58:37 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

here's another Kali tool in case you forget password for PDF file.

----
Petr

From a856681da7868a3d6fd08469e68be23bf1bb8956 Mon Sep 17 00:00:00 2001
From: Petr Hodina <[email-masked]>
Date: Wed, 14 Dec 2022 00:56:34 +0100
Subject: [PATCH] gnu: Add pdfcrack.

* gnu/packages/pdf.scm (pdfcrack): New variable.

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 070dc59ac0..cf0268f418 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2020, 2022 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2021 Maxime Devos <[email-masked]>
 ;;; Copyright © 2022 Paul A. Patience <[email-masked]>
+;;; Copyright © 2022 Petr Hodina <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1203,6 +1204,37 @@ (define-public fbida
 the framebuffer.")
     (license license:gpl2+)))
 
+(define-public pdfcrack
+  (package
+    (name "pdfcrack")
+    (version "0.20")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://salsa.debian.org/debian/pdfcrack")
+                    (commit (string-append "upstream/" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "15vrl4c14nqrcgwqqv26p73dzipy8n15d3f0pgi8mywcr5d4p33w"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f ;no test suite
+           #:make-flags #~(list (string-append "CC="
+                                               #$(cc-for-target)))
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure)
+                        (replace 'install
+                          (lambda* _
+                            (mkdir-p (string-append #$output "/bin"))
+                            (install-file "pdfcrack"
+                                          (string-append #$output "/bin")))))))
+    (home-page "https://pdfcrack.sourceforge.net/")
+    (synopsis "Password Recovery Tool for PDF-files")
+    (description "This package provides a simple tool for recovering passwords
+from pdf-documents that use the standard security handler.")
+    (license license:gpl2+)))
+
 (define-public pdf2svg
   (package
     (name "pdf2svg")
-- 
2.38.1