Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 914 Bytes

README.md

File metadata and controls

46 lines (28 loc) · 914 Bytes

pkg-version-tools

Tools for identifying when stuff in pkgsrc needs updating.

Current data sources: Wikidata, Freshcode, GitHub

Please be cautious of excessively querying these APIs. GitHub is especially likely to rate limit, so Wikidata is preferred when possible.

Requirements

  • textproc/lua-cjson
  • www/lua-curl

For gen_todo:

  • pkgtools/pkgsrc-todo

For gen_html:

  • textproc/lua-lustache

Usage

If your pkgsrc is outside /usr/pkgsrc, set PKGSRCDIR in the environment.

Commands take a list of packages in the form of category/name. Comments begin with #.

Add new packages with their data sources to packages.lua.

GitHub

You will need a personal access token: https://github.com/settings/tokens

Set the environment variable GITHUB_TOKEN to your token.

Examples

lua gen_todo.lua < package_list.txt
lua gen_html.lua < package_list.txt