From e1627e9de0a33a00fe4047fb7f3418ae07731cc9 Mon Sep 17 00:00:00 2001 From: Stefan Schweizer Date: Sat, 16 Sep 2006 13:55:17 +0000 Subject: sys-fs/cryptmount: CONFIG_CHECK and emake install svn path=/sunrise/; revision=1260 --- sys-fs/cryptmount/cryptmount-1.1.ebuild | 36 +++++++++------------------------ 1 file changed, 9 insertions(+), 27 deletions(-) (limited to 'sys-fs/cryptmount/cryptmount-1.1.ebuild') diff --git a/sys-fs/cryptmount/cryptmount-1.1.ebuild b/sys-fs/cryptmount/cryptmount-1.1.ebuild index 8e1f5dd6d..e4f9cef97 100644 --- a/sys-fs/cryptmount/cryptmount-1.1.ebuild +++ b/sys-fs/cryptmount/cryptmount-1.1.ebuild @@ -18,30 +18,12 @@ DEPEND="sys-fs/device-mapper ssl? ( dev-libs/openssl ) nls? ( sys-devel/gettext )" RDEPEND="${DEPEND}" - -dm-crypt_check() { - ebegin "Checking for Device mapper support (BLK_DEV_DM)" - linux_chkconfig_present BLK_DEV_DM - eend $? - - if [[ $? -ne 0 ]] ; then - ewarn "Cryptmount requires Device mapper support!" - ewarn "Please enable Device mapper support in your kernel config, found at:" - ewarn "(for 2.6 kernels)" - ewarn - ewarn " Device Drivers" - ewarn " Multi-Device Support" - ewarn " <*> Device mapper support" - ewarn - ewarn "and recompile your kernel if you want this package to work." - epause 10 - fi -} - -pkg_setup() { - linux-info_pkg_setup - dm-crypt_check -} +CONFIG_CHECK="BLK_DEV_DM" +ERROR_BLK_DEV_DM="Please enable Device mapper support in your kernel config + -> Device Drivers + -> Multi-device support (RAID and LVM) + -> Multiple devices driver support (RAID and LVM) (MD) + Device mapper support" src_compile() { # recommended for setXid, dynamically linked biraries @@ -52,12 +34,12 @@ src_compile() { --with-libgcrypt \ $(use_enable nls) \ $(use_with ssl openssl) \ - || die "Configuration failed" + || die "econf failed" - emake || die "Compilation failed" + emake || die "emake failed" } src_install() { - make install DESTDIR="${D}" || die "Installation failed" + emake install DESTDIR="${D}" || die "emake install failed" dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README RELNOTES ToDo } -- cgit v1.2.3-65-gdbad