summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorcl <cl>2004-05-22 16:31:04 +0000
committercl <cl>2004-05-22 16:31:04 +0000
commit72d5c27bd0788aed6bc37ee3118d5adda70bdcf1 (patch)
tree316579f8e19ee0bf8643d441c02ef74a01a2e32f /sysutils
parent2f5fd74482f996eeebf5acef2b0e4bbbf6cc75b2 (diff)
downloadpkgsrc-72d5c27bd0788aed6bc37ee3118d5adda70bdcf1.tar.gz
add xen12 package:
Xen is is a virtual machine monitor for x86 that supports execution of multiple guest operating systems with unprecedented levels of performance and resource isolation. Xen is Open Source software. See http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ for more details on Xen. See http://www.netbsd.org/Ports/xen/ for more details on NetBSD/xen.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xen12/DESCR6
-rw-r--r--sysutils/xen12/MESSAGE19
-rw-r--r--sysutils/xen12/Makefile31
-rw-r--r--sysutils/xen12/PLIST3
-rw-r--r--sysutils/xen12/distinfo7
-rw-r--r--sysutils/xen12/files/gcc333-stdarg.h133
-rw-r--r--sysutils/xen12/patches/patch-aa14
-rw-r--r--sysutils/xen12/patches/patch-ab12
-rw-r--r--sysutils/xen12/patches/patch-ac14
9 files changed, 239 insertions, 0 deletions
diff --git a/sysutils/xen12/DESCR b/sysutils/xen12/DESCR
new file mode 100644
index 00000000000..e8fb20834f0
--- /dev/null
+++ b/sysutils/xen12/DESCR
@@ -0,0 +1,6 @@
+Xen is is a virtual machine monitor for x86 that supports execution of
+multiple guest operating systems with unprecedented levels of performance
+and resource isolation. Xen is Open Source software.
+
+See http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ for more details on Xen.
+See http://www.netbsd.org/Ports/xen/ for more details on NetBSD/xen.
diff --git a/sysutils/xen12/MESSAGE b/sysutils/xen12/MESSAGE
new file mode 100644
index 00000000000..d222e3985ac
--- /dev/null
+++ b/sysutils/xen12/MESSAGE
@@ -0,0 +1,19 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2004/05/22 16:31:04 cl Exp $
+
+Xen is a standalone program, it does not run within an operating system.
+It has been designed to boot from grub. To install Xen, add an entry
+like this to the grub config file:
+
+- NetBSD/xen as domain0:
+ title Xen / NetBSD
+ kernel ${PREFIX}/mdec/xen-1.2.gz dom0_mem=65536
+ module /path/to/xen12load
+ module /path/to/xen12netbsd
+
+- XenoLinux as domain0:
+ title Xen / Linux
+ kernel ${PREFIX}/mdec/xen-1.2.gz dom0_mem=65536
+ module /path/to/xenolinux-version.gz root=/dev/root-device
+
+===========================================================================
diff --git a/sysutils/xen12/Makefile b/sysutils/xen12/Makefile
new file mode 100644
index 00000000000..900583b93c8
--- /dev/null
+++ b/sysutils/xen12/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2004/05/22 16:31:04 cl Exp $
+#
+
+DISTNAME= xeno-1.2-src-040418
+PKGNAME= xen12-040418
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/arch/xen/misc/
+EXTRACT_SUFX= .tgz
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= cl@NetBSD.org
+HOMEPAGE= http://www.netbsd.org/Ports/xen/
+COMMENT= Xen Virtual Machine Monitor
+
+ONLY_FOR_PLATFORM= *-*-i386
+
+WRKSRC= ${WRKDIR}/xeno-1.2/xen
+ALL_TARGET= default
+
+USE_PKGINSTALL= yes
+
+USE_GNU_TOOLS+= make
+
+post-extract:
+ @${CP} ${FILESDIR}/gcc333-stdarg.h ${WRKSRC}/include/stdarg.h
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/mdec
+ ${INSTALL_DATA} ${WRKSRC}/xen.gz ${PREFIX}/mdec/xen-1.2.gz
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/xen12/PLIST b/sysutils/xen12/PLIST
new file mode 100644
index 00000000000..e0f24871eac
--- /dev/null
+++ b/sysutils/xen12/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2004/05/22 16:31:04 cl Exp $
+mdec/xen-1.2.gz
+@dirrm mdec
diff --git a/sysutils/xen12/distinfo b/sysutils/xen12/distinfo
new file mode 100644
index 00000000000..f8eafb7318f
--- /dev/null
+++ b/sysutils/xen12/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2004/05/22 16:31:04 cl Exp $
+
+SHA1 (xeno-1.2-src-040418.tgz) = d19f627dc40416f369f6728fcd86e4364e1713ee
+Size (xeno-1.2-src-040418.tgz) = 2960238 bytes
+SHA1 (patch-aa) = f7a8aa7c0081660d3408bb8d680d2ed4335b49f9
+SHA1 (patch-ab) = d82fc9a443dda29e88fe2aeb028d0783ca5ba5b3
+SHA1 (patch-ac) = 559bbdc222ca3698492eaf452f0bf0a4389fa860
diff --git a/sysutils/xen12/files/gcc333-stdarg.h b/sysutils/xen12/files/gcc333-stdarg.h
new file mode 100644
index 00000000000..e451c31c53f
--- /dev/null
+++ b/sysutils/xen12/files/gcc333-stdarg.h
@@ -0,0 +1,133 @@
+/* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+
+This file is part of GNU CC.
+
+GNU CC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+GNU CC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU CC; see the file COPYING. If not, write to
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+/* As a special exception, if you include this header file into source
+ files compiled by GCC, this header file does not by itself cause
+ the resulting executable to be covered by the GNU General Public
+ License. This exception does not however invalidate any other
+ reasons why the executable file might be covered by the GNU General
+ Public License. */
+
+/*
+ * ISO C Standard: 7.15 Variable arguments <stdarg.h>
+ */
+
+#ifndef _STDARG_H
+#ifndef _ANSI_STDARG_H_
+#ifndef __need___va_list
+#define _STDARG_H
+#define _ANSI_STDARG_H_
+#endif /* not __need___va_list */
+#undef __need___va_list
+
+/* Define __gnuc_va_list. */
+
+#ifndef __GNUC_VA_LIST
+#define __GNUC_VA_LIST
+typedef __builtin_va_list __gnuc_va_list;
+#endif
+
+/* Define the standard macros for the user,
+ if this invocation was from the user program. */
+#ifdef _STDARG_H
+
+#define va_start(v,l) __builtin_va_start(v,l)
+#define va_end(v) __builtin_va_end(v)
+#define va_arg(v,l) __builtin_va_arg(v,l)
+#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L
+#define va_copy(d,s) __builtin_va_copy(d,s)
+#endif
+#define __va_copy(d,s) __builtin_va_copy(d,s)
+
+/* Define va_list, if desired, from __gnuc_va_list. */
+/* We deliberately do not define va_list when called from
+ stdio.h, because ANSI C says that stdio.h is not supposed to define
+ va_list. stdio.h needs to have access to that data type,
+ but must not use that name. It should use the name __gnuc_va_list,
+ which is safe because it is reserved for the implementation. */
+
+#ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */
+#undef _VA_LIST
+#endif
+
+#ifdef _BSD_VA_LIST
+#undef _BSD_VA_LIST
+#endif
+
+#if defined(__svr4__) || (defined(_SCO_DS) && !defined(__VA_LIST))
+/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
+ so we must avoid testing it and setting it here.
+ SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
+ have no conflict with that. */
+#ifndef _VA_LIST_
+#define _VA_LIST_
+#ifdef __i860__
+#ifndef _VA_LIST
+#define _VA_LIST va_list
+#endif
+#endif /* __i860__ */
+typedef __gnuc_va_list va_list;
+#ifdef _SCO_DS
+#define __VA_LIST
+#endif
+#endif /* _VA_LIST_ */
+#else /* not __svr4__ || _SCO_DS */
+
+/* The macro _VA_LIST_ is the same thing used by this file in Ultrix.
+ But on BSD NET2 we must not test or define or undef it.
+ (Note that the comments in NET 2's ansi.h
+ are incorrect for _VA_LIST_--see stdio.h!) */
+#if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__) || defined(WINNT)
+/* The macro _VA_LIST_DEFINED is used in Windows NT 3.5 */
+#ifndef _VA_LIST_DEFINED
+/* The macro _VA_LIST is used in SCO Unix 3.2. */
+#ifndef _VA_LIST
+/* The macro _VA_LIST_T_H is used in the Bull dpx2 */
+#ifndef _VA_LIST_T_H
+/* The macro __va_list__ is used by BeOS. */
+#ifndef __va_list__
+typedef __gnuc_va_list va_list;
+#endif /* not __va_list__ */
+#endif /* not _VA_LIST_T_H */
+#endif /* not _VA_LIST */
+#endif /* not _VA_LIST_DEFINED */
+#if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__))
+#define _VA_LIST_
+#endif
+#ifndef _VA_LIST
+#define _VA_LIST
+#endif
+#ifndef _VA_LIST_DEFINED
+#define _VA_LIST_DEFINED
+#endif
+#ifndef _VA_LIST_T_H
+#define _VA_LIST_T_H
+#endif
+#ifndef __va_list__
+#define __va_list__
+#endif
+
+#endif /* not _VA_LIST_, except on certain systems */
+
+#endif /* not __svr4__ */
+
+#endif /* _STDARG_H */
+
+#endif /* not _ANSI_STDARG_H_ */
+#endif /* not _STDARG_H */
diff --git a/sysutils/xen12/patches/patch-aa b/sysutils/xen12/patches/patch-aa
new file mode 100644
index 00000000000..e913c8740dc
--- /dev/null
+++ b/sysutils/xen12/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2004/05/22 16:31:04 cl Exp $
+
+--- arch/i386/boot/boot.S.orig 2004-04-18 04:29:10.000000000 +0200
++++ arch/i386/boot/boot.S
+@@ -103,7 +103,8 @@ continue_boot_cpu:
+ sub %ebx,%ecx /* %ecx = byte len of all mods */
+ mov $(MAX_DIRECTMAP_ADDRESS), %edi
+ add %ecx, %edi /* %edi = src + length */
+- shr $2,%ecx /* %ecx = length/4 */
++ add $3,%ecx
++ shr $2,%ecx /* %ecx = (length+3)/4 */
+ 1: sub $4,%eax /* %eax = src, %edi = dst */
+ sub $4,%edi
+ mov (%eax),%ebx
diff --git a/sysutils/xen12/patches/patch-ab b/sysutils/xen12/patches/patch-ab
new file mode 100644
index 00000000000..22edee2f779
--- /dev/null
+++ b/sysutils/xen12/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1 2004/05/22 16:31:04 cl Exp $
+
+--- drivers/scsi/aic7xxx/Makefile.orig 2004-04-18 04:29:12.000000000 +0200
++++ drivers/scsi/aic7xxx/Makefile
+@@ -7,6 +7,7 @@
+ O_TARGET := aic7xxx_drv.o
+
+ include $(BASEDIR)/Rules.mk
++CFLAGS += -D__linux__
+ #CFLAGS += -I$(BASEDIR)/drivers/scsi
+
+ #list-multi := aic7xxx.o aic79xx.o
diff --git a/sysutils/xen12/patches/patch-ac b/sysutils/xen12/patches/patch-ac
new file mode 100644
index 00000000000..caf714c60c2
--- /dev/null
+++ b/sysutils/xen12/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1 2004/05/22 16:31:04 cl Exp $
+
+--- tools/figlet/Makefile.orig 2004-04-18 04:29:16.000000000 +0200
++++ tools/figlet/Makefile
+@@ -1,7 +1,8 @@
+
+-CC := gcc
++#CC := gcc
+
+ figlet: figlet.c
++ $(CC) -o figlet figlet.c
+
+ clean:
+ rm -f *.o figlet