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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 6 00:44:15 2011 UTC (3 years, 1 month ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 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.8.1.ebuild,v 1.2 2011/02/18 11:40:12 ultrabug 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 DEPEND="virtual/linux-sources"
22 RDEPEND=""
23 SLOT="0"
24
25 S=${WORKDIR}/${MY_P}
26
27 pkg_setup() {
28 if ! kernel_is -ge 2 6; then
29 die "Unsupported kernel, drbd-${PV} needs kernel 2.6.x ."
30 elif [ ${KV_PATCH} -ge 33 ]; then
31 ewarn "Your kernel (${KV_FULL}) is too new to use this package."
32 ewarn "The DRBD module has been merged into kernel >= 2.6.33."
33 ewarn "Please compile the DRBD module from your current kernel."
34 die "${PN} is obsolete with kernel >= 2.6.33."
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-kernel when you upgrade your kernel!"
50 einfo ""
51 }

  ViewVC Help
Powered by ViewVC 1.1.20