Blame


1 4f46073b 2020-11-06 op # WebPKG
2 4f46073b 2020-11-06 op
3 4f46073b 2020-11-06 op 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.
4 4f46073b 2020-11-06 op
5 4f46073b 2020-11-06 op => https://webpkg.omarpolo.com WebPKG
6 4f46073b 2020-11-06 op => https://git.omarpolo.com/webpkg Source code
7 4f46073b 2020-11-06 op => https://github.com/omar-polo/webpkg GitHub mirror
8 4f46073b 2020-11-06 op
9 4f46073b 2020-11-06 op 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.
10 4f46073b 2020-11-06 op
11 4f46073b 2020-11-06 op => https://kristaps.bsd.lv/kcgi/ KCGI – minimal CGI and FastCGI library for C/C++
12 4f46073b 2020-11-06 op => https://kristaps.bsd.lv/sqlbox/ sqlbox – secure database access library
13 4f46073b 2020-11-06 op
14 4f46073b 2020-11-06 op ## Building
15 4f46073b 2020-11-06 op
16 4f46073b 2020-11-06 op Requires the two mentioned libraries (kcgi and sqlbox) installed, then a simple
17 4f46073b 2020-11-06 op ```
18 4f46073b 2020-11-06 op $ make
19 4f46073b 2020-11-06 op ```
20 4f46073b 2020-11-06 op will build everything, as pkg-config is used to obtain the correct CFLAGS/LDFLAGS.
21 4f46073b 2020-11-06 op
22 4f46073b 2020-11-06 op You may need to point the SQLPORTS variable to the sqlports database.
23 4f46073b 2020-11-06 op
24 4f46073b 2020-11-06 op By default
25 4f46073b 2020-11-06 op ```
26 4f46073b 2020-11-06 op $ make install
27 4f46073b 2020-11-06 op ```
28 4f46073b 2020-11-06 op will used doas to install the files inside /var/www/