💾 Archived View for gemini.omarpolo.com › pages › webpkg.gmi captured on 2023-09-28 at 16:08:40. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-05-24)
-=-=-=-=-=-=-
Writing about things, sometimes
WebPKG is a web-interface for the OpenBSD ports collection. It features a full-text search across package names, comment, description and mantainer field, as well as a presentation page for the packages.
On the technical side, WebPKG is a CGI script written in C that uses sqlports, an sqlite database with the data about all the ports. It was written by leveraging kcgi and sqlbox, so the resulting code base is very short.
KCGI – minimal CGI and FastCGI library for C/C++
sqlbox – secure database access library
Requires the two mentioned libraries (kcgi and sqlbox) installed, then a simple
$ make
will build everything, as pkg-config is used to obtain the correct CFLAGS/LDFLAGS.
You may need to point the SQLPORTS variable to the sqlports database.
By default
$ make install
will used doas to install the files inside /var/www/
-- text: CC0 1.0; code: public domain (unless specified otherwise). No copyright here.