Little tool to generate a JSON file using OpenBSD sqlports as source.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Juan Francisco Cantero Hurtado 6f0451de18 Update repo url. 2 years ago Update repo url. 2 years ago Indent the entries. 3 years ago

Ports JSON generator

$ doas pkg_add python%3 sqlports
$ git clone
$ cd ports-json
$ ./ -h
usage: [-h] [-l | -o OUTPUT] database

positional arguments:
  database              sqlports database file

optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list columns, useful to detect new entries in the DB
  -o OUTPUT, --output OUTPUT
                        json file where the results will be written
$ ./ -o packages.json /usr/local/share/sqlports