Fix manpage installation on BSD

Respect MANPREFIX when it's set, when not, use PREFIX
This commit is contained in:
Renato Botelho 2020-06-10 14:37:09 -03:00
parent 61ce33a51b
commit 1baa95277d
1 changed files with 4 additions and 5 deletions

View File

@ -128,8 +128,8 @@ LIBS += -lssl -lcrypto
INSTALLBINDIR = $(PREFIX)/sbin INSTALLBINDIR = $(PREFIX)/sbin
INSTALLETCDIR = $(PREFIX)/etc INSTALLETCDIR = $(PREFIX)/etc
# INSTALLMANDIR = $(PREFIX)/man MANPREFIX ?= $(PREFIX)
INSTALLMANDIR = /usr/share/man INSTALLMANDIR = $(MANPREFIX)/man
all: $(EXECUTABLES) all: $(EXECUTABLES)
@ -151,9 +151,8 @@ install: miniupnpd genuuid
$(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR) $(INSTALL) -m 755 miniupnpd $(DESTDIR)$(INSTALLBINDIR)
$(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR) $(INSTALL) -d $(DESTDIR)$(INSTALLETCDIR)
$(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR) $(INSTALL) -b miniupnpd.conf $(DESTDIR)$(INSTALLETCDIR)
# TODO : install man page correctly $(INSTALL) -d $(DESTDIR)$(INSTALLMANDIR)
# $(INSTALL) -d $(INSTALLMANDIR) $(INSTALL) -m miniupnpd.8 $(DESTDIR)$(INSTALLMANDIR)/man8/miniupnpd.8
# $(INSTALL) miniupnpd.8 $(INSTALLMANDIR)/cat8/miniupnpd.0
# genuuid is using the uuid cli tool available under OpenBSD 4.0 in # genuuid is using the uuid cli tool available under OpenBSD 4.0 in
# the uuid-1.5.0 package # the uuid-1.5.0 package