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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jun 6 00:44:15 2011 UTC (3 years, 6 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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.0.16.ebuild,v 1.3 2009/08/17 10:20:27 xmerlin Exp $
4
5 inherit eutils versionator linux-mod
6
7 LICENSE="GPL-2"
8 KEYWORDS="amd64 x86"
9
10 MY_PN="${PN/-kernel/}"
11 MY_P="${MY_PN}-${PV}"
12 MY_MAJ_PV="$(get_version_component_range 1-2 ${PV})"
13
14 HOMEPAGE="http://www.drbd.org"
15 DESCRIPTION="mirror/replicate block-devices across a network-connection"
16 SRC_URI="http://oss.linbit.com/drbd/${MY_MAJ_PV}/${MY_PN}-${PV}.tar.gz"
17
18 IUSE=""
19
20 DEPEND="virtual/linux-sources"
21 RDEPEND=""
22 SLOT="0"
23
24 S="${WORKDIR}/${MY_P}"
25
26 pkg_setup() {
27 if ! kernel_is -ge 2 6; then
28 die "Unsupported kernel, drbd-8.0.x needs kernel 2.6.x ."
29 fi
30
31 MODULE_NAMES="drbd(block:${S}/drbd)"
32 BUILD_TARGETS="default"
33 CONFIG_CHECK="CONNECTOR"
34 CONNECTOR_ERROR="You must enable \"CONNECTOR - unified userspace <-> kernelspace linker\" in your kernel configuration, because drbd needs it."
35 linux-mod_pkg_setup
36 BUILD_PARAMS="-j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT}"
37 }
38
39 src_unpack() {
40 unpack ${A}
41 cd "${S}"
42
43 epatch "${FILESDIR}"/${PN}-8.0.0-scripts.adjust_drbd_config_h.sh.patch || die
44 epatch "${FILESDIR}"/${MY_P}-kernel-2.6.30-compile-fix.patch || die
45 }
46
47 pkg_postinst() {
48 linux-mod_pkg_postinst
49
50 einfo ""
51 einfo "Please remember to re-emerge drbd when you upgrade your kernel!"
52 einfo ""
53 }

  ViewVC Help
Powered by ViewVC 1.1.20