Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2004 Gentoo Technologies, Inc. |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /home/cvsroot/gentoo-x86/sys-libs/device-mapper/device-mapper-1.00.07.ebuild,v 1.5 2004/01/22 14:54:21 pyrania Exp $ |
4 |
|
5 |
DESCRIPTION="Device mapper ioctl library for use with LVM2 utilities." |
6 |
HOMEPAGE="http://www.sistina.com/products_lvm.htm" |
7 |
SRC_URI="ftp://ftp.sistina.com/pub/LVM2/${PN}/${PN}.${PV}.tgz" |
8 |
|
9 |
LICENSE="GPL-2" |
10 |
SLOT="0" |
11 |
KEYWORDS="x86 amd64 sparc" |
12 |
|
13 |
DEPEND="virtual/linux-sources" |
14 |
|
15 |
S="${WORKDIR}/${PN}.${PV}" |
16 |
|
17 |
pkg_setup() { |
18 |
[ ! -e "/usr/src/linux/include/linux/dm-ioctl.h" ] && { |
19 |
eerror |
20 |
eerror "Your currently linked kernel (/usr/src/linux) hasn't" |
21 |
eerror "been patched for device mapper support." |
22 |
eerror |
23 |
die "kernel not patched for device mapper support" |
24 |
} |
25 |
|
26 |
return 0 |
27 |
} |
28 |
|
29 |
src_compile() { |
30 |
epatch ${FILESDIR}/dmsetup-dmcrypt.patch |
31 |
econf |
32 |
|
33 |
# Parallel build doesn't work. |
34 |
emake -j1 || die "compile problem" |
35 |
} |
36 |
|
37 |
src_install() { |
38 |
einstall sbindir="${D}/sbin" libdir="${D}/lib" |
39 |
dodoc COPYING* INSTALL INTRO README VERSION |
40 |
} |