From owner-freebsd-questions@freebsd.org Tue Mar 28 09:36:48 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D56E8D1D4B0; Tue, 28 Mar 2017 09:36:48 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mail.abinet.ru (mail.abinet.ru [136.243.72.227]) by mx1.freebsd.org (Postfix) with ESMTP id 9B715C15; Tue, 28 Mar 2017 09:36:48 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from sphinx.abinet.ru (unknown [192.168.2.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.abinet.ru (Postfix) with ESMTPSA id A0D0041FD8; Tue, 28 Mar 2017 09:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abinet.ru; s=dkim; t=1490693468; bh=2TQRpyZOXVhgeaqIIjvxedJbWOfeqh3RGVxl2PnZYbc=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=SRRnmHEi4NU28CUPFI935jp9h1lNuy43QNLQVDq2wfKx1yh3I24J4szLV1pKJOh9X LkYZkxi/TpYFeVvhLAm5DTSKGhEscJUU0q+FJe+sm6L+kSOwMBn+Y08DrsRm8CmPuQ B1TvSv+4dVLnTn4mqr1Q7LDhDZqL8rT3gmd6VBcE= Subject: Re: port of nss-passwords To: Matthias Apitz , freebsd-questions@freebsd.org References: <20170328083242.GA26303@sh4-5.1blu.de> Cc: freebsd-ports@freebsd.org From: abi Message-ID: <6208b8c0-3660-b005-b7cb-16f8b86bbe3a@abinet.ru> Date: Tue, 28 Mar 2017 12:31:04 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170328083242.GA26303@sh4-5.1blu.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=disabled version=3.4.1 X-Spam-Report: * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid * 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on postfix.abinet.ru X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2017 09:36:48 -0000 On 28.03.2017 11:32, Matthias Apitz wrote: > Hello, > > I was searching for some cmd line tool to extract the 'saved logins' > from my firefox; I know that there is some mozilla add-on, but I do not > want to use this. > > I came across this little piece of software https://github.com/glondu/nss-passwords > which seems to do exactly this, following the README: > > ... > This program reads passwords from a Mozilla keyring. It can run > entirely in text mode. It is merely a higher level version of > pwdecrypt, which is no longer convenient for direct use with > SQLite-based and JSON-based keyrings of recent versions of Firefox. > ... > > The problem is that I do not understand, what the Makefile is doing (in > Debian), for example: > > OCAMLC = ocamlfind ocamlc -g -package fileutils.str,sqlite3,atdgen > OCAMLOPT = ocamlfind ocamlopt -g -package fileutils.str,sqlite3,atdgen > > ML_CFLAGS = $(foreach u,$(shell pkg-config --cflags nss),-ccopt $(u)) > ML_LFLAGS = $(foreach u,$(shell pkg-config --libs nss),-cclib $(u)) > ... > %.cmo: %.ml > $(OCAMLC) -c $< > ... > > Anybody out here who knows what ports could bring the required > infrastructure ocamlfind...? I have installed ocaml-4.02.3, but this has > no 'ocamlfind'. > Probably, this one http://www.freshports.org/devel/ocaml-findlib/