Re: port of nss-passwords

2017-03-29 Thread Matthias Apitz
El día martes, marzo 28, 2017 a las 12:30:01p. m. +0200, Matthias Apitz 
escribió:

> Yes, thank you. It is even in the head of our ports.
> This brings it on step further:
> 
> $ gmake
> ocamlfind ocamlc -g -package fileutils.str,sqlite3 -c main.ml
> ocamlfind: Package `fileutils.str' not found
> gmake: *** [Makefile:20: main.cmo] Error 2+
> 
> (the 'sqlite3' can be installed with the port databases/ocaml-sqlite3).
> 
> Something like ports/*/ocaml-file* we do not have.

I manged to compile and install ocaml-fileutils directly from its source
and could gmake the tool nss-passwords. It works nicely but only on the
old signons.sqlite database, not on the logins.json file of Mozilla.

Perhaps one could write a script to insert the records from logins.json
into the old (now unused) signons.sqlite db.

matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Re: port of nss-passwords

2017-03-28 Thread Rodrigo Osorio


On 03/28/17 11:31, abi wrote:



On 28.03.2017 11:32, Matthias Apitz wrote:


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/

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Hi,

As a personal project start an online tool to found which package 
provides a specific file,
the interface is far from perfect but it works. At the moment I just 
perform the results are

100% true for FreeBSD-11 AMD64. Feel free to try it. :)

http://pkgtool.osorio.me/

All the best,
- rodrigo
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: port of nss-passwords

2017-03-28 Thread ros


On 03/28/17 11:31, abi wrote:



On 28.03.2017 11:32, Matthias Apitz wrote:


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/

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Hi,

As a personal project start an online tool to found which package 
provides a specific file,
the interface is far from perfect but it works. At the moment I just 
perform the results are

100% true for FreeBSD-11 AMD64. Feel free to try it. :)

http://pkgtool.osorio.me/

All the best,
- rodrigo
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: port of nss-passwords

2017-03-28 Thread Matthias Apitz
El día martes, marzo 28, 2017 a las 12:31:04p. m. +0300, abi escribió:

> > 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 $<
> > ...
> >
> Probably, this one http://www.freshports.org/devel/ocaml-findlib/

Yes, thank you. It is even in the head of our ports.
This brings it on step further:

$ gmake
ocamlfind ocamlc -g -package fileutils.str,sqlite3 -c main.ml
ocamlfind: Package `fileutils.str' not found
gmake: *** [Makefile:20: main.cmo] Error 2+

(the 'sqlite3' can be installed with the port databases/ocaml-sqlite3).

Something like ports/*/ocaml-file* we do not have.

+Cc: michip...@gmail.com

matthias

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Re: port of nss-passwords

2017-03-28 Thread abi



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/

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


port of nss-passwords

2017-03-28 Thread Matthias Apitz

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'.

Thanks

matthias

-- 
Matthias Apitz   |  /"\   ASCII Ribbon Campaign:
E-mail: g...@unixarea.de |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X- No proprietary attachments
phone: +49-176-38902045  |  / \   - Respect for open standards
 | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"