-- Leo's gemini proxy

-- Connecting to gemlog.blue:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

gmnisrv on macOS


I experimented a bit with gmnisrv today. Nothing major, actually I was just trying to compile it on my Mac.


https://sr.ht/~sircmpwn/gmnisrv/


Installation


gmnisrv compiles without problems, however make install is not very cooperative at first. This seems to be an issue with macOS’ onboard install command which does not recognize the -D flag:


install -Dm755 gmnisrv /Users/kristof/.local/bin/gmnisrv
install: illegal option -- D

I solved this by editing the Makefile and replacing install with the GNU equivalent (prefixed with "g" by Homebrew to not interfere with macOS’ native command):


install: all
	mkdir -p \
		$(DESTDIR)$(BINDIR) \
		$(DESTDIR)$(SHAREDIR)/gmnisrv \
		$(DESTDIR)$(MANDIR)/man5 \
		$(DESTDIR)$(MANDIR)/man1
	ginstall -Dm755 gmnisrv $(DESTDIR)$(BINDIR)/gmnisrv
	ginstall -Dm644 $(SRCDIR)/config.ini $(DESTDIR)$(SHAREDIR)/gmnisrv/gmnisrv.ini
	ginstall -Dm644 doc/gmnisrv.1 $(DESTDIR)$(MANDIR)/man1/gmnisrv.1
	ginstall -Dm644 doc/gmnisrvini.5 $(DESTDIR)$(MANDIR)/man5/gmnisrv.ini.5

Now everything installs as expected. There is an error regarding the man pages since scdoc (the man page generator used by gmnisrv) is not installed on my system. I tried compiling scdoc, but ran into some linker issues.


https://git.sr.ht/~sircmpwn/scdoc


Running gmnisrv


As smooth at it comes: I just added the directory with an index.gmi to the init file gmnisrv.ini and started it up.


Issues


With the client Lagrange everything works as expected but I couldn’t get elpher to connect to gmnisrv. The connection timed out all the time:


---- ERROR -----

When attempting to retrieve gemini://localhost/:
Connection time-out.

----------------

Press 'u' to return to the previous page.

gmnisrv didn’t even report any connection attempts in its log. Maybe I’ll find the time to figure out what this is all about.

-- Response ended

-- Page fetched on Sun Jun 2 11:19:41 2024