|
Lines 3-8
Link Here
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.4.2.ebuild,v 1.1 2012/05/11 08:33:01 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-1.4.2.ebuild,v 1.1 2012/05/11 08:33:01 vapier Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI="4" |
5 |
EAPI="4" |
|
|
6 |
PYTHON_DEPEND="python? 2:2.5" |
| 6 |
|
7 |
|
| 7 |
inherit linux-info libtool |
8 |
inherit linux-info libtool |
| 8 |
|
9 |
|
|
Lines 14-34
Link Here
|
| 14 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
| 15 |
SLOT="0" |
16 |
SLOT="0" |
| 16 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
| 17 |
IUSE="nls selinux static static-libs" |
18 |
IUSE="nls python selinux static static-libs urandom" |
| 18 |
|
19 |
|
| 19 |
S=${WORKDIR}/${MY_P} |
20 |
S=${WORKDIR}/${MY_P} |
| 20 |
|
21 |
|
| 21 |
LIB_DEPEND="dev-libs/libgpg-error[static-libs(+)] |
22 |
LIB_DEPEND="dev-libs/libgpg-error[static-libs(+)] |
| 22 |
>=dev-libs/popt-1.7[static-libs(+)] |
23 |
dev-libs/popt[static-libs(+)] |
| 23 |
>=sys-apps/util-linux-2.17.2[static-libs(+)] |
24 |
sys-apps/util-linux[static-libs(+)] |
| 24 |
>=dev-libs/libgcrypt-1.1.42[static-libs(+)] |
25 |
dev-libs/libgcrypt[static-libs(+)] |
| 25 |
>=sys-fs/lvm2-2.02.64[static-libs(+)] |
26 |
>=sys-fs/lvm2-2.02.64[static-libs(+)] |
| 26 |
>=sys-fs/udev-124[static-libs(+)] |
27 |
>=sys-fs/udev-124[static-libs(+)] |
| 27 |
>=sys-libs/e2fsprogs-libs-1.41[static-libs(+)]" |
28 |
sys-libs/e2fsprogs-libs[static-libs(+)]" |
| 28 |
RDEPEND="static-libs? ( ${LIB_DEPEND} ) |
29 |
RDEPEND="static-libs? ( ${LIB_DEPEND} ) |
| 29 |
!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
30 |
!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) |
| 30 |
!<sys-apps/baselayout-2 |
31 |
!<sys-apps/baselayout-2 |
| 31 |
!sys-fs/cryptsetup-luks |
|
|
| 32 |
selinux? ( sys-libs/libselinux )" |
32 |
selinux? ( sys-libs/libselinux )" |
| 33 |
DEPEND="${RDEPEND} |
33 |
DEPEND="${RDEPEND} |
| 34 |
static? ( ${LIB_DEPEND} )" |
34 |
static? ( ${LIB_DEPEND} )" |
|
Lines 39-44
Link Here
|
| 39 |
local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n" |
39 |
local WARNING_CRYPTO_CBC="CONFIG_CRYPTO_CBC:\tis not set (required for kernel 2.6.19)\n" |
| 40 |
local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n" |
40 |
local WARNING_CRYPTO="CONFIG_CRYPTO:\tis not set (required for cryptsetup)\n" |
| 41 |
check_extra_config |
41 |
check_extra_config |
|
|
42 |
if use python; then |
| 43 |
python_set_active_version 2 |
| 44 |
python_pkg_setup |
| 45 |
fi |
| 42 |
} |
46 |
} |
| 43 |
|
47 |
|
| 44 |
src_prepare() { |
48 |
src_prepare() { |
|
Lines 53-59
Link Here
|
| 53 |
$(use_enable static static-cryptsetup) \ |
57 |
$(use_enable static static-cryptsetup) \ |
| 54 |
$(use_enable static-libs static) \ |
58 |
$(use_enable static-libs static) \ |
| 55 |
$(use_enable nls) \ |
59 |
$(use_enable nls) \ |
| 56 |
$(use_enable selinux) |
60 |
$(use_enable python) \ |
|
|
61 |
$(use_enable selinux) \ |
| 62 |
$(use_enable !urandom dev-random) |
| 57 |
} |
63 |
} |
| 58 |
|
64 |
|
| 59 |
src_test() { |
65 |
src_test() { |