summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2020-06-21 20:25:45 +0000
committerwiz <wiz@pkgsrc.org>2020-06-21 20:25:45 +0000
commit3aa3e348bb789d1ab202e3dbbd83aa0a02a1969c (patch)
treea6e5496d8db244e6bc6cce2bcf9e1b223262758c
parent86c53b68089d5a2d64d84b9f207cc57feba6c287 (diff)
downloadpkgsrc-3aa3e348bb789d1ab202e3dbbd83aa0a02a1969c.tar.gz
www/firefox_decrypt: import firefox_decrypt-0.7.0
Firefox Decrypt is a tool to extract passwords from profiles of Mozilla (Fire/Water)fox, Thunderbird, SeaMonkey, and some derivates. It can be used to recover passwords from a profile protected by a Master Password as long as the latter is known. If a profile is not protected by a Master Password, a password will still be requested but can be left blank. This tool does not try to crack or brute-force the Master Password in any way. If the Master Password is not known it will simply fail to recover any data.
-rw-r--r--www/firefox_decrypt/DESCR11
-rw-r--r--www/firefox_decrypt/Makefile27
-rw-r--r--www/firefox_decrypt/PLIST2
-rw-r--r--www/firefox_decrypt/distinfo7
-rw-r--r--www/firefox_decrypt/patches/patch-firefox__decrypt.py15
5 files changed, 62 insertions, 0 deletions
diff --git a/www/firefox_decrypt/DESCR b/www/firefox_decrypt/DESCR
new file mode 100644
index 00000000000..ab7e87d3659
--- /dev/null
+++ b/www/firefox_decrypt/DESCR
@@ -0,0 +1,11 @@
+Firefox Decrypt is a tool to extract passwords from profiles of
+Mozilla (Fire/Water)fox, Thunderbird, SeaMonkey, and some derivates.
+
+It can be used to recover passwords from a profile protected by a
+Master Password as long as the latter is known. If a profile is
+not protected by a Master Password, a password will still be
+requested but can be left blank.
+
+This tool does not try to crack or brute-force the Master Password
+in any way. If the Master Password is not known it will simply fail
+to recover any data.
diff --git a/www/firefox_decrypt/Makefile b/www/firefox_decrypt/Makefile
new file mode 100644
index 00000000000..2570d593242
--- /dev/null
+++ b/www/firefox_decrypt/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2020/06/21 20:25:45 wiz Exp $
+
+DISTNAME= firefox_decrypt-0.7.0
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=unode/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/unode/firefox_decrypt/
+COMMENT= Extract passwords from Mozilla Firefox profiles
+LICENSE= gnu-gpl-v3
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+REPLACE_PYTHON= firefox_decrypt.py
+INSTALLATION_DIRS= bin
+
+SUBST_CLASSES+= nss
+SUBST_FILES.nss+= ${REPLACE_PYTHON}
+SUBST_STAGE.nss= pre-configure
+SUBST_VARS.nss+= PREFIX
+
+do-build:
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/firefox_decrypt.py ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/firefox_decrypt/PLIST b/www/firefox_decrypt/PLIST
new file mode 100644
index 00000000000..50b1423cf2e
--- /dev/null
+++ b/www/firefox_decrypt/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/06/21 20:25:45 wiz Exp $
+bin/firefox_decrypt.py
diff --git a/www/firefox_decrypt/distinfo b/www/firefox_decrypt/distinfo
new file mode 100644
index 00000000000..8704ea98968
--- /dev/null
+++ b/www/firefox_decrypt/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/06/21 20:25:45 wiz Exp $
+
+SHA1 (firefox_decrypt-0.7.0.tar.gz) = d4e83c500f4afc0f814096dc501d5aafb18cddc4
+RMD160 (firefox_decrypt-0.7.0.tar.gz) = f9f22345a3589ed9180b2913e7a0094ae7da88da
+SHA512 (firefox_decrypt-0.7.0.tar.gz) = a719820e1934f38b7f2a22f6946d1f3738281473381b346eec3a1904827aa5f6b7fff2147cbb9c411276232bacc32ec7a09d597d30ba2f72a93a8482e7737e7f
+Size (firefox_decrypt-0.7.0.tar.gz) = 62639 bytes
+SHA1 (patch-firefox__decrypt.py) = 2b27605f255cf8f45db6f827ded04f2e424a4941
diff --git a/www/firefox_decrypt/patches/patch-firefox__decrypt.py b/www/firefox_decrypt/patches/patch-firefox__decrypt.py
new file mode 100644
index 00000000000..fd8f4cc63b9
--- /dev/null
+++ b/www/firefox_decrypt/patches/patch-firefox__decrypt.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-firefox__decrypt.py,v 1.1 2020/06/21 20:25:45 wiz Exp $
+
+Help it find libnss3.
+
+--- firefox_decrypt.py.orig 2018-01-25 20:30:09.000000000 +0000
++++ firefox_decrypt.py
+@@ -278,7 +278,7 @@ class NSSDecoder(object):
+ firefox = self.find_nss(locations, nssname)
+ else:
+ nssname = "libnss3.so"
+- firefox = "" # Current directory or system lib finder
++ firefox = "@PREFIX@/lib/nss"
+
+ try:
+ nsslib = os.path.join(firefox, nssname)