blob: 1d09d32678b5128d6a94588ae1d6377678f96a82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/xen-sources/xen-sources-2.6.16-r1.ebuild,v 1.1 2006/04/10 12:02:56 chrb Exp $
ETYPE="sources"
inherit kernel-2 eutils
detect_arch
detect_version
[ "${PR}" == "r0" ] && KV=${PV/_/-}-xen || KV=${PV/_/-}-xen-${PR}
EXTRAVERSION=".${KV_EXTRA}-xen"
DESCRIPTION="Full sources for a dom0/domU Linux kernel to run under Xen"
HOMEPAGE="http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html"
#REV="8738"
#MY_P="xen-3.0-testing-${REV}"
XEN_VERSION="3.0.2"
MY_P="xen-${XEN_VERSION}"
#SRC_URI="${KERNEL_URI} mirror://gentoo/${MY_P}.tar.bz2"
SRC_URI="${KERNEL_URI} http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-${XEN_VERSION}-src.tgz"
KEYWORDS="~x86 ~amd64"
DEPEND="~app-emulation/xen-${XEN_VERSION}"
S="${WORKDIR}"
RESTRICT="nostrip"
src_unpack() {
unpack ${A}
cd ${MY_P}
sed -e 's:relative_lndir \([^(].*\):cp -dpPR \1/* .:' \
-i linux-2.6-xen-sparse/mkbuildtree || die
make LINUX_SRC_PATH=${DISTDIR} -f buildconfigs/mk.linux-2.6-xen \
linux-${PV}-xen/include/linux/autoconf.h
t=linux-${PV}-xen
mv ${t} ${WORKDIR}/linux-${KV}
rm -rf ${WORKDIR}/linux-${PV}
rm -rf ${WORKDIR}/${MY_P}
}
|