Gemini interface for the OpenBSD ports tree
- C 84.6%
- Yacc 7.5%
- Roff 4.7%
- Makefile 3.2%
| compat | fix release process and delete useless stuff | |
| keys | Add keys for 0.1 and 0.2 | |
| template | initial import | |
| tests | fix release process and delete useless stuff | |
| .gitignore | +gitignore | |
| acme.guide | initial import | |
| CHANGES | CHANGES for 0.1 | |
| configure | configure: remove test for asr_run | |
| fcgi.c | guard #include tmpl.h -- currently unused | |
| log.c | missing include | |
| log.h | replace log.[ch] | |
| Makefile | distfiles+=CHANGES | |
| pkg.h | initial import | |
| pkg_fcgi.8 | fix email address in manpage | |
| pkg_fcgi.c | initial import | |
| README.md | improve the manpage | |
| schema.sql | add the sqlite schema | |
| server.c | guard #include tmpl.h -- currently unused | |
| ui.tmpl | initial import | |
| xmalloc.c | initial import | |
| xmalloc.h | initial import | |
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"
}