/[gentoo-x86]/sys-cluster/drbd-kernel/drbd-kernel-8.3.6.ebuild
Gentoo

Contents of /sys-cluster/drbd-kernel/drbd-kernel-8.3.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jun 6 00:44:15 2011 UTC (3 years, 2 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Linux-3.0 changes.

(Portage version: 2.2.0_alpha37/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/drbd-kernel/drbd-kernel-8.3.6.ebuild,v 1.4 2010/08/13 07:20:14 fauli Exp $
4
5 EAPI="2"
6
7 inherit eutils versionator linux-mod
8
9 LICENSE="GPL-2"
10 KEYWORDS="~amd64 x86"
11
12 MY_PN="${PN/-kernel/}"
13 MY_P="${MY_PN}-${PV}"
14 MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
15
16 HOMEPAGE="http://www.drbd.org"
17 DESCRIPTION="mirror/replicate block-devices across a network-connection"
18 SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${PV}.tar.gz"
19
20 IUSE=""
21
22 DEPEND="virtual/linux-sources"
23 RDEPEND=""
24 SLOT="0"
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-linux-2.6.32.patch
30 }
31
32 pkg_setup() {
33 if ! kernel_is -ge 2 6; then
34 die "Unsupported kernel, drbd-${PV} needs kernel 2.6.x ."
35 fi
36
37 MODULE_NAMES="drbd(block:${S}/drbd)"
38 BUILD_TARGETS="default"
39 CONFIG_CHECK="CONNECTOR"
40 CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it."
41 linux-mod_pkg_setup
42 BUILD_PARAMS="-j1 KDIR=${KV_DIR} O=${KV_OUT_DIR}"
43 }
44
45 pkg_postinst() {
46 linux-mod_pkg_postinst
47
48 einfo ""
49 einfo "Please remember to re-emerge drbd when you upgrade your kernel!"
50 einfo ""
51 }

  ViewVC Help
Powered by ViewVC 1.1.20