aboutsummaryrefslogtreecommitdiff
path: root/package/ecryptfs-utils
diff options
context:
space:
mode:
authorGravatar Yi Zheng <goodmenzy@gmail.com>2019-11-27 12:23:48 +0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-12-24 15:00:59 +0100
commit0ba786d22c714293c14ba13f44fdc282406987d1 (patch)
treecdae79af5c70b7fd746bb3cef0031ed4e73d4d10 /package/ecryptfs-utils
parentdef14ddd4bbf56d5b76c1565f5123ea705b6062f (diff)
downloadbuildroot-0ba786d22c714293c14ba13f44fdc282406987d1.tar.gz
buildroot-0ba786d22c714293c14ba13f44fdc282406987d1.tar.bz2
package/ecryptfs-utils: add optional dependency on linux-pam
If linux-pam is enabled, we want to build pam_ecryptfs.so and install it into /lib/security/. Signed-off-by: Yi Zheng <goodmenzy@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/ecryptfs-utils')
-rw-r--r--package/ecryptfs-utils/ecryptfs-utils.mk9
1 files changed, 8 insertions, 1 deletions
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