diff -ur yum-2.4.0/bin/yum.py yum-2.4.0-altpath/bin/yum.py
--- yum-2.4.0/bin/yum.py	2005-08-05 09:56:36.000000000 +0400
+++ yum-2.4.0-altpath/bin/yum.py	2005-08-29 18:58:28.416603881 +0400
@@ -1,5 +1,6 @@
 #!/usr/bin/python
 import sys
+sys.path.insert(0, '/usr/share/vzyum/lib')
 try:
    import yum
 except ImportError:
@@ -21,7 +22,7 @@
 """ % (sys.exc_value, sys.version)
    sys.exit(1)
 
-sys.path.insert(0, '/usr/share/yum-cli')
+sys.path.insert(0, '/usr/share/vzyum/yum-cli')
 try:
     import yummain
     yummain.main(sys.argv[1:])
diff -ur yum-2.4.0/Makefile yum-2.4.0-altpath/Makefile
--- yum-2.4.0/Makefile	2005-07-04 04:50:22.000000000 +0400
+++ yum-2.4.0-altpath/Makefile	2005-08-29 18:22:37.346777991 +0400
@@ -1,4 +1,4 @@
-SUBDIRS = repomd rpmUtils yum etc docs
+SUBDIRS = repomd rpmUtils yum
 PYFILES = $(wildcard *.py)
 
 PKGNAME = yum
@@ -6,6 +6,7 @@
 RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
 CVSTAG=yum-$(subst .,_,$(VERSION)-$(RELEASE))
 PYTHON=python
+PREFIX=/usr/share/vzyum/
 
 all: subdirs
 
@@ -17,17 +18,15 @@
 	for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done
 
 install:
-	mkdir -p $(DESTDIR)/usr/share/yum-cli
+	mkdir -p $(DESTDIR)$(PREFIX)/yum-cli
 	for p in $(PYFILES) ; do \
-		install -m 644 $$p $(DESTDIR)/usr/share/yum-cli/$$p; \
+		install -m 644 $$p $(DESTDIR)$(PREFIX)/yum-cli/$$p; \
 	done
-	$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYDIR)', 1)"
+	$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)$(PREFIX)/yum-cli', 1, '$(PYDIR)', 1)"
 
-	mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/bin
-	install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum
-	install -m 755 bin/yum-arch $(DESTDIR)/usr/bin/yum-arch
+	mkdir -p $(DESTDIR)$(PREFIX)/bin
+	install -m 755 bin/yum.py $(DESTDIR)$(PREFIX)/bin/yum
 
-	mkdir -p $(DESTDIR)/var/cache/yum
 
 	for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
 
diff -ur yum-2.4.0/repomd/Makefile yum-2.4.0-altpath/repomd/Makefile
--- yum-2.4.0/repomd/Makefile	2005-02-25 10:46:51.000000000 +0300
+++ yum-2.4.0-altpath/repomd/Makefile	2005-08-29 18:23:11.311943066 +0400
@@ -1,10 +1,9 @@
 PYTHON=python
 PACKAGE = $(shell basename `pwd`)
 PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
+PYSYSDIR = /usr/share/vzyum
+PYLIBDIR = $(PYSYSDIR)/lib
+PKGDIR = $(PYLIBDIR)/$(PACKAGE)
 
 all: 
 	echo "Nothing to do"
diff -ur yum-2.4.0/rpmUtils/Makefile yum-2.4.0-altpath/rpmUtils/Makefile
--- yum-2.4.0/rpmUtils/Makefile	2005-02-25 10:46:51.000000000 +0300
+++ yum-2.4.0-altpath/rpmUtils/Makefile	2005-08-29 18:23:28.243539083 +0400
@@ -1,10 +1,9 @@
 PYTHON=python
 PACKAGE = $(shell basename `pwd`)
 PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
+PYSYSDIR = /usr/share/vzyum
+PYLIBDIR = $(PYSYSDIR)/lib
+PKGDIR = $(PYLIBDIR)/$(PACKAGE)
 
 all: 
 	echo "Nothing to do"
diff -ur yum-2.4.0/yum/Makefile yum-2.4.0-altpath/yum/Makefile
--- yum-2.4.0/yum/Makefile	2005-02-25 10:46:51.000000000 +0300
+++ yum-2.4.0-altpath/yum/Makefile	2005-08-29 18:23:43.667527364 +0400
@@ -2,9 +2,9 @@
 PACKAGE = $(shell basename `pwd`)
 PYFILES = $(wildcard *.py)
 PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
+PYSYSDIR = /usr/share/vzyum
+PYLIBDIR = $(PYSYSDIR)/lib
+PKGDIR = $(PYLIBDIR)/$(PACKAGE)
 
 all: 
 	echo "Nothing to do"
