1 |
commit: 71a083553c0de1ed63b803598f259a12738758f9 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 09:05:07 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 09:05:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71a08355 |
7 |
|
8 |
sys-fs/cryptsetup: Bump to version 2.3.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-fs/cryptsetup/Manifest | 1 + |
14 |
sys-fs/cryptsetup/cryptsetup-2.3.4.ebuild | 126 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 127 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/cryptsetup/Manifest b/sys-fs/cryptsetup/Manifest |
18 |
index bc14ac43704..212251c1571 100644 |
19 |
--- a/sys-fs/cryptsetup/Manifest |
20 |
+++ b/sys-fs/cryptsetup/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST cryptsetup-2.3.2.tar.xz 11037076 BLAKE2B b0f8a1a274e6b95b12aa7172dbdd41e512aea2c87a98d62b8b4d4cbb898b2d4b82e250368e385c4d4acc8e77046ea4b4f7be730750587569572c4b9490815bc1 SHA512 c5eb41751ca64ff906187f40805705570c261816b014dfcdbf2777f42e53668e32966197092a2235b8f6a7a4e7f9c3f301d82f17c45cfbcff96b9818631d7e5f |
23 |
DIST cryptsetup-2.3.3.tar.xz 11104768 BLAKE2B 54aa6f087c5366e843c1f9b649fd77ec8be8c4e65c783a2a84a036b4ef460c9d070bdd8aff72f87a7a3136f13581e84534940b435f0b49eb1951d1a755cab47a SHA512 d613efb80e003364a21832da3fefe3891d36a891119cc0efa970aad40ba135dfcd42b32a0c19c31ad879d4eddf27864beccbea1d4b31a47a4e075bc0f756365c |
24 |
+DIST cryptsetup-2.3.4.tar.xz 11114004 BLAKE2B 680e6eeb594737aeb8330b0ac8638e94941bdcc56fc3441b6f1bc4f3d209d768096e23a7f840dc1012f9e63fae0fdbc0e72d735d89e92a621cec88ea59560f19 SHA512 db0bfd795343e575acb7a80ea2b9d32acf08ac970037e5b158a1e4381976552dc292107ce79e55913f49fcf643d4ea7104ed73de7c1e8d424b83d471d20ab60d |
25 |
|
26 |
diff --git a/sys-fs/cryptsetup/cryptsetup-2.3.4.ebuild b/sys-fs/cryptsetup/cryptsetup-2.3.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..78f20a6fafb |
29 |
--- /dev/null |
30 |
+++ b/sys-fs/cryptsetup/cryptsetup-2.3.4.ebuild |
31 |
@@ -0,0 +1,126 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools linux-info libtool |
38 |
+ |
39 |
+DESCRIPTION="Tool to setup encrypted devices with dm-crypt" |
40 |
+HOMEPAGE="https://gitlab.com/cryptsetup/cryptsetup/blob/master/README.md" |
41 |
+SRC_URI="https://www.kernel.org/pub/linux/utils/${PN}/v$(ver_cut 1-2)/${P/_/-}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-2+" |
44 |
+SLOT="0/12" # libcryptsetup.so version |
45 |
+[[ ${PV} != *_rc* ]] && \ |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
47 |
+CRYPTO_BACKENDS="gcrypt kernel nettle +openssl" |
48 |
+# we don't support nss since it doesn't allow cryptsetup to be built statically |
49 |
+# and it's missing ripemd160 support so it can't provide full backward compatibility |
50 |
+IUSE="${CRYPTO_BACKENDS} +argon2 libressl nls pwquality reencrypt static static-libs +udev urandom" |
51 |
+REQUIRED_USE="^^ ( ${CRYPTO_BACKENDS//+/} ) |
52 |
+ libressl? ( openssl ) |
53 |
+ static? ( !gcrypt )" #496612 |
54 |
+ |
55 |
+LIB_DEPEND=" |
56 |
+ dev-libs/json-c:=[static-libs(+)] |
57 |
+ dev-libs/libgpg-error[static-libs(+)] |
58 |
+ dev-libs/popt[static-libs(+)] |
59 |
+ >=sys-apps/util-linux-2.31-r1[static-libs(+)] |
60 |
+ argon2? ( app-crypt/argon2:=[static-libs(+)] ) |
61 |
+ gcrypt? ( dev-libs/libgcrypt:0=[static-libs(+)] ) |
62 |
+ nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] ) |
63 |
+ openssl? ( |
64 |
+ !libressl? ( dev-libs/openssl:0=[static-libs(+)] ) |
65 |
+ libressl? ( dev-libs/libressl:0=[static-libs(+)] ) |
66 |
+ ) |
67 |
+ pwquality? ( dev-libs/libpwquality[static-libs(+)] ) |
68 |
+ sys-fs/lvm2[static-libs(+)] |
69 |
+ udev? ( virtual/libudev[static-libs(-)] )" |
70 |
+# We have to always depend on ${LIB_DEPEND} rather than put behind |
71 |
+# !static? () because we provide a shared library which links against |
72 |
+# these other packages. #414665 |
73 |
+RDEPEND="static-libs? ( ${LIB_DEPEND} ) |
74 |
+ ${LIB_DEPEND//\[static-libs\([+-]\)\]}" |
75 |
+DEPEND="${RDEPEND} |
76 |
+ static? ( ${LIB_DEPEND} )" |
77 |
+BDEPEND=" |
78 |
+ virtual/pkgconfig |
79 |
+" |
80 |
+ |
81 |
+S="${WORKDIR}/${P/_/-}" |
82 |
+ |
83 |
+PATCHES=( "${FILESDIR}"/${PN}-2.0.4-fix-static-pwquality-build.patch ) |
84 |
+ |
85 |
+pkg_setup() { |
86 |
+ local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC ~CRYPTO_SHA256" |
87 |
+ local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n" |
88 |
+ local WARNING_CRYPTO_SHA256="CONFIG_CRYPTO_SHA256:\tis not set (required for cryptsetup)\n" |
89 |
+ local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n" |
90 |
+ local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n" |
91 |
+ check_extra_config |
92 |
+} |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ sed -i '/^LOOPDEV=/s:$: || exit 0:' tests/{compat,mode}-test || die |
96 |
+ default |
97 |
+ eautoreconf |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ if use kernel ; then |
102 |
+ ewarn "Note that kernel backend is very slow for this type of operation" |
103 |
+ ewarn "and is provided mainly for embedded systems wanting to avoid" |
104 |
+ ewarn "userspace crypto libraries." |
105 |
+ fi |
106 |
+ |
107 |
+ local myeconfargs=( |
108 |
+ --disable-internal-argon2 |
109 |
+ --enable-shared |
110 |
+ --sbindir=/sbin |
111 |
+ # for later use |
112 |
+ --with-default-luks-format=LUKS2 |
113 |
+ --with-tmpfilesdir="${EPREFIX}/usr/lib/tmpfiles.d" |
114 |
+ --with-crypto_backend=$(for x in ${CRYPTO_BACKENDS//+/} ; do usev ${x} ; done) |
115 |
+ $(use_enable argon2 libargon2) |
116 |
+ $(use_enable nls) |
117 |
+ $(use_enable pwquality) |
118 |
+ $(use_enable reencrypt cryptsetup-reencrypt) |
119 |
+ $(use_enable static static-cryptsetup) |
120 |
+ $(use_enable static-libs static) |
121 |
+ $(use_enable udev) |
122 |
+ $(use_enable !urandom dev-random) |
123 |
+ ) |
124 |
+ econf "${myeconfargs[@]}" |
125 |
+} |
126 |
+ |
127 |
+src_test() { |
128 |
+ if [[ ! -e /dev/mapper/control ]] ; then |
129 |
+ ewarn "No /dev/mapper/control found -- skipping tests" |
130 |
+ return 0 |
131 |
+ fi |
132 |
+ |
133 |
+ local p |
134 |
+ for p in /dev/mapper /dev/loop* ; do |
135 |
+ addwrite ${p} |
136 |
+ done |
137 |
+ |
138 |
+ default |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ default |
143 |
+ |
144 |
+ if use static ; then |
145 |
+ mv "${ED}"/sbin/cryptsetup{.static,} || die |
146 |
+ mv "${ED}"/sbin/veritysetup{.static,} || die |
147 |
+ if use reencrypt ; then |
148 |
+ mv "${ED}"/sbin/cryptsetup-reencrypt{.static,} || die |
149 |
+ fi |
150 |
+ fi |
151 |
+ find "${ED}" -type f -name "*.la" -delete || die |
152 |
+ |
153 |
+ dodoc docs/v*ReleaseNotes |
154 |
+ |
155 |
+ newconfd "${FILESDIR}"/1.6.7-dmcrypt.confd dmcrypt |
156 |
+ newinitd "${FILESDIR}"/1.6.7-dmcrypt.rc dmcrypt |
157 |
+} |