summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2011-12-12 05:24:44 +0000
committerPeter Volkov <pva@gentoo.org>2011-12-12 05:24:44 +0000
commit86634e9236db3e5de0061c76439887825823efbd (patch)
treeff09854e1d3eaa760315ca2761b7c2a5e6b4f13f /sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild
parentwhitespace (diff)
downloadgentoo-2-86634e9236db3e5de0061c76439887825823efbd.tar.gz
gentoo-2-86634e9236db3e5de0061c76439887825823efbd.tar.bz2
gentoo-2-86634e9236db3e5de0061c76439887825823efbd.zip
Version bump. Drop old. Cleanup - made sources again installable. Fixed build issue in 2.6.32 with new toolchain, bug #388103 wrt Aleksandr Zagzin and Peter Gantner.
(Portage version: 2.1.10.39/cvs/Linux x86_64)
Diffstat (limited to 'sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild')
-rw-r--r--sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild b/sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild
new file mode 100644
index 000000000000..63b50685857a
--- /dev/null
+++ b/sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/openvz-sources/openvz-sources-2.6.32.39.11.ebuild,v 1.1 2011/12/12 05:24:44 pva Exp $
+
+inherit versionator
+
+OVZ_KV="0$(get_version_component_range 4).$(get_version_component_range 5)"
+
+
+CKV=$(get_version_component_range 1-3)
+OKV=${OKV:-${CKV}}
+EXTRAVERSION=-${PN/-*}-${OVZ_KV}
+K_NOSETEXTRAVERSION="yes"
+ETYPE="sources"
+KV_FULL=${CKV}${EXTRAVERSION}
+if [[ ${PR} != "r0" ]]; then
+ KV_FULL+=-${PR}
+ EXTRAVERSION+=-${PR}
+fi
+S=${WORKDIR}/linux-${KV_FULL}
+
+# ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} should succeed.
+KV_MAJOR=$(get_version_component_range 1 ${OKV})
+KV_MINOR=$(get_version_component_range 2 ${OKV})
+KV_PATCH=$(get_version_component_range 3 ${OKV})
+
+KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
+
+inherit kernel-2
+#detect_version
+
+KEYWORDS="~amd64 ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DESCRIPTION="Kernel sources with OpenVZ patchset"
+HOMEPAGE="http://www.openvz.org"
+SRC_URI="${KERNEL_URI} ${ARCH_URI}
+ http://download.openvz.org/kernel/branches/rhel6-${CKV}/042stab${OVZ_KV}/patches/patch-042stab${OVZ_KV}-combined.gz"
+
+UNIPATCH_STRICTORDER=1
+UNIPATCH_LIST="${DISTDIR}/patch-042stab${OVZ_KV}-combined.gz
+${FILESDIR}/openvz-sources-2.6.32.39-binutils.patch"
+
+K_EXTRAEINFO="This openvz kernel uses RHEL6 patchset instead of vanilla kernel.
+This patchset considered to be more stable and security supported by upstream,
+but for us RHEL6 patchset is very fragile and fails to build in many
+configurations so if you have problems use config files from openvz team
+http://wiki.openvz.org/Download/kernel/rhel6/042stab${OVZ_KV}"