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. 1 week ago
README.md Update repo url. 1 week ago
ports-json.py Indent the entries. 1 year ago

README.md

Ports JSON generator

$ doas pkg_add python%3 sqlports
$ git clone https://codeberg.org/juanfra684/ports-json.git
$ cd ports-json
$ ./ports-json.py -h
usage: ports-json.py [-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
$ ./ports-json.py -o packages.json /usr/local/share/sqlports