# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: cryptmount-3.1_beta1.ebuild, v0.5.1 j0inty Exp $ inherit eutils linux-info DESCRIPTION="A utility for management and user-mode mounting of encrypted filesystems" HOMEPAGE="http://cryptmount.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P/_beta/beta}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="nls luks ssl" RESTRICT="mirror" RDEPEND=">=sys-fs/device-mapper-1.01 >=dev-libs/libgcrypt-1.2 nls? ( virtual/libintl )" DEPEND="${RDEPEND} nls? ( sys-devel/gettext )" 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_unpack() { unpack ${A} && mv ./${P/_beta/beta}/* . || die "unpack source failed" } src_compile() { econf \ --with-gnu-ld \ --with-libgcrypt \ --with-keymodules \ $(use_enable ssl openssl-compat) \ $(use_enable luks) \ $(use_enable nls) \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog NEWS README RELNOTES ToDo }