+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------

1. In order to use browser integration you need to add the following unveil
rules:

# for using the browserpass addon with the password-store package
${LOCALBASE}/bin r
${LOCALBASE}/bin/browserpass-native rx

to the corresponding configuration file:
* Chromium -> ${SYSCONFDIR}/chromium/unveil.main
* Firefox -> ${SYSCONFDIR}/firefox/unveil.main
* Iridium -> ${SYSCONFDIR}/iridium/unveil.main
* Ungoogled-chromium -> ${SYSCONFDIR}/ungoogled-chromium/unveil.main

2. To enable communication with the browser:

For Chromium-based browsers:
$ cp ${LOCALBASE}/share/examples/browserpass-native/chromium-host.json \
~/.config/<browsername>/NativeMessagingHosts/com.github.browserpass.native.json

Where <browsername> might be chromium, ungoogled-chromium,... according
to your installation.

For Firefox:
$ cp ${LOCALBASE}/share/examples/browserpass-native/firefox-host.json \
~/.mozilla/native-messaging-hosts/com.github.browserpass.native.json

3. To enable unlocking the password store from the browser extension:

The browserpass extension requires a gui version of the gpg-agent 'pinentry'
program to be installed to enable unlocking of the password store by the
browser extension.

The default pinentry or pinentry-curses terminal versions do not work.

Install either pinentry-qt5, pinentry-qt6 or pinentry-gnome3.

Then add to ~/.gnupg/gpg-agent.conf:

pinentry-program <path-to-pinentry-gui-binary>

Restart gpg-agent to re-read the configuration file:

$ gpgconf --kill gpg-agent
