💾 Archived View for gemini.omarpolo.com › pages › webpkg.gmi captured on 2020-11-07 at 00:47:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2021-11-30)

-=-=-=-=-=-=-

                       _
 _   _ _   _ _ __ ___ | |__
| | | | | | | '_ ` _ \| '_ \    Writing about things,
| |_| | |_| | | | | | | | | |   sometimes.
 \__, |\__,_|_| |_| |_|_| |_|
 |___/

Home

All Tags

Projects

WebPKG

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.

WebPKG

Source code

GitHub mirror

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

Building

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: CC-BY-SA-4.0; code: ISC (unless specified otherwise)

Capsule proudly assembled with Clojure

sources