No description
- CSS 67%
- Perl 25.3%
- Shell 3.6%
- mupad 2.3%
- Nix 1.8%
| lib | fmt and fix rns page to be 7.8 | |
| public | remove dark mode | |
| rns | openbsd 7.9 \o/ | |
| support | Update readme as p5-Mojo-SQLite is in ports | |
| .envrc | initial | |
| .gitignore | ignore .vscode made by PLS | |
| flake.lock | flake.lock: Update | |
| flake.nix | remove flake-warn | |
| LICENSE | remove stray form | |
| openbsd.app.pl | openbsd 7.9 \o/ | |
| README.md | remove TODOs | |
| upgrade.sh | openbsd 7.9 \o/ | |
OpenBSD.app
A site that allows quick full-text searching of OpenBSD packages for -stable and -current.
Hacking
Generating FTS5 databases
$ sqlite3 stable.db
> ATTACH DATABASE '/usr/local/share/sqlports' AS ports;
> CREATE VIRTUAL TABLE
ports_fts
USING fts5(
FULLPKGNAME,
FULLPKGPATH,
COMMENT,
DESCRIPTION);
> INSERT INTO
ports_fts
(FULLPKGNAME, FULLPKGPATH, COMMENT, DESCRIPTION)
SELECT
fullpkgname,
_paths.fullpkgpath,
comment,
_descr.value
FROM
ports._ports
JOIN _paths ON _paths.id=_ports.fullpkgpath
JOIN _descr ON _descr.fullpkgpath=_ports.fullpkgpath;
> .quit
.. and the same for current.db using sqlports from -current.
Running on OpenBSD
$ doas pkg_add p5-Mojolicious p5-Text-Markdown p5-Mojo-SQLite p5-HTML-Escape sqlports
$ morbo openbsd.app.pl
Running with nix/NixOS
nix shell
morbo openbsd.app.pl