Tree


.gitignorecommits | blame
CHANGEScommits | blame
Makefilecommits | blame
README.mdcommits | blame
acme.guidecommits | blame
compat/
configure*commits | blame
fcgi.ccommits | blame
keys/
log.ccommits | blame
log.hcommits | blame
pkg.hcommits | blame
pkg_fcgi.8commits | blame
pkg_fcgi.ccommits | blame
schema.sqlcommits | blame
server.ccommits | blame
template/
tests/
ui.tmplcommits | blame
xmalloc.ccommits | blame
xmalloc.hcommits | blame

README.md

# 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"
	}