Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
7eaad9d8
Commit
7eaad9d8
authored
Jun 09, 2021
by
Quanah Gibson-Mount
Browse files
ITS#7832 - Correctly configure sysconfdir so that etcdir can be overridden.
parent
362fbedc
Changes
2
Hide whitespace changes
Inline
Side-by-side
contrib/slapd-modules/ppm/INSTALL.md
View file @
7eaad9d8
...
...
@@ -13,9 +13,11 @@ Build
Enter contrib/slapd-modules/ppm directory
You can optionally customize some variables if you don't want the default ones:
-
prefix: prefix of the path where ppm is to be installed (default to /usr/local)
-
libdir: where the ppm library is to be deployed (default to /lib under prefix)
-
etcdir: where the ppm example policy is to be deployed (default to /etc/openldap under prefix)
-
prefix: prefix of the path where ppm is to be installed (defaults to /usr/local)
-
ldap_subdir: OpenLDAP specific subdirectory for modules and configurations (defaults to openldap )
-
moduledir: where the ppm module is to be deployed (defaults to $prefix/$libexecdir/$ldap_subdir)
-
etcdir: used to compose default sysconfdir location (defaults to $prefix/etc)
-
sysconfdir: where the ppm example policy is to be deployed (defaults to $prefix/$etcdir/$ldap_subdir)
-
LDAP_SRC: path to OpenLDAP source directory
-
Options in OPTS variable:
CONFIG_FILE: (DEPRECATED) path to a ppm configuration file (see PPM_READ_FILE in ppm.h)
...
...
contrib/slapd-modules/ppm/Makefile
View file @
7eaad9d8
...
...
@@ -33,7 +33,7 @@ CRACKLIB=$(CRACKLIB_$(CRACK))
DEFS
=
-DDEBUG
$(CRACKDEF)
# Define if using a config file:
# -DCONFIG_FILE="\"$(
etc
dir)/$(EXAMPLE)\""
# -DCONFIG_FILE="\"$(
sysconf
dir)/$(EXAMPLE)\""
INCS
=
$(LDAP_INC)
LIBS
=
$(LDAP_LIB)
...
...
@@ -52,7 +52,8 @@ libexecdir=$(exec_prefix)/libexec
moduledir
=
$(libexecdir)$(ldap_subdir)
mandir
=
$(exec_prefix)
/share/man
man5dir
=
$(mandir)
/man5
etcdir
=
$(exec_prefix)
/etc
$(ldap_subdir)
etcdir
=
$(exec_prefix)
/etc
sysconfdir
=
$(prefix)
/
$(etcdir)$(ldap_subdir)
TEST
=
ppm_test
EXAMPLE
=
ppm.example
...
...
@@ -74,7 +75,7 @@ install: ppm
for
p
in
$(PROGRAMS)
;
do
\
$(LIBTOOL)
--mode
=
install cp
$$
p
$(DESTDIR)
/
$(moduledir)
;
\
done
$(INSTALL)
-m
644
$(EXAMPLE)
$(DESTDIR)$(
etc
dir)
/
$(INSTALL)
-m
644
$(EXAMPLE)
$(DESTDIR)$(
sysconf
dir)
/
# $(INSTALL) -m 755 $(TEST) $(libdir)
.PHONY
:
clean
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment