pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/xentools12 add xentools12 package:
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d8c615d7fa9
branches: trunk
changeset: 475000:2d8c615d7fa9
user: cl <cl%pkgsrc.org@localhost>
date: Sat May 08 18:24:00 2004 +0000
description:
add xentools12 package:
The Xen virtual machine monitor allows running several virtual machines
on a single physical machine. The xentools12 package contains the
tools to create, destroy and control the virtual machines.
The xentools12 package contains the tools for Xen v1.2.
diffstat:
sysutils/xentools12/DESCR | 5 +
sysutils/xentools12/Makefile | 39 ++++++
sysutils/xentools12/PLIST | 18 ++
sysutils/xentools12/distinfo | 19 +++
sysutils/xentools12/patches/patch-aa | 14 ++
sysutils/xentools12/patches/patch-ab | 16 ++
sysutils/xentools12/patches/patch-ac | 28 ++++
sysutils/xentools12/patches/patch-ad | 13 ++
sysutils/xentools12/patches/patch-ae | 33 +++++
sysutils/xentools12/patches/patch-af | 23 +++
sysutils/xentools12/patches/patch-ag | 27 ++++
sysutils/xentools12/patches/patch-ah | 26 ++++
sysutils/xentools12/patches/patch-ai | 13 ++
sysutils/xentools12/patches/patch-aj | 26 ++++
sysutils/xentools12/patches/patch-ak | 29 ++++
sysutils/xentools12/patches/patch-al | 34 +++++
sysutils/xentools12/patches/patch-am | 214 +++++++++++++++++++++++++++++++++++
17 files changed, 577 insertions(+), 0 deletions(-)
diffs (truncated from 645 to 300 lines):
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/DESCR Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,5 @@
+The Xen virtual machine monitor allows running several virtual machines
+on a single physical machine. The xentools12 package contains the
+tools to create, destroy and control the virtual machines.
+
+The xentools12 package contains the tools for Xen v1.2.
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/Makefile Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1 2004/05/08 18:24:00 cl Exp $
+#
+
+PKGNAME= xentools12
+DISTNAME= xeno-1.2-src-040418
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES+= netbsd-xen-kernel-headers-040508.tar.gz
+CATEGORIES= local
+MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/arch/xen/misc/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= cl%NetBSD.org@localhost
+HOMEPAGE= http://www.netbsd.org/Ports/xen/
+COMMENT= Userland Tools for Xen
+
+ONLY_FOR_PLATFORM= *-*-i386
+
+WRKSRC= ${WRKDIR}/xeno-1.2/tools
+
+PKG_SYSCONFSUBDIR?= xc12
+USE_PKGINSTALL= yes
+EGDIR= ${PREFIX}/share/examples/${PKGNAME_NOREV}
+CONF_FILES= ${EGDIR}/defaults ${PKG_SYSCONFDIR}/defaults
+CONF_FILES+= ${EGDIR}/democd ${PKG_SYSCONFDIR}/democd
+CONF_FILES+= ${EGDIR}/netbsd ${PKG_SYSCONFDIR}/netbsd
+
+USE_GNU_TOOLS+= make
+MAKE_ENV+= EGDIR="${EGDIR}"
+MAKE_ENV+= MV="${MV}" PYTHON="${PYTHONBIN}" SED="${SED}"
+PYTHON_VERSIONS_ACCEPTED= 22 22pth 23 23pth
+PY_PATCHPLIST= yes
+PYTHON_PATCH_SCRIPTS= examples/xc_dom_control.py examples/xc_dom_create.py
+PYTHON_PATCH_SCRIPTS+= examples/xc_vd_tool.py
+USE_BUILDLINK3= yes
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/PLIST Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2004/05/08 18:24:00 cl Exp $
+bin/balloon
+bin/xc_dom_control.py
+bin/xc_dom_create.py
+bin/xc_vd_tool.py
+bin/xen_cpuperf
+bin/xen_read_console
+include/xc.h
+lib/libxc.so
+lib/libxc.so.1.2
+lib/libxc.so.1.2.0
+${PYSITELIB}/Xc.so
+${PYSITELIB}/XenoUtil.py
+${PYSITELIB}/XenoUtil.pyc
+share/examples/${PKGNAME}/defaults
+share/examples/${PKGNAME}/democd
+share/examples/${PKGNAME}/netbsd
+@dirrm share/examples/${PKGNAME}
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/distinfo Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,19 @@
+$NetBSD: distinfo,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+SHA1 (xeno-1.2-src-040418.tgz) = d19f627dc40416f369f6728fcd86e4364e1713ee
+Size (xeno-1.2-src-040418.tgz) = 2960238 bytes
+SHA1 (netbsd-xen-kernel-headers-040508.tar.gz) = 4e452e48b9896528a9fed580b46a072be28b807d
+Size (netbsd-xen-kernel-headers-040508.tar.gz) = 1140 bytes
+SHA1 (patch-aa) = 6c43d7b592f316f5e0bf2d2ee88a2edba03cb635
+SHA1 (patch-ab) = 130cba1d87a72a75789809561e6ab5094e843abe
+SHA1 (patch-ac) = 53bfeaddecf8e9b583e7764845acab1827587348
+SHA1 (patch-ad) = 20b20b9b7e0755de90c9d126bce030d5a267fb44
+SHA1 (patch-ae) = d0b46925a02c14f551cb7612747e1f7a237ad68c
+SHA1 (patch-af) = d7ca50cd38a499b6703ccae55572095165f4bc77
+SHA1 (patch-ag) = 2811168875b4c3b0af194fe0b6a95ac9be123260
+SHA1 (patch-ah) = a1523d6df5220a2915cd7ff152c3011042d7de71
+SHA1 (patch-ai) = 936a9c198f15a3e6f78a1639c70bea19338ef1d1
+SHA1 (patch-aj) = 3d567c5497b09e1b5980fe75d2bb38a23e39621d
+SHA1 (patch-ak) = d4e0d09f232f9d37ab4ab93fc389b07de4d9a5da
+SHA1 (patch-al) = 3ab650d2608455c603046afe46375ff3fa219703
+SHA1 (patch-am) = 90e31b894191b2a8df23344bc6997fa874f555e9
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-aa Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- balloon/Makefile.orig 2004-04-18 04:29:14.000000000 +0200
++++ balloon/Makefile
+@@ -5,8 +5,7 @@ $(TARGET): balloon.c
+ $(CC) -O2 -Wall -o $(TARGET) balloon.c
+
+ install: $(TARGET)
+- mkdir -p $(prefix)/usr/bin
+- cp -a $(TARGET) $(prefix)/usr/bin
++ ${BSD_INSTALL_PROGRAM} $(TARGET) ${PREFIX}/bin
+
+ dist: $(TARGET)
+ mkdir -p ../../../install/bin
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-ab Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- balloon/balloon.c.orig 2004-04-18 04:29:13.000000000 +0200
++++ balloon/balloon.c
+@@ -31,7 +31,11 @@ typedef struct user_balloon_op {
+
+ static int open_balloon_proc()
+ {
++#if defined(__linux__)
+ return open("/proc/xeno/balloon", O_RDWR);
++#elif defined(__NetBSD__)
++ return open("/kern/xen/balloon", O_RDWR);
++#endif
+ }
+
+ /* inflate balloon function signals to kernel it should relinquish memory */
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-ac Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-ac,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- examples/Makefile.orig 2004-04-18 04:29:14.000000000 +0200
++++ examples/Makefile
+@@ -12,15 +12,16 @@ ETC = defaults democd netbsd
+ INITD = xendomains
+
+ all:
++ [ -f xc_dom_create.py-pre ] || ${MV} xc_dom_create.py xc_dom_create.py-pre
++ ${SED} -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
++ xc_dom_create.py-pre > xc_dom_create.py
+
+ install: all
+- mkdir -p $(prefix)/usr/bin
+- cp -a $(INSTALL) $(prefix)/usr/bin
+- #chmod 755 $(INSTALL)
+- mkdir -p $(prefix)/etc/xc
+- for i in $(ETC) ; do [ ! -e $(prefix)/etc/xc/$$i ] && echo Install $$i && cp $$i $(prefix)/etc/xc/ ; done || true
+- mkdir -p $(prefix)/etc/xc/auto
+- for i in $(INITD) ; do [ -e $(prefix)/etc/init.d/ ] && [ ! -e $(prefix)/etc/init.d/$$i ] && cp $$i $(prefix)/etc/init.d/ ; done || true
++ ${BSD_INSTALL_SCRIPT} $(INSTALL) ${PREFIX}/bin
++ ${BSD_INSTALL_DATA_DIR} ${EGDIR}
++ ${BSD_INSTALL_DATA} $(ETC) ${EGDIR}
++ #mkdir -p $(prefix)/etc/xc/auto
++ #for i in $(INITD) ; do [ -e $(prefix)/etc/init.d/ ] && [ ! -e $(prefix)/etc/init.d/$$i ] && cp $$i $(prefix)/etc/init.d/ ; done || true
+
+ dist: all
+ mkdir -p ../../../install/bin
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-ad Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- examples/xc_dom_create.py.orig 2004-04-18 04:29:16.000000000 +0200
++++ examples/xc_dom_create.py
+@@ -2,7 +2,7 @@
+
+ import Xc, XenoUtil, string, sys, os, time, socket, getopt, signal, syslog
+
+-config_dir = '/etc/xc/'
++config_dir = '@PKG_SYSCONFDIR@/'
+ config_file = xc_config_file = config_dir + 'defaults'
+
+ def main_usage ():
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-ae Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ae,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- misc/Makefile.orig 2004-04-18 04:29:10.000000000 +0200
++++ misc/Makefile
+@@ -2,6 +2,7 @@
+ CC = gcc
+ CFLAGS = -Wall -O3
+ EXTRA_INC = -I../../xen/include -I../../xenolinux-sparse/include -I../xc/lib
++EXTRA_INC += -I../../../netbsd-xen-kernel-headers
+
+ HDRS = $(wildcard *.h)
+ SRCS = $(wildcard *.c)
+@@ -9,18 +10,12 @@ OBJS = $(patsubst %.c,%.o,$(SRCS))
+
+ TARGETS = xen_read_console xen_cpuperf
+
+-INSTALL = $(TARGETS) xen-mkdevnodes xen_nat_enable xen-clone
++INSTALL = $(TARGETS) # xen-mkdevnodes xen_nat_enable xen-clone
+
+ all: $(TARGETS)
+- $(MAKE) -C miniterm
+
+ install: all
+- mkdir -p $(prefix)/usr/bin
+- cp -a $(INSTALL) $(prefix)/usr/bin
+- chmod 755 $(prefix)/usr/bin/xen-mkdevnodes
+- chmod 755 $(prefix)/usr/bin/xen_nat_enable
+- chmod 755 $(prefix)/usr/bin/xen-clone
+- $(MAKE) -C miniterm install
++ ${BSD_INSTALL_PROGRAM} $(INSTALL) ${PREFIX}/bin
+
+ dist: all
+ mkdir -p ../../../install/bin
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-af Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-af,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- misc/xen_cpuperf.c.orig 2004-04-18 04:29:11.000000000 +0200
++++ misc/xen_cpuperf.c
+@@ -9,7 +9,9 @@
+
+ #include <sys/types.h>
+ #include <sched.h>
++#if defined(__linux__)
+ #include <error.h>
++#endif
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+@@ -217,7 +219,7 @@ int main(int argc, char **argv)
+ }
+ }
+
+- if ( (privfd = open("/proc/xeno/privcmd", O_RDWR)) == -1 )
++ if ( (privfd = open(PRIVCMD_PATH, O_RDWR)) == -1 )
+ {
+ fprintf(stderr, "Could not open privileged Xen control interface.\n");
+ exit(1);
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-ag Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-ag,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- xc/lib/Makefile.orig 2004-04-18 04:29:11.000000000 +0200
++++ xc/lib/Makefile
+@@ -6,6 +6,7 @@ SONAME = libxc.so.$(MAJOR)
+ CC = gcc
+ CFLAGS = -c -Wall -O3
+ CFLAGS += -I../../../xen/include -I../../../xenolinux-sparse/include
++CFLAGS += -I../../../../netbsd-xen-kernel-headers
+
+ HDRS = $(wildcard *.h)
+ OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
+@@ -23,12 +24,8 @@ check-for-zlib:
+ fi
+
+ install: all
+- mkdir -p $(prefix)/usr/lib
+- mkdir -p $(prefix)/usr/include
+- cp -a $(LIB) $(prefix)/usr/lib
+- chmod 755 $(prefix)/usr/lib/$(LIB)
+- cp xc.h $(prefix)/usr/include
+- chmod 644 $(prefix)/usr/include/xc.h
++ ${BSD_INSTALL_PROGRAM} $(LIB) ${PREFIX}/lib
++ ${BSD_INSTALL_DATA} xc.h ${PREFIX}/include
+
+ dist: all
+ mkdir -p ../../../../install/lib
diff -r fc459156e154 -r 2d8c615d7fa9 sysutils/xentools12/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools12/patches/patch-ah Sat May 08 18:24:00 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ah,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- xc/lib/xc_linux_build.c.orig 2004-04-18 04:29:15.000000000 +0200
++++ xc/lib/xc_linux_build.c
+@@ -222,6 +222,10 @@ static int setup_guestos(int xc_handle,
+ if ( (vl2tab = map_pfn(pm_handle, l2tab >> PAGE_SHIFT)) == NULL )
+ goto error_out;
+ memset(vl2tab, 0, PAGE_SIZE);
++ unmap_pfn(pm_handle, vl2tab);
++ if ( (vl2tab = map_pfn_ro(pm_handle, l2tab >> PAGE_SHIFT)) == NULL )
++ goto error_out;
++ mlock(vl2tab, PAGE_SIZE);
+ vl2e = vl2tab + l2_table_offset(virt_load_addr);
+ for ( count = 0; count < tot_pages; count++ )
+ {
+@@ -231,6 +235,10 @@ static int setup_guestos(int xc_handle,
+ if ( (vl1tab = map_pfn(pm_handle, l1tab >> PAGE_SHIFT)) == NULL )
Home |
Main Index |
Thread Index |
Old Index