| 1 |
# Copyright 1999-2005 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/cryptsetup/cryptsetup-0.1.ebuild,v 1.11 2005/09/02 14:05:53 swegener Exp $
|
| 4 |
|
| 5 |
inherit kernel-mod
|
| 6 |
|
| 7 |
DESCRIPTION="Tool to setup encrypted devices with dm-crypt"
|
| 8 |
HOMEPAGE="http://www.saout.de/misc/dm-crypt/"
|
| 9 |
SRC_URI="http://www.saout.de/misc/dm-crypt/${P}.tar.bz2"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 arm hppa ia64 ppc s390 x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
DEPEND=">=sys-fs/device-mapper-1.00.07-r1
|
| 17 |
>=dev-libs/libgcrypt-1.1.42"
|
| 18 |
|
| 19 |
pkg_setup() {
|
| 20 |
if ! kernel-mod_configoption_present DM_CRYPT ; then
|
| 21 |
ewarn "dm-crypt is not enabled in /usr/src/linux/.config"
|
| 22 |
ewarn "please see ${HOMEPAGE}"
|
| 23 |
ewarn "for details on how to enable dm-crypt for your kernel"
|
| 24 |
fi
|
| 25 |
}
|
| 26 |
|
| 27 |
src_compile() {
|
| 28 |
econf --bindir=/bin --disable-nls || die
|
| 29 |
|
| 30 |
sed -i \
|
| 31 |
-e 's|-lgcrypt|/usr/lib/libgcrypt.a|' \
|
| 32 |
-e 's|-lgpg-error|/usr/lib/libgpg-error.a|' \
|
| 33 |
Makefile src/Makefile
|
| 34 |
sed -i -e 's|-lpopt|/usr/lib/libpopt.a|' src/Makefile
|
| 35 |
|
| 36 |
emake || die
|
| 37 |
}
|
| 38 |
|
| 39 |
src_install() {
|
| 40 |
make DESTDIR="${D}" install || die "install failed"
|
| 41 |
}
|