From 96b70abec27356eba17ecc16d1c52e8cfa5c46cd Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Thu, 26 Jan 2023 16:20:07 +0100 Subject: build: use /security directory for installation if it has been set Otherwise the corresponding files are still installed in /etc/security. * configure.ac (AC_SUBST): Add VENDOR_SCONFIGDIR. (AM_CONDITIONAL): Add HAVE_VENDORDIR. * modules/*/Makefile.am (secureconfdir): Set to VENDOR_SCONFIGDIR if HAVE_VENDORDIR has been set, otherwise to SCONFIGDIR. --- modules/pam_limits/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/pam_limits') diff --git a/modules/pam_limits/Makefile.am b/modules/pam_limits/Makefile.am index 9ae1794d..3a3b5e01 100644 --- a/modules/pam_limits/Makefile.am +++ b/modules/pam_limits/Makefile.am @@ -15,7 +15,11 @@ dist_check_SCRIPTS = tst-pam_limits TESTS = $(dist_check_SCRIPTS) securelibdir = $(SECUREDIR) +if HAVE_VENDORDIR +secureconfdir = $(VENDOR_SCONFIGDIR) +else secureconfdir = $(SCONFIGDIR) +endif limits_conf_dir = $(SCONFIGDIR)/limits.d AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ -- cgit v1.2.3