1 |
commit: ee2f4d9682533fa8efe8369ce53418e731753f65 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 7 17:41:14 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 7 17:41:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee2f4d96 |
7 |
|
8 |
sys-fs/ecryptfs-utils: Use slot operator for sys-apps/keyutils |
9 |
|
10 |
Closes: https://bugs.gentoo.org/693238 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
sys-fs/ecryptfs-utils/ecryptfs-utils-108-r3.ebuild | 84 ++++++++++++++++++++++ |
14 |
1 file changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/ecryptfs-utils/ecryptfs-utils-108-r3.ebuild b/sys-fs/ecryptfs-utils/ecryptfs-utils-108-r3.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..f4e3280e5e8 |
19 |
--- /dev/null |
20 |
+++ b/sys-fs/ecryptfs-utils/ecryptfs-utils-108-r3.ebuild |
21 |
@@ -0,0 +1,84 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI="6" |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 ) |
28 |
+ |
29 |
+inherit flag-o-matic pam python-single-r1 linux-info autotools |
30 |
+ |
31 |
+DESCRIPTION="eCryptfs userspace utilities" |
32 |
+HOMEPAGE="https://launchpad.net/ecryptfs" |
33 |
+SRC_URI="https://launchpad.net/ecryptfs/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-2" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
38 |
+IUSE="doc gpg gtk nls openssl pam pkcs11 python suid tpm" |
39 |
+ |
40 |
+RDEPEND=">=sys-apps/keyutils-1.0:= |
41 |
+ >=dev-libs/libgcrypt-1.2.0:0 |
42 |
+ dev-libs/nss |
43 |
+ gpg? ( app-crypt/gpgme ) |
44 |
+ gtk? ( x11-libs/gtk+:2 ) |
45 |
+ openssl? ( >=dev-libs/openssl-0.9.7:= ) |
46 |
+ pam? ( sys-libs/pam ) |
47 |
+ pkcs11? ( |
48 |
+ >=dev-libs/openssl-0.9.7:= |
49 |
+ >=dev-libs/pkcs11-helper-1.04 |
50 |
+ ) |
51 |
+ python? ( ${PYTHON_DEPS} ) |
52 |
+ tpm? ( app-crypt/trousers )" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ virtual/pkgconfig |
55 |
+ sys-devel/gettext |
56 |
+ >=dev-util/intltool-0.41.0 |
57 |
+ python? ( dev-lang/swig )" |
58 |
+ |
59 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
60 |
+ |
61 |
+pkg_setup() { |
62 |
+ use python && python-single-r1_pkg_setup |
63 |
+ |
64 |
+ CONFIG_CHECK="~ECRYPT_FS" |
65 |
+ linux-info_pkg_setup |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ append-cppflags -D_FILE_OFFSET_BITS=64 |
70 |
+ |
71 |
+ econf \ |
72 |
+ --enable-nss \ |
73 |
+ --with-pamdir=$(getpam_mod_dir) \ |
74 |
+ $(use_enable doc docs) \ |
75 |
+ $(use_enable gpg) \ |
76 |
+ $(use_enable gtk gui) \ |
77 |
+ $(use_enable nls) \ |
78 |
+ $(use_enable openssl) \ |
79 |
+ $(use_enable pam) \ |
80 |
+ $(use_enable pkcs11 pkcs11-helper) \ |
81 |
+ $(use_enable python pywrap) \ |
82 |
+ $(use_enable tpm tspi) |
83 |
+} |
84 |
+ |
85 |
+src_install(){ |
86 |
+ emake DESTDIR="${D}" install |
87 |
+ |
88 |
+ if use python; then |
89 |
+ echo "ecryptfs-utils" > "${D}$(python_get_sitedir)/ecryptfs-utils.pth" || die |
90 |
+ fi |
91 |
+ |
92 |
+ use suid && fperms u+s /sbin/mount.ecryptfs_private |
93 |
+ |
94 |
+ find "${ED}" -name '*.la' -exec rm -f '{}' + || die |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ if use suid; then |
99 |
+ ewarn |
100 |
+ ewarn "You have chosen to install ${PN} with the binary setuid root. This" |
101 |
+ ewarn "means that if there are any undetected vulnerabilities in the binary," |
102 |
+ ewarn "then local users may be able to gain root access on your machine." |
103 |
+ ewarn |
104 |
+ fi |
105 |
+} |