Gentoo Archives: gentoo-commits

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