Gemini interface for the OpenBSD ports tree
  • C 84.6%
  • Yacc 7.5%
  • Roff 4.7%
  • Makefile 3.2%
2024-01-08 11:43:58 +00:00
compat fix release process and delete useless stuff 2024-01-08 11:33:31 +00:00
keys Add keys for 0.1 and 0.2 2024-01-08 10:12:17 +00:00
template initial import 2023-06-25 08:40:55 +00:00
tests fix release process and delete useless stuff 2024-01-08 11:33:31 +00:00
.gitignore +gitignore 2023-06-25 09:22:35 +00:00
acme.guide initial import 2023-06-25 08:40:55 +00:00
CHANGES CHANGES for 0.1 2024-01-08 11:34:45 +00:00
configure configure: remove test for asr_run 2024-01-08 11:43:58 +00:00
fcgi.c guard #include tmpl.h -- currently unused 2024-01-08 11:40:30 +00:00
log.c missing include 2023-10-16 10:52:30 +00:00
log.h replace log.[ch] 2023-10-16 10:52:00 +00:00
Makefile distfiles+=CHANGES 2024-01-08 11:35:56 +00:00
pkg.h initial import 2023-06-25 08:40:55 +00:00
pkg_fcgi.8 fix email address in manpage 2024-01-08 10:10:00 +00:00
pkg_fcgi.c initial import 2023-06-25 08:40:55 +00:00
README.md improve the manpage 2023-08-13 21:54:22 +00:00
schema.sql add the sqlite schema 2023-08-13 21:54:32 +00:00
server.c guard #include tmpl.h -- currently unused 2024-01-08 11:40:30 +00:00
ui.tmpl initial import 2023-06-25 08:40:55 +00:00
xmalloc.c initial import 2023-06-25 08:40:55 +00:00
xmalloc.h initial import 2023-06-25 08:40:55 +00:00

pkg_fcgi - FastCGI interface for the OpenBSD ports tree

pkg_fcgi is meant to be the replacement of gempkg, a Python CGI script that allows to browse the OpenBSD package archive via Gemini.

There's a hosted version updated daily available at gemini://gemini.omarpolo.com/cgi/gempkg/.

pkg_fcgi depends on libevent and sqlite3. To build, please run

$ ./configure
$ make
$ doas make install

To operate, pkg_fcgi needs an augmented version of the sqlite database installed by the sqlports package. To generate it, issue;

# install -d -o www /var/www/pkg_fcgi/
# cp /usr/local/share/sqlports /var/www/pkg_fcgi/pkgs.sqlite3
# sqlite3 /var/www/pkg_fcgi/pkgs.sqlite3 <schema.sql

A sample configuration for gmid is:

server "localhost" {
	listen on *
	fastcgi socket "/run/pkg_fcgi.sock"
}