diff options
author | Benjamin Smee <strerror@gentoo.org> | 2005-05-24 22:48:32 +0000 |
---|---|---|
committer | Benjamin Smee <strerror@gentoo.org> | 2005-05-24 22:48:32 +0000 |
commit | 6bbc7187129dc22274b91948eafd70b3942f8744 (patch) | |
tree | 8138a635b0676d354f01c98404c1eac268fa9f88 /sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild | |
parent | Version bumped. MTA now configured with USE-Flag (diff) | |
download | gentoo-2-6bbc7187129dc22274b91948eafd70b3942f8744.tar.gz gentoo-2-6bbc7187129dc22274b91948eafd70b3942f8744.tar.bz2 gentoo-2-6bbc7187129dc22274b91948eafd70b3942f8744.zip |
Fixed the dm-crypt check as per bug 89142
(Portage version: 2.0.51.19)
Diffstat (limited to 'sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild')
-rw-r--r-- | sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild b/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild index a662b29e1aeb..1f2d3428ae65 100644 --- a/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild +++ b/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild,v 1.7 2005/04/12 01:04:26 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-0.1-r1.ebuild,v 1.8 2005/05/24 22:48:32 strerror Exp $ -inherit kernel-mod +inherit linux-info DESCRIPTION="Tool to setup encrypted devices with dm-crypt" HOMEPAGE="http://www.saout.de/misc/dm-crypt/" @@ -18,14 +18,29 @@ DEPEND=">=sys-fs/device-mapper-1.00.07-r1 S=${WORKDIR}/${PN}-${PV} -pkg_setup() { - if ! kernel-mod_configoption_present DM_CRYPT ; then - ewarn "dm-crypt is not enabled in /usr/src/linux/.config" - ewarn "please see $HOMEPAGE" - ewarn "for details on how to enable dm-crypt for your kernel" +dm-crypt_check() { + ebegin "Checking for dm-crypt support" + linux_chkconfig_present DM_CRYPT + eend $? + + if [[ $? -ne 0 ]] ; then + eerror "cryptsetup requires dm-crypt support!" + eerror "Please enable dm-crypt support in your kernel config, found at:" + eerror "(for 2.6 kernels)" + eerror + eerror " Device Drivers" + eerror " Multi-Device Support" + eerror " [*] Crypt Target Support" + eerror "and recompile your kernel..." + die "dm-crypt support not detected!" fi } +pkg_setup() { + linux-info_pkg_setup + dm-crypt_check; +} + src_compile() { econf --bindir=/bin --disable-nls || die |