From 1baa95277d7021d606f0b79216c936695f410184 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 10 Jun 2020 14:37:09 -0300 Subject: [PATCH] Fix manpage installation on BSD Respect MANPREFIX when it's set, when not, use PREFIX --- miniupnpd/Makefile.bsd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/miniupnpd/Makefile.bsd b/miniupnpd/Makefile.bsd index a3819d2..02e59e4 100644 --- a/miniupnpd/Makefile.bsd +++ b/miniupnpd/Makefile.bsd @@ -128,8 +128,8 @@ LIBS += -lssl -lcrypto INSTALLBINDIR = $(PREFIX)/sbin INSTALLETCDIR = $(PREFIX)/etc -# INSTALLMANDIR = $(PREFIX)/man -INSTALLMANDIR = /usr/share/man +MANPREFIX ?= $(PREFIX) +INSTALLMANDIR = $(MANPREFIX)/man all: $(EXECUTABLES) @@ -151,9 +151,8 @@ install: miniupnpd genuuid $(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) $(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) - # TODO : install man page correctly -# $(INSTALL) -d $(INSTALLMANDIR) -# $(INSTALL) miniupnpd.8 $(INSTALLMANDIR)/cat8/miniupnpd.0 + $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR) + $(INSTALL) -m miniupnpd.8 $(DESTDIR)$(INSTALLMANDIR)/man8/miniupnpd.8 # genuuid is using the uuid cli tool available under OpenBSD 4.0 in # the uuid-1.5.0 package