ITS#9471 - Install slapo-rbac(5) man page

This commit is contained in:
Quanah Gibson-Mount 2021-04-01 20:30:01 +00:00
parent 32761fa3a1
commit 9bb87c58ff

View File

@ -7,6 +7,7 @@ LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \
$(LDAP_BUILD)/libraries/liblber/liblber.la
LIBTOOL = $(LDAP_BUILD)/libtool
INSTALL = /usr/bin/install
CC = gcc
OPT = -g -O2 -Wall
DEFS = -DSLAPD_OVER_RBAC=SLAPD_MOD_DYNAMIC
@ -14,6 +15,8 @@ INCS = $(LDAP_INC)
LIBS = $(LDAP_LIB)
PROGRAMS = rbac.la
MANPAGES = slapo-rbac.5
LTVER = 0:0:0
prefix=/usr/local
@ -23,6 +26,8 @@ ldap_subdir=/openldap
libdir=$(exec_prefix)/lib
libexecdir=$(exec_prefix)/libexec
moduledir = $(libexecdir)$(ldap_subdir)
mandir = $(exec_prefix)/share/man
man5dir = $(mandir)/man5
SRCS = rbac.c rbacperm.c rbacsess.c rbacuser.c rbacreq.c rbacaudit.c init.c rbacacl.c util.c jts.c
OBJS = $(patsubst %.c,%.o,$(SRCS))
@ -42,9 +47,17 @@ rbac.la: $(LOBJS)
clean:
rm -rf *.o *.lo *.la .libs
install: $(PROGRAMS)
install: install-lib install-man FORCE
install-lib: $(PROGRAMS)
mkdir -p $(DESTDIR)$(moduledir)
for p in $(PROGRAMS) ; do \
$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
done
install-man: $(MANPAGES)
mkdir -p $(DESTDIR)$(man5dir)
$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man5dir)
FORCE: