pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/xenkernel33 Import Xen 3.3.0-rc3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8583acb395cc
branches:  trunk
changeset: 545570:8583acb395cc
user:      cegger <cegger%pkgsrc.org@localhost>
date:      Thu Aug 07 20:31:34 2008 +0000

description:
Import Xen 3.3.0-rc3

Xen is a virtual machine monitor for x86 hardware (runs only on i686-class
CPUs), which supports running multiple guests operating systems on a single
machine.  At boot, the xen kernel is loaded (via grub) along with the guest
kernel for the first domain (called domain0).  domain0 has privileges to access
the physical hardware (PCI and ISA devices), administrate other domains and
provide virtual devices (disks and network) to other domains.
This package contains the Xen 3.3 kernel itself.

diffstat:

 sysutils/xenkernel33/DESCR            |  11 +++++++
 sysutils/xenkernel33/Makefile         |  55 +++++++++++++++++++++++++++++++++++
 sysutils/xenkernel33/PLIST            |   3 +
 sysutils/xenkernel33/distinfo         |   6 +++
 sysutils/xenkernel33/patches/patch-aa |  13 ++++++++
 5 files changed, 88 insertions(+), 0 deletions(-)

diffs (108 lines):

diff -r 2db73071f674 -r 8583acb395cc sysutils/xenkernel33/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel33/DESCR        Thu Aug 07 20:31:34 2008 +0000
@@ -0,0 +1,11 @@
+Xen is a virtual machine monitor for x86 hardware (runs only on
+i686-class CPUs), which supports running multiple guests operating
+systems on a single machine.  Guest OSes (also called "domains")
+require a modified kernel which supports Xen hypercalls in replacement
+to access to the physical hardware.  At boot, the xen kernel is loaded
+(via grub) along with the guest kernel for the first domain (called
+domain0).  domain0 has privileges to access the physical hardware (PCI
+and ISA devices), administrate other domains and provide virtual
+devices (disks and network) to other domains.
+
+This package contains the Xen3 kernel itself.
diff -r 2db73071f674 -r 8583acb395cc sysutils/xenkernel33/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel33/Makefile     Thu Aug 07 20:31:34 2008 +0000
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $
+#
+
+VERSION=       3.3-18261
+DISTNAME=      xen-${VERSION}
+PKGNAME=       xenkernel33-${VERSION}
+CATEGORIES=    sysutils
+#MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/
+MASTER_SITES=  http://www.netbsd.org/~cegger/
+EXTRACT_SUFX=  .tar.gz
+
+MAINTAINER=    cegger%NetBSD.org@localhost
+HOMEPAGE=      http://xen.org/
+COMMENT=       Xen3.3.0-rc3 Kernel
+
+ONLY_FOR_PLATFORM=     Linux-2.6*-i386 Linux-2.6*-x86_64      
+ONLY_FOR_PLATFORM+=    NetBSD-4.99.*-x86_64 NetBSD-4.99.*-i386
+ONLY_FOR_PLATFORM+=    NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
+
+CONFLICTS=     xenkernel30-* xentools30-*
+CONFLICTS+=    xenkernel3-*  xentools3-*
+CONFLICTS+=    xenkernel32-* xentools32-*
+
+WRKSRC=                ${WRKDIR}/xen-${VERSION}
+
+NO_CONFIGURE=  yes
+USE_TOOLS+=    gmake
+
+PY_PATCHPLIST=         NO
+
+SUBST_CLASSES+=                py
+SUBST_STAGE.py=                pre-build
+SUBST_FILES.py+=       xen/tools/get-fields.sh
+SUBST_SED.py=          -e "s,python,${PYTHONBIN},g"
+
+#PY_PATCHPLIST doesn't work because we have NO_CONFIGURE
+SUBST_CLASSES+=                py2
+SUBST_STAGE.py2=       pre-build
+SUBST_FILES.py2=       xen/tools/compat-build-source.py
+SUBST_FILES.py2+=      xen/tools/compat-build-header.py
+SUBST_SED.py2=         -e "s,/usr/bin/env python,${PYTHONBIN},g"
+
+do-build:
+       cd ${WRKSRC} && ${GMAKE} debug=n xen
+       ${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen.gz
+       cd ${WRKSRC} && ${GMAKE} clean && ${GMAKE} debug=y xen
+       ${CP} ${WRKSRC}/dist/install/boot/xen.gz ${WRKDIR}/xen-debug.gz
+
+do-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/xen3-kernel
+       ${INSTALL_DATA} ${WRKDIR}/xen.gz ${PREFIX}/xen3-kernel/xen.gz
+       ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz ${PREFIX}/xen3-kernel/xen-debug.gz
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 2db73071f674 -r 8583acb395cc sysutils/xenkernel33/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel33/PLIST        Thu Aug 07 20:31:34 2008 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $
+xen3-kernel/xen.gz
+xen3-kernel/xen-debug.gz
diff -r 2db73071f674 -r 8583acb395cc sysutils/xenkernel33/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel33/distinfo     Thu Aug 07 20:31:34 2008 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $
+
+SHA1 (xen-3.3-18261.tar.gz) = 25c43a6aa69b8c0867268a77b5815f27852b2b13
+RMD160 (xen-3.3-18261.tar.gz) = 184b1df67a645cecfbff4307dfb02079235c4d03
+Size (xen-3.3-18261.tar.gz) = 8040616 bytes
+SHA1 (patch-aa) = 2f29787cff46fbfb76eaa27d430e828cb1b6e0d3
diff -r 2db73071f674 -r 8583acb395cc sysutils/xenkernel33/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel33/patches/patch-aa     Thu Aug 07 20:31:34 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/08/07 20:31:34 cegger Exp $
+
+--- xen/include/asm-x86/page.h.orig    2008-08-01 10:54:54.000000000 +0200
++++ xen/include/asm-x86/page.h
+@@ -301,7 +301,7 @@ void setup_idle_pagetable(void);
+  * WARNING: This will need to be disabled to run OSes that use the spare PTE
+  * bits themselves (e.g., *BSD).
+  */
+-#ifndef NDEBUG
++#if 0
+ #define _PAGE_GNTTAB   _PAGE_AVAIL2
+ #else
+ #define _PAGE_GNTTAB   0



Home | Main Index | Thread Index | Old Index