mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] pam: add more options
@ 2020-05-13 10:46 Ladislav Michl
  2020-05-19 12:23 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2020-05-13 10:46 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] pam: add more options
  2020-05-13 10:46 [ptxdist] [PATCH] pam: add more options Ladislav Michl
@ 2020-05-19 12:23 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2020-05-19 12:23 UTC (permalink / raw)
  To: ptxdist

Thanks, applied as 1cbb25e8506ec2d6a75676ff6db4146be6cce977.

Michael

[sent from post-receive hook]

On Tue, 19 May 2020 14:23:35 +0200, Ladislav Michl <ladis@linux-mips.org> wrote:
> Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
> Message-Id: <20200513104614.GB5308@lenoch>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/pam.in b/rules/pam.in
> index 75d5ef42c87b..4bf4cac100b4 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 b665ce1476b4..538ce2fa0263 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 \

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-19 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 10:46 [ptxdist] [PATCH] pam: add more options Ladislav Michl
2020-05-19 12:23 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox