* [Buildroot] [PATCH] ecryptfs-utils: add linux-pam dependency if PAM has been enabled
[not found] <20191127042053.GC1282@techyauld.com>
@ 2019-11-27 4:23 ` Yi Zheng
2019-12-24 14:10 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Yi Zheng @ 2019-11-27 4:23 UTC (permalink / raw)
To: buildroot
If linux-pam has been selected, we want to build pam_ecryptfs.so
and install it into /lib/security/
Signed-off-by: Yi Zheng <goodmenzy@gmail.com>
---
package/ecryptfs-utils/ecryptfs-utils.mk | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/package/ecryptfs-utils/ecryptfs-utils.mk
b/package/ecryptfs-utils/ecryptfs-utils.mk
index eb3194b6d0..326ff4f2dd 100644
--- a/package/ecryptfs-utils/ecryptfs-utils.mk
+++ b/package/ecryptfs-utils/ecryptfs-utils.mk
@@ -11,13 +11,20 @@ ECRYPTFS_UTILS_LICENSE = GPL-2.0+
ECRYPTFS_UTILS_LICENSE_FILES = COPYING
ECRYPTFS_UTILS_DEPENDENCIES = keyutils libnss host-intltool
-ECRYPTFS_UTILS_CONF_OPTS = --disable-pywrap --disable-pam
+ECRYPTFS_UTILS_CONF_OPTS = --disable-pywrap
#Needed for build system to find pk11func.h and libnss3.so
ECRYPTFS_UTILS_CONF_ENV = \
NSS_CFLAGS="-I$(STAGING_DIR)/usr/include/nss
-I$(STAGING_DIR)/usr/include/nspr" \
NSS_LIBS="-lnss3"
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+ECRYPTFS_UTILS_CONF_OPTS += --enable-pam
+ECRYPTFS_UTILS_DEPENDENCIES += linux-pam
+else
+ECRYPTFS_UTILS_CONF_OPTS += --disable-pam
+endif
+
ifeq ($(BR2_PACKAGE_OPENSSL),y)
ECRYPTFS_UTILS_CONF_OPTS += --enable-openssl
ECRYPTFS_UTILS_DEPENDENCIES += openssl
--
2.24.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] ecryptfs-utils: add linux-pam dependency if PAM has been enabled
2019-11-27 4:23 ` [Buildroot] [PATCH] ecryptfs-utils: add linux-pam dependency if PAM has been enabled Yi Zheng
@ 2019-12-24 14:10 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-12-24 14:10 UTC (permalink / raw)
To: buildroot
On Wed, 27 Nov 2019 12:23:48 +0800
Yi Zheng <goodmenzy@gmail.com> wrote:
> If linux-pam has been selected, we want to build pam_ecryptfs.so
> and install it into /lib/security/
>
> Signed-off-by: Yi Zheng <goodmenzy@gmail.com>
> ---
> package/ecryptfs-utils/ecryptfs-utils.mk | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-24 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20191127042053.GC1282@techyauld.com>
2019-11-27 4:23 ` [Buildroot] [PATCH] ecryptfs-utils: add linux-pam dependency if PAM has been enabled Yi Zheng
2019-12-24 14:10 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.