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_faillock/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/pam_faillock') diff --git a/modules/pam_faillock/Makefile.am b/modules/pam_faillock/Makefile.am index ca73bd05..ec61aeb0 100644 --- a/modules/pam_faillock/Makefile.am +++ b/modules/pam_faillock/Makefile.am @@ -18,7 +18,11 @@ dist_check_SCRIPTS = tst-pam_faillock TESTS = $(dist_check_SCRIPTS) $(check_PROGRAMS) securelibdir = $(SECUREDIR) +if HAVE_VENDORDIR +secureconfdir = $(VENDOR_SCONFIGDIR) +else secureconfdir = $(SCONFIGDIR) +endif noinst_HEADERS = faillock.h faillock_config.h -- cgit v1.2.3