build: opkg-key variable key folder
authorPaul Spooren <mail@aparcar.org>
Wed, 26 Aug 2020 00:55:27 +0000 (14:55 -1000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 31 Aug 2020 21:44:26 +0000 (22:44 +0100)
commit395ac4d018d007335d6475ba00b0013d31cc0476
tree7d4c48acec85df40fe4db18255c93af8c8c33f57
parent18b1cc283879c39ffe6b50d18b487448162f2139
build: opkg-key variable key folder

The key folder is used by `opkg` and `usign` to store and retrieve
trusted public keys. Using `opkg-key` outside a running device is
unfeasible as the key folder is hard coded to `/etc/opkg/keys`.

This commit adds a variable OPKG_KEYS which defaults to `/etc/opkg/keys`
if unset, however allows set arbitrary key folder locations.

Arbitrary key folder locations are useful to add signature verification
to the ImageBuilders.

Signed-off-by: Paul Spooren <mail@aparcar.org>
package/system/opkg/files/opkg-key