From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1jYou1-0008AB-AZ for ptxdist@pengutronix.de; Wed, 13 May 2020 12:46:17 +0200 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992174AbgEMKqPbBhJD (ORCPT ); Wed, 13 May 2020 12:46:15 +0200 Date: Wed, 13 May 2020 12:46:14 +0200 From: Ladislav Michl Message-ID: <20200513104614.GB5308@lenoch> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH] pam: add more options List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Ladislav Michl --- rules/pam.in | 18 ++++++++++++++++-- rules/pam.make | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/rules/pam.in b/rules/pam.in index 75d5ef42c..4bf4cac10 100644 --- a/rules/pam.in +++ b/rules/pam.in @@ -1,10 +1,24 @@ ## SECTION=security -config PAM +menuconfig PAM tristate - prompt "PAM" + prompt "PAM " + select DB if PAM_DB select LIBC_CRYPT + select LIBTIRPC if PAM_NIS help Linux-PAM (Pluggable Authentication Modules for Linux) is a suite of shared libraries that enable the local system administrator to choose how applications authenticate users. + +if PAM + +config PAM_DB + bool + prompt "build pam_userdb (authenticate against a Berkeley DB database)" + +config PAM_NIS + bool + prompt "enable NIS/YP support in pam_unix" + +endif diff --git a/rules/pam.make b/rules/pam.make index b665ce147..538ce2fa0 100644 --- a/rules/pam.make +++ b/rules/pam.make @@ -40,8 +40,8 @@ PAM_CONF_OPT := \ --disable-lckpwdf \ --disable-cracklib \ --disable-audit \ - --disable-db \ - --disable-nis \ + --$(call ptx/endis, PTXCONF_PAM_DB)-db \ + --$(call ptx/endis, PTXCONF_PAM_NIS)-nis \ --disable-selinux \ --disable-regenerate-docu \ --disable-nls \ -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de