2007-02-11 11:48:10 +01:00
|
|
|
Index: xen-3.0.4-testing/docs/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/docs/Makefile
|
|
|
|
+++ xen-3.0.4-testing/docs/Makefile
|
|
|
|
@@ -13,8 +13,8 @@ LATEX2HTML := latex2html
|
2007-01-16 00:42:10 +01:00
|
|
|
DOXYGEN := doxygen
|
|
|
|
POD2MAN := pod2man
|
|
|
|
|
|
|
|
-pkgdocdir := /usr/share/doc/xen
|
|
|
|
-mandir := /usr/share/man
|
|
|
|
+pkgdocdir := $(DOCDIR)
|
|
|
|
+mandir := $(MANDIR)
|
|
|
|
|
|
|
|
DOC_MAN5SRC := $(wildcard man/*.pod.5)
|
|
|
|
DOC_MAN1SRC := $(wildcard man/*.pod.1)
|
2007-02-11 11:48:10 +01:00
|
|
|
@@ -87,13 +87,13 @@ distclean: clean
|
|
|
|
.PHONY: install
|
|
|
|
install: all
|
|
|
|
rm -rf $(DESTDIR)$(pkgdocdir)
|
|
|
|
- $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)/html
|
|
|
|
cp -dR ps $(DESTDIR)$(pkgdocdir)
|
|
|
|
cp -dR pdf $(DESTDIR)$(pkgdocdir)
|
|
|
|
+ cp -dR html.done/* $(DESTDIR)$(pkgdocdir)/html
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(mandir)
|
|
|
|
cp -dR man1 $(DESTDIR)$(mandir)
|
|
|
|
cp -dR man5 $(DESTDIR)$(mandir)
|
|
|
|
- [ ! -d html ] || cp -dR html $(DESTDIR)$(pkgdocdir)
|
|
|
|
|
|
|
|
pdf/%.pdf: ps/%.ps
|
|
|
|
$(INSTALL_DIR) $(@D)
|
|
|
|
@@ -117,3 +117,9 @@ html/%/index.html: src/%.tex
|
|
|
|
$(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/
|
|
|
|
+
|
|
|
|
Index: xen-3.0.4-testing/tools/xentrace/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/tools/xentrace/Makefile
|
|
|
|
+++ xen-3.0.4-testing/tools/xentrace/Makefile
|
|
|
|
@@ -38,14 +38,14 @@ install: build
|
2007-01-16 00:42:10 +01:00
|
|
|
[ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
|
|
|
|
[ -z "$(LIBBIN)" ] || [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
|
|
|
|
- [ -d $(DESTDIR)/usr/share/man/man1 ] || \
|
|
|
|
- $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
|
|
|
|
- [ -d $(DESTDIR)/usr/share/man/man8 ] || \
|
|
|
|
- $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
|
|
|
|
+ [ -d $(DESTDIR)$(MANDIR)/man1 ] || \
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/man1
|
|
|
|
+ [ -d $(DESTDIR)$(MANDIR)/man8 ] || \
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/man8
|
|
|
|
$(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
|
|
|
|
[ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
|
|
|
|
- $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
|
|
|
|
- $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
|
|
|
|
+ $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MANDIR)/man1
|
|
|
|
+ $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MANDIR)/man8
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2007-02-11 11:48:10 +01:00
|
|
|
Index: xen-3.0.4-testing/tools/examples/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/tools/examples/Makefile
|
|
|
|
+++ xen-3.0.4-testing/tools/examples/Makefile
|
|
|
|
@@ -38,18 +38,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:
|
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
@@ -57,15 +45,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)
|
2007-02-11 11:48:10 +01:00
|
|
|
@@ -106,9 +94,7 @@ install-udev:
|
2007-01-16 00:42:10 +01:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d
|
|
|
|
for i in $(UDEV_RULES); \
|
|
|
|
do \
|
|
|
|
- $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
|
|
|
|
- ( cd $(DESTDIR)$(UDEV_RULES_DIR)/rules.d ; \
|
|
|
|
- ln -sf ../$$i . ) \
|
|
|
|
+ $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.PHONY: clean
|
2007-02-11 11:48:10 +01:00
|
|
|
Index: xen-3.0.4-testing/tools/security/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/tools/security/Makefile
|
|
|
|
+++ xen-3.0.4-testing/tools/security/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
@@ -73,9 +73,9 @@ install: all $(ACM_CONFIG_FILE)
|
|
|
|
$(INSTALL_DIR) -p $(DESTDIR)$(ACM_SECGEN_CGIDIR)
|
|
|
|
$(INSTALL_PROG) -p $(ACM_INST_CGI) $(DESTDIR)$(ACM_SECGEN_CGIDIR)
|
|
|
|
ifndef XEN_PYTHON_NATIVE_INSTALL
|
|
|
|
- python python/setup.py install --home="$(DESTDIR)/usr"
|
|
|
|
+ python python/setup.py install --home="$(DESTDIR)/usr" --prefix=""
|
|
|
|
else
|
|
|
|
- python python/setup.py install --root="$(DESTDIR)"
|
|
|
|
+ python python/setup.py install --root="$(DESTDIR)" --prefix="/usr"
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
.PHONY: all
|
2007-02-11 11:48:10 +01:00
|
|
|
Index: xen-3.0.4-testing/tools/pygrub/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/tools/pygrub/Makefile
|
|
|
|
+++ xen-3.0.4-testing/tools/pygrub/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
@@ -15,7 +15,7 @@ install: all
|
2007-02-11 11:48:10 +01:00
|
|
|
$(INSTALL_DIR) -p $(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"
|
|
|
|
$(INSTALL_DIR) -p $(DESTDIR)/var/run/xend/boot
|
2007-01-16 00:42:10 +01:00
|
|
|
endif
|
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
Index: xen-3.0.4-testing/tools/python/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/tools/python/Makefile
|
|
|
|
+++ xen-3.0.4-testing/tools/python/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
@@ -14,7 +14,7 @@ install: all
|
2007-02-11 11:48:10 +01:00
|
|
|
CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force
|
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)" --force
|
|
|
|
+ CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --prefix="/usr" --force
|
2007-01-16 00:42:10 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: test
|
2007-02-11 11:48:10 +01:00
|
|
|
Index: xen-3.0.4-testing/tools/Makefile
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-02-11 11:48:10 +01:00
|
|
|
--- xen-3.0.4-testing.orig/tools/Makefile
|
|
|
|
+++ xen-3.0.4-testing/tools/Makefile
|
|
|
|
@@ -25,7 +25,6 @@ SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen
|
|
|
|
# These don't cross-compile
|
|
|
|
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
|
|
|
|
SUBDIRS-y += python
|
|
|
|
-SUBDIRS-y += pygrub
|
|
|
|
endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
.PHONY: all
|