2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/docs/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/docs/Makefile
|
|
|
|
+++ xen-3.3.0-testing/docs/Makefile
|
2007-04-26 01:53:07 +02:00
|
|
|
@@ -90,7 +90,8 @@ install: all
|
2007-02-11 11:48:10 +01:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(mandir)
|
|
|
|
cp -dR man1 $(DESTDIR)$(mandir)
|
|
|
|
cp -dR man5 $(DESTDIR)$(mandir)
|
|
|
|
- [ ! -d html ] || cp -dR html $(DESTDIR)$(pkgdocdir)
|
2007-04-26 01:53:07 +02:00
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/html
|
|
|
|
+ cp -dR html.done/* $(DESTDIR)$(pkgdocdir)/html
|
2007-02-11 11:48:10 +01:00
|
|
|
|
|
|
|
pdf/%.pdf: ps/%.ps
|
|
|
|
$(INSTALL_DIR) $(@D)
|
2007-04-26 01:53:07 +02:00
|
|
|
@@ -114,3 +115,9 @@ html/%/index.html: src/%.tex
|
2007-02-11 11:48:10 +01:00
|
|
|
$(LATEX2HTML) -split 0 -show_section_numbers -toc_depth 3 -nonavigation \
|
|
|
|
-numbered_footnotes -local_icons -noinfo -math -dir $(@D) \
|
|
|
|
$< 1>/dev/null 2>/dev/null
|
|
|
|
+ rm -rf html.done/$*/
|
|
|
|
+ mkdir -p html.done/$*/
|
|
|
|
+ cp html/$*/*.html html/$*/*.css html/$*/*.png html.done/$*/
|
|
|
|
+ ln -sf $*.html html.done/$*/index.html
|
|
|
|
+ rm -rf html/
|
|
|
|
+
|
2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/tools/examples/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/tools/examples/Makefile
|
|
|
|
+++ xen-3.3.0-testing/tools/examples/Makefile
|
|
|
|
@@ -39,18 +39,6 @@ XEN_HOTPLUG_SCRIPTS = xen-backend.agent
|
2007-01-16 00:42:10 +01:00
|
|
|
UDEV_RULES_DIR = /etc/udev
|
|
|
|
UDEV_RULES = xen-backend.rules
|
|
|
|
|
|
|
|
-DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),)
|
|
|
|
-DE = $(if $(DESTDIR),$(shell readlink -f $(DESTDIR)),)
|
|
|
|
-ifeq ($(findstring $(DI),$(DE)),$(DI))
|
|
|
|
-HOTPLUGS=install-hotplug install-udev
|
|
|
|
-else
|
|
|
|
-ifeq ($(shell [ -x /usr/bin/udevinfo ] && [ `/usr/bin/udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/'` -ge 059 ] && echo 1),1)
|
|
|
|
-HOTPLUGS=install-udev
|
|
|
|
-else
|
|
|
|
-HOTPLUGS=install-hotplug
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
.PHONY: all
|
|
|
|
all:
|
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
@@ -58,15 +46,15 @@ all:
|
2007-01-16 00:42:10 +01:00
|
|
|
build:
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
-install: all install-initd install-configs install-scripts $(HOTPLUGS)
|
|
|
|
+install: all install-initd install-configs install-scripts install-udev
|
|
|
|
|
|
|
|
.PHONY: install-initd
|
|
|
|
install-initd:
|
|
|
|
[ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
|
|
|
|
- [ -d $(DESTDIR)/etc/sysconfig ] || $(INSTALL_DIR) $(DESTDIR)/etc/sysconfig
|
|
|
|
+ [ -d $(DESTDIR)/var/adm/fillup-templates ] || $(INSTALL_DIR) $(DESTDIR)/var/adm/fillup-templates/
|
|
|
|
$(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
|
|
|
|
$(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
|
|
|
|
- $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)/etc/sysconfig/xendomains
|
|
|
|
+ $(INSTALL_PROG) $(XENDOMAINS_SYSCONFIG) $(DESTDIR)/var/adm/fillup-templates/
|
|
|
|
|
|
|
|
.PHONY: install-configs
|
|
|
|
install-configs: $(XEN_CONFIGS)
|
2008-07-19 01:04:37 +02:00
|
|
|
@@ -107,8 +95,7 @@ install-udev:
|
2007-01-16 00:42:10 +01:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d
|
2008-01-12 02:32:53 +01:00
|
|
|
set -e; for i in $(UDEV_RULES); \
|
2007-01-16 00:42:10 +01:00
|
|
|
do \
|
|
|
|
- $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
|
2008-01-12 02:32:53 +01:00
|
|
|
- ln -sf ../$$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \
|
2007-01-16 00:42:10 +01:00
|
|
|
+ $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.PHONY: clean
|
2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/tools/security/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/tools/security/Makefile
|
|
|
|
+++ xen-3.3.0-testing/tools/security/Makefile
|
2007-12-20 16:46:41 +01:00
|
|
|
@@ -64,9 +64,9 @@ install: all $(ACM_CONFIG_FILE)
|
2007-04-26 01:53:07 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(ACM_SECGEN_CGIDIR)
|
|
|
|
$(INSTALL_PROG) $(ACM_INST_CGI) $(DESTDIR)$(ACM_SECGEN_CGIDIR)
|
2007-01-16 00:42:10 +01:00
|
|
|
ifndef XEN_PYTHON_NATIVE_INSTALL
|
2007-12-20 16:46:41 +01:00
|
|
|
- python python/setup.py install --install-lib="$(DESTDIR)$(LIBPATH)/python"
|
|
|
|
+ python python/setup.py install --install-lib="$(DESTDIR)$(LIBPATH)/python" --prefix=""
|
2007-01-16 00:42:10 +01:00
|
|
|
else
|
|
|
|
- python python/setup.py install --root="$(DESTDIR)"
|
2007-12-20 16:46:41 +01:00
|
|
|
+ python python/setup.py install --root="$(DESTDIR)" --prefix="/usr"
|
2007-01-16 00:42:10 +01:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
.PHONY: all
|
2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/tools/pygrub/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/tools/pygrub/Makefile
|
|
|
|
+++ xen-3.3.0-testing/tools/pygrub/Makefile
|
2007-04-26 01:53:07 +02:00
|
|
|
@@ -16,7 +16,7 @@ install: all
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
|
2007-01-16 00:42:10 +01:00
|
|
|
else
|
|
|
|
install: all
|
2007-02-11 11:48:10 +01:00
|
|
|
- CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)"
|
|
|
|
+ CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --prefix="/usr"
|
2007-04-26 01:53:07 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
|
2007-01-16 00:42:10 +01:00
|
|
|
endif
|
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/tools/python/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/tools/python/Makefile
|
|
|
|
+++ xen-3.3.0-testing/tools/python/Makefile
|
2007-12-20 16:46:41 +01:00
|
|
|
@@ -80,7 +80,7 @@ install: install-messages install-dtd
|
2007-04-26 01:53:07 +02:00
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python"
|
2007-01-16 00:42:10 +01:00
|
|
|
else
|
2007-04-26 01:53:07 +02:00
|
|
|
install: install-messages install-dtd
|
2007-02-11 11:48:10 +01:00
|
|
|
- CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force
|
|
|
|
+ CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --prefix="/usr" --force
|
2007-01-16 00:42:10 +01:00
|
|
|
endif
|
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
install-dtd: all
|
2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/docs/Docs.mk
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/docs/Docs.mk
|
|
|
|
+++ xen-3.3.0-testing/docs/Docs.mk
|
2007-04-26 01:53:07 +02:00
|
|
|
@@ -8,6 +8,6 @@ POD2MAN := pod2man
|
|
|
|
DOT := dot
|
|
|
|
NEATO := neato
|
|
|
|
|
|
|
|
-pkgdocdir := /usr/share/doc/xen
|
|
|
|
-mandir := /usr/share/man
|
|
|
|
+pkgdocdir := $(DOCDIR)
|
|
|
|
+mandir := $(MANDIR)
|
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
Index: xen-3.3.0-testing/tools/xenstore/Makefile
|
2007-04-26 01:53:07 +02:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/tools/xenstore/Makefile
|
|
|
|
+++ xen-3.3.0-testing/tools/xenstore/Makefile
|
|
|
|
@@ -14,6 +14,7 @@ DEP = .*.d
|
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
CLIENTS := xenstore-exists xenstore-list xenstore-read xenstore-rm xenstore-chmod
|
2008-07-19 01:04:37 +02:00
|
|
|
CLIENTS += xenstore-write xenstore-ls
|
2007-04-26 01:53:07 +02:00
|
|
|
+CLIENTS_DOMU := $(patsubst xenstore-%,domu-xenstore-%,$(CLIENTS))
|
|
|
|
|
|
|
|
XENSTORED_OBJS = xenstored_core.o xenstored_watch.o xenstored_domain.o xenstored_transaction.o xs_lib.o talloc.o utils.o tdb.o hashtable.o
|
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
@@ -34,7 +35,7 @@ endif
|
|
|
|
all: libxenstore.so libxenstore.a xenstored clients xs_tdb_dump
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
.PHONY: clients
|
|
|
|
-clients: xenstore $(CLIENTS) xenstore-control
|
|
|
|
+clients: xenstore $(CLIENTS) $(CLIENTS_DOMU) xenstore-control
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
ifeq ($(CONFIG_SunOS),y)
|
|
|
|
xenstored_probes.h: xenstored_probes.d
|
|
|
|
@@ -54,6 +55,9 @@ xenstored: $(XENSTORED_OBJS)
|
|
|
|
$(CLIENTS): xenstore
|
|
|
|
ln -f xenstore $@
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
+$(CLIENTS_DOMU): xenstore
|
|
|
|
+ ln -f xenstore $@
|
2007-04-26 01:53:07 +02:00
|
|
|
+
|
2008-07-19 01:04:37 +02:00
|
|
|
xenstore: xenstore_client.o $(LIBXENSTORE)
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $< -L. -lxenstore $(SOCKET_LIBS) -o $@
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
@@ -81,7 +85,7 @@ clean:
|
|
|
|
rm -f *.a *.o *.opic *.so* xenstored_probes.h
|
2007-04-26 01:53:07 +02:00
|
|
|
rm -f xenstored xs_random xs_stress xs_crashme
|
2008-07-19 01:04:37 +02:00
|
|
|
rm -f xs_tdb_dump xenstore-control
|
|
|
|
- rm -f xenstore $(CLIENTS)
|
2007-04-26 01:53:07 +02:00
|
|
|
+ rm -f $(CLIENTS) $(CLIENTS_DOMU)
|
2008-07-19 01:04:37 +02:00
|
|
|
$(RM) $(DEP)
|
2007-04-26 01:53:07 +02:00
|
|
|
|
2007-12-20 16:46:41 +01:00
|
|
|
.PHONY: TAGS
|
2008-07-19 01:04:37 +02:00
|
|
|
@@ -96,6 +100,7 @@ tarball: clean
|
2007-04-26 01:53:07 +02:00
|
|
|
install: all
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/var/run/xenstored
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/var/lib/xenstored
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)/bin
|
2008-07-19 01:04:37 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
|
|
|
|
@@ -105,6 +110,9 @@ install: all
|
|
|
|
set -e ; for c in $(CLIENTS) ; do \
|
|
|
|
ln -f $(DESTDIR)/usr/bin/xenstore $(DESTDIR)/usr/bin/$${c} ; \
|
|
|
|
done
|
2007-04-26 01:53:07 +02:00
|
|
|
+ for client in $(CLIENTS_DOMU); do \
|
|
|
|
+ $(INSTALL_PROG) $$client $(DESTDIR)/bin/$${client/domu-}; \
|
|
|
|
+ done
|
2008-07-19 01:04:37 +02:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(LIBDIR)
|
|
|
|
$(INSTALL_PROG) libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)
|
|
|
|
ln -sf libxenstore.so.$(MAJOR).$(MINOR) $(DESTDIR)$(LIBDIR)/libxenstore.so.$(MAJOR)
|
|
|
|
Index: xen-3.3.0-testing/tools/misc/Makefile
|
2007-07-25 02:03:48 +02:00
|
|
|
===================================================================
|
2008-07-19 01:04:37 +02:00
|
|
|
--- xen-3.3.0-testing.orig/tools/misc/Makefile
|
|
|
|
+++ xen-3.3.0-testing/tools/misc/Makefile
|
|
|
|
@@ -19,7 +19,7 @@ SUBDIRS-$(CONFIG_MINITERM) += miniterm
|
|
|
|
SUBDIRS := $(SUBDIRS-y)
|
2007-07-25 02:03:48 +02:00
|
|
|
|
|
|
|
INSTALL_BIN = $(TARGETS) xencons
|
2007-12-20 16:46:41 +01:00
|
|
|
-INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xenperf xsview
|
|
|
|
+INSTALL_SBIN = netfix xm xen-bugtool xen-python-path xend xsview
|
2007-07-25 02:03:48 +02:00
|
|
|
|
2008-07-19 01:04:37 +02:00
|
|
|
DEFAULT_PYTHON_PATH := $(shell $(XEN_ROOT)/tools/python/get-path)
|
|
|
|
PYTHON_PATH ?= $(DEFAULT_PYTHON_PATH)
|