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_permit/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/pam_permit/Makefile.am') diff --git a/modules/pam_permit/Makefile.am b/modules/pam_permit/Makefile.am index 3fb4792c..e9a05156 100644 --- a/modules/pam_permit/Makefile.am +++ b/modules/pam_permit/Makefile.am @@ -15,7 +15,11 @@ dist_check_SCRIPTS = tst-pam_permit TESTS = $(dist_check_SCRIPTS) $(check_PROGRAMS) securelibdir = $(SECUREDIR) +if HAVE_VENDORDIR +secureconfdir = $(VENDOR_SCONFIGDIR) +else secureconfdir = $(SCONFIGDIR) +endif AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ $(WARN_CFLAGS) -- cgit v1.2.3