summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Bis <marcin@bis.org.pl>2013-05-31 10:12:55 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-06-02 21:16:46 (GMT)
commitbe96c7a6617581fdb30078e1b24118651220d57e (patch)
treef260e2e1168d8ae3d67384775f27bef7ff3022e9
parente87a062e19d65d52af7f5b547e0068f09d7d33b5 (diff)
downloadbuildroot-be96c7a6617581fdb30078e1b24118651220d57e.tar.gz
buildroot-be96c7a6617581fdb30078e1b24118651220d57e.tar.bz2
ecryptfs-utils: new package
The following patch adds support for ecryptfs-utils. http://ecryptfs.org/ [Peter: needs host-intltool, fix typo in help text] Signed-off-by: Marcin Bis <marcin@bis.org.pl> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/ecryptfs-utils/Config.in22
-rw-r--r--package/ecryptfs-utils/ecryptfs-utils.mk28
3 files changed, 51 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 4233ff2..8a29c99 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -195,6 +195,7 @@ source "package/cramfs/Config.in"
source "package/curlftpfs/Config.in"
source "package/dosfstools/Config.in"
source "package/e2fsprogs/Config.in"
+source "package/ecryptfs-utils/Config.in"
source "package/exfat/Config.in"
source "package/exfat-utils/Config.in"
source "package/f2fs-tools/Config.in"
diff --git a/package/ecryptfs-utils/Config.in b/package/ecryptfs-utils/Config.in
new file mode 100644
index 0000000..c10659a
--- /dev/null
+++ b/package/ecryptfs-utils/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_ECRYPTFS_UTILS
+ bool "ecryptfs-utils"
+ select BR2_PACKAGE_KEYUTILS
+ select BR2_PACKAGE_LIBNSS
+ depends on BR2_USE_MMU # keyutils
+ depends on !BR2_avr32 && !BR2_microblaze # keyutils
+ depends on BR2_LARGEFILE # libnss
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libnss -> libnspr
+ help
+ eCryptfs is a POSIX-compliant enterprise cryptographic
+ filesystem for Linux. It is stacked on top of any other
+ Linux filesystem, it stores cryptographic metadata in the header
+ of each file written.
+
+ The eCryptfs kernel module is available in all Linux kernels
+ since version 2.6.19. This package provides userspace utilities
+ needed to mount eCryptfs.
+
+ Files are encrypted using a passphrase. Consider building openssl
+ for another method.
+
+ http://ecryptfs.org
diff --git a/package/ecryptfs-utils/ecryptfs-utils.mk b/package/ecryptfs-utils/ecryptfs-utils.mk
new file mode 100644
index 0000000..226c929
--- /dev/null
+++ b/package/ecryptfs-utils/ecryptfs-utils.mk
@@ -0,0 +1,28 @@
+#############################################################
+#
+# ecryptfs-utils
+#
+##############################################################
+
+ECRYPTFS_UTILS_VERSION = 103
+ECRYPTFS_UTILS_SOURCE = ecryptfs-utils_$(ECRYPTFS_UTILS_VERSION).orig.tar.gz
+ECRYPTFS_UTILS_SITE = https://launchpad.net/ecryptfs/trunk/$(ECRYPTFS_UTILS_VERSION)/+download
+ECRYPTFS_UTILS_LICENSE = GPLv2+
+ECRYPTFS_UTILS_LICENSE_FILES = COPYING
+
+ECRYPTFS_UTILS_DEPENDENCIES = keyutils libnss host-intltool
+ECRYPTFS_UTILS_CONF_OPT = --disable-pywrap --disable-pam
+
+#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_OPENSSL),y)
+ ECRYPTFS_UTILS_CONF_OPT += --enable-openssl
+ ECRYPTFS_UTILS_DEPENDENCIES += openssl
+else
+ ECRYPTFS_UTILS_CONF_OPT += --disable-openssl
+endif
+
+$(eval $(autotools-package))