summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hicks <mort@bork.org>2013-08-08 17:50:27 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-08-11 20:56:54 (GMT)
commit21028166a5a9d09063eec916e4ad60c964cff27d (patch)
tree49f3eee4a7267ba7dd1e3a4d11559f87e9171603
parentb6fb2f5018fe0ae9bba275991efc502236422924 (diff)
downloadbuildroot-21028166a5a9d09063eec916e4ad60c964cff27d.tar.gz
buildroot-21028166a5a9d09063eec916e4ad60c964cff27d.tar.bz2
cryptsetup: new package package
[Thomas P: add license informations, fix header, adjust dependencies in Config.in file on toolchain options.] Signed-off-by: Martin Hicks <mort@bork.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/cryptsetup/Config.in17
-rw-r--r--package/cryptsetup/cryptsetup.mk15
3 files changed, 33 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 7199a36..f27ba2b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -235,6 +235,7 @@ source "package/freescale-imx/Config.in"
source "package/a10disp/Config.in"
source "package/acpid/Config.in"
source "package/cdrkit/Config.in"
+source "package/cryptsetup/Config.in"
source "package/dbus/Config.in"
source "package/dbus-glib/Config.in"
source "package/dbus-python/Config.in"
diff --git a/package/cryptsetup/Config.in b/package/cryptsetup/Config.in
new file mode 100644
index 0000000..a8dffc6
--- /dev/null
+++ b/package/cryptsetup/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_CRYPTSETUP
+ bool "cryptsetup"
+ select BR2_PACKAGE_LIBGCRYPT
+ select BR2_PACKAGE_POPT
+ select BR2_PACKAGE_LVM2
+ select BR2_PACKAGE_E2FSPROGS
+ depends on BR2_LARGEFILE # lvm2, util-linux
+ depends on BR2_USE_MMU # lvm2
+ depends on BR2_USE_WCHAR # util-linux
+ help
+ This tool helps manipulate dm-crypt and luks partitions for
+ on-disk encryption.
+
+ https://code.google.com/p/cryptsetup/
+
+comment "cryptsetup needs largefile and wchar support in toolchain"
+ depends on !BR2_LARGEFILE || !BR2_USE_WCHAR
diff --git a/package/cryptsetup/cryptsetup.mk b/package/cryptsetup/cryptsetup.mk
new file mode 100644
index 0000000..48d37f6
--- /dev/null
+++ b/package/cryptsetup/cryptsetup.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# cryptsetup
+#
+################################################################################
+
+CRYPTSETUP_VERSION = 1.6.2
+CRYPTSETUP_SOURCE = cryptsetup-$(CRYPTSETUP_VERSION).tar.bz2
+CRYPTSETUP_SITE = http://cryptsetup.googlecode.com/files
+CRYPTSETUP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
+CRYPTSETUP_DEPENDENCIES = lvm2 popt e2fsprogs libgcrypt host-pkgconf
+CRYPTSETUP_LICENSE = GPLv2+ (programs), LGPLv2.1+ (library)
+CRYPTSETUP_LICENSE_FILES = COPYING COPYING.LGPL
+
+$(eval $(autotools-package))