| 20 |
20 |
CRYPTO_BACKENDS="gcrypt kernel nettle +openssl"
|
| 21 |
21 |
# we don't support nss since it doesn't allow cryptsetup to be built statically
|
| 22 |
22 |
# and it's missing ripemd160 support so it can't provide full backward compatibility
|
| 23 |
|
IUSE="${CRYPTO_BACKENDS} +argon2 fips nls pwquality ssh static static-libs test +udev urandom"
|
|
23 |
IUSE="${CRYPTO_BACKENDS} +argon2 fips nls pwquality passwdqc ssh static static-libs test +udev urandom"
|
| 24 |
24 |
RESTRICT="!test? ( test )"
|
| 25 |
25 |
# bug #496612, bug #832711, bug #843863
|
| 26 |
26 |
REQUIRED_USE="
|
|
27 |
?? ( pwquality passwdqc )
|
| 27 |
28 |
^^ ( ${CRYPTO_BACKENDS//+/} )
|
| 28 |
29 |
static? ( !ssh !udev !fips )
|
|
30 |
static-libs? ( !passwdqc )
|
| 29 |
31 |
fips? ( !kernel !nettle )
|
| 30 |
32 |
"
|
| 31 |
33 |
|
| ... | ... | |
| 41 |
43 |
nettle? ( >=dev-libs/nettle-2.4[static-libs(+)] )
|
| 42 |
44 |
openssl? ( dev-libs/openssl:0=[static-libs(+)] )
|
| 43 |
45 |
pwquality? ( dev-libs/libpwquality[static-libs(+)] )
|
|
46 |
passwdqc? ( sys-auth/passwdqc )
|
| 44 |
47 |
ssh? ( net-libs/libssh[static-libs(+)] )
|
| 45 |
48 |
sys-fs/lvm2[static-libs(+)]
|
| 46 |
49 |
"
|
| ... | ... | |
| 62 |
65 |
test? ( app-editors/vim-core )
|
| 63 |
66 |
"
|
| 64 |
67 |
|
|
68 |
PATCHES=( "${FILESDIR}"/${P}-compat-test-passwdqc.patch )
|
|
69 |
|
| 65 |
70 |
pkg_setup() {
|
| 66 |
71 |
local CONFIG_CHECK="~DM_CRYPT ~CRYPTO ~CRYPTO_CBC ~CRYPTO_SHA256"
|
| 67 |
72 |
local WARNING_DM_CRYPT="CONFIG_DM_CRYPT:\tis not set (required for cryptsetup)\n"
|
| ... | ... | |
| 90 |
95 |
$(use_enable argon2 libargon2)
|
| 91 |
96 |
$(use_enable nls)
|
| 92 |
97 |
$(use_enable pwquality)
|
|
98 |
$(use_enable passwdqc)
|
| 93 |
99 |
$(use_enable !static external-tokens)
|
| 94 |
100 |
$(use_enable static static-cryptsetup)
|
| 95 |
101 |
$(use_enable static-libs static)
|