# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="Tool to setup encrypted devices with dm-crypt" HOMEPAGE="http://www.saout.de/misc/dm-crypt/" SRC_URI="http://www.saout.de/misc/dm-crypt/${PN}-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND=">=sys-libs/device-mapper-1.00.07-r1 >=dev-libs/libgcrypt-1.1.42" IUSE="static" S=${WORKDIR}/${PN}-${PV} pkg_setup() { eval "`grep CONFIG_DM_CRYPT /usr/src/linux/.config`" if [ -z "$CONFIG_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" fi } src_compile() { cd ${S} #install to /sbin/ and /lib manually so sandbox not broken sed -i -e 's/install: install-am/install: /' src/Makefile.in econf || die cd lib emake || die cd ../src make ${MAKEOPTS} CFLAGS="-Os" LDFLAGS="-all-static" || die } src_install() { into / dosbin src/cryptsetup into /usr dodir /usr/lib/cryptsetup dolib lib/.libs/libcryptsetup.so* dolib lib/.libs/libcryptsetup.a dolib lib/.libs/libcryptsetup.la einstall }