summaryrefslogtreecommitdiffstats
path: root/rules/ecryptfs-utils.make
blob: 9b9014e10d3ad2a4c46add5b578c1924a57da70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# -*-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	:= 111
ECRYPTFS_UTILS_MD5	:= 83513228984f671930752c3518cac6fd
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-only

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
ECRYPTFS_UTILS_CONF_TOOL := autoconf
ECRYPTFS_UTILS_CONF_OPT := \
	$(CROSS_AUTOCONF_USR) \
	--enable-nss \
	--disable-pywrap \
	--disable-openssl \
	--disable-pkcs11-helper \
	--disable-tspi \
	--disable-gpg \
	--disable-pam \
	--disable-gui \
	--disable-docs \
	--disable-docs-gen \
	--$(call ptx/endis,PTXCONF_ECRYPTFS_UTILS_TESTS)-tests \
	--disable-mudflap \
	$(GLOBAL_LARGE_FILE_OPTION) \
	--disable-nls


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_ECRYPTFS_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_PASSPHRASE)		+= /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_TESTS
	@$(call install_glob, ecryptfs-utils, 0, 0, $(ECRYPTFS_UTILS_DIR)/tests, /usr/lib/ecryptfs/tests,, \
		*Makefile* */.deps* */.libs* */.dirstamp* *.o *.c, n)
endif

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