summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Zoffoli <xmerlin@gentoo.org>2005-03-02 18:33:25 +0000
committerChristian Zoffoli <xmerlin@gentoo.org>2005-03-02 18:33:25 +0000
commit8d75201296e7b936e5619584ed5a71c620d2f909 (patch)
treec1c8523ae7e8c9cabd9cc876be54309029b124ac /sys-cluster/drbd/drbd-0.7.10.ebuild
parentRemoving old ebuild (diff)
downloadgentoo-2-8d75201296e7b936e5619584ed5a71c620d2f909.tar.gz
gentoo-2-8d75201296e7b936e5619584ed5a71c620d2f909.tar.bz2
gentoo-2-8d75201296e7b936e5619584ed5a71c620d2f909.zip
fixed compilation with 2.4 kernels (closed bug #83803)
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-cluster/drbd/drbd-0.7.10.ebuild')
-rw-r--r--sys-cluster/drbd/drbd-0.7.10.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys-cluster/drbd/drbd-0.7.10.ebuild b/sys-cluster/drbd/drbd-0.7.10.ebuild
index 2fa491fa09de..be2b3111959d 100644
--- a/sys-cluster/drbd/drbd-0.7.10.ebuild
+++ b/sys-cluster/drbd/drbd-0.7.10.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-0.7.10.ebuild,v 1.2 2005/02/22 02:05:28 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd/drbd-0.7.10.ebuild,v 1.3 2005/03/02 18:33:25 xmerlin Exp $
-inherit eutils versionator linux-mod
+inherit eutils versionator linux-mod check-kernel
LICENSE="GPL-2"
KEYWORDS="x86"
@@ -36,7 +36,12 @@ src_compile() {
einfo "Please don't use XFS with drbd (see drbd mailing list archives)"
einfo ""
- emake KDIR=${KERNEL_DIR} || die "compile problem"
+ if is_2_5_kernel || is_2_6_kernel; then
+ emake KDIR=${KERNEL_DIR} || die "compile problem"
+ else
+ cp -R /usr/src/linux-${KV} ${WORKDIR}
+ emake KDIR=/${WORKDIR}/linux-${KV} || die "compile problem"
+ fi
}
src_install() {