summaryrefslogtreecommitdiffstats
path: root/rules/ecryptfs-utils.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-11-25 10:14:05 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2015-11-25 10:14:05 +0100
commit66842963bfe364d77767f1cfc7862208fad946b3 (patch)
treed1d37c1e4cdcde68f5720393123134bee77f7261 /rules/ecryptfs-utils.make
parent4c1aa7ac89eb5620808adb35b1dcd4a36acf9786 (diff)
downloadptxdist-66842963bfe364d77767f1cfc7862208fad946b3.tar.gz
ptxdist-66842963bfe364d77767f1cfc7862208fad946b3.tar.xz
ecryptfs-utils: new package
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/ecryptfs-utils.make')
-rw-r--r--rules/ecryptfs-utils.make94
1 files changed, 94 insertions, 0 deletions
diff --git a/rules/ecryptfs-utils.make b/rules/ecryptfs-utils.make
new file mode 100644
index 000000000..fff65948a
--- /dev/null
+++ b/rules/ecryptfs-utils.make
@@ -0,0 +1,94 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014, 2015 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_ECRYPTFS_UTILS) += ecryptfs-utils
+
+#
+# Paths and names
+#
+ECRYPTFS_UTILS_VERSION := 108
+ECRYPTFS_UTILS_MD5 := 80f2a73e14030239fa01a2f1e5606a0e
+ECRYPTFS_UTILS := ecryptfs-utils_$(ECRYPTFS_UTILS_VERSION)
+ECRYPTFS_UTILS_SUFFIX := tar.gz
+ECRYPTFS_UTILS_TARBALL := $(ECRYPTFS_UTILS).orig.$(ECRYPTFS_UTILS_SUFFIX)
+ECRYPTFS_UTILS_URL := https://launchpad.net/ecryptfs/trunk/$(ECRYPTFS_UTILS_VERSION)/+download/$(ECRYPTFS_UTILS_TARBALL)
+ECRYPTFS_UTILS_SOURCE := $(SRCDIR)/$(ECRYPTFS_UTILS).$(ECRYPTFS_UTILS_SUFFIX)
+ECRYPTFS_UTILS_DIR := $(BUILDDIR)/$(ECRYPTFS_UTILS)
+ECRYPTFS_UTILS_LICENSE := GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+ECRYPTFS_UTILS_CONF_TOOL := autoconf
+ECRYPTFS_UTILS_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-nss \
+ --disable-pywrap \
+ --disable-openssl \
+ --disable-pkcs11-helper \
+ --disable-tspi \
+ --disable-gpg \
+ --disable-pam \
+ --disable-gui \
+ --disable-docs \
+ --disable-docs-gen \
+ --disable-tests \
+ --disable-mudflap
+
+ECRYPTFS_UTILS_PROGS_y :=
+
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_MOUNT_ECRYPTFS) += /sbin/mount.ecryptfs
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_MOUNT_ECRYPTFS) += /sbin/mount.ecryptfs_private
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_MOUNT_ECRYPTFS) += /sbin/umount.ecryptfs
+
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFS_ADD_PASSPHRASE) += /usr/bin/ecryptfs-add-passphrase
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFSD) += /usr/bin/ecryptfsd
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_INSERT_WRAPPED_PASSPHRASE_INTO_KEYRING) += /usr/bin/ecryptfs-insert-wrapped-passphrase-into-keyring
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFS_MANAGER) += /usr/bin/ecryptfs-manager
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFS_REWRAP_PASSPHRAS) += /usr/bin/ecryptfs-rewrap-passphrase
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFS_STAT) += /usr/bin/ecryptfs-stat
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFS_UNWRAP_PASSPHRASE) += /usr/bin/ecryptfs-unwrap-passphrase
+ECRYPTFS_UTILS_PROGS_$(PTXCONF_ECRYPTFS_UTILS_ECRYPTFS_WRAP_PASSPHRASE) += /usr/bin/ecryptfs-wrap-passphrase
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/ecryptfs-utils.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, ecryptfs-utils)
+ @$(call install_fixup, ecryptfs-utils,PRIORITY,optional)
+ @$(call install_fixup, ecryptfs-utils,SECTION,base)
+ @$(call install_fixup, ecryptfs-utils,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, ecryptfs-utils,DESCRIPTION,missing)
+
+ @$(call install_lib, ecryptfs-utils, 0, 0, 0644, ecryptfs/libecryptfs_key_mod_passphrase)
+ @$(call install_lib, ecryptfs-utils, 0, 0, 0644, libecryptfs)
+
+ifdef PTXCONF_ECRYPTFS_UTILS_MOUNT_ECRYPTFS
+ @$(call install_link, ecryptfs-utils, mount.ecryptfs_private, /sbin/umount.ecryptfs_private)
+endif
+
+ @$(foreach prog, $(ECRYPTFS_UTILS_PROGS_y), \
+ $(call install_copy, ecryptfs-utils, 0, 0, 0755, -, $(prog));)
+
+ @$(call install_finish, ecryptfs-utils)
+
+ @$(call touch)
+
+# vim: syntax=make