summaryrefslogtreecommitdiffstats
path: root/meta/packages/yum/files/paths.patch
blob: 0175d05b3472889496b06d99f7a2d5f3ac7c0acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
 Makefile      |   18 +++++++++---------
 docs/Makefile |   12 ++++++------
 etc/Makefile  |   20 ++++++++++----------
 3 files changed, 25 insertions(+), 25 deletions(-)

Index: yum-3.2.27/Makefile
===================================================================
--- yum-3.2.27.orig/Makefile	2010-03-04 01:10:20.000000000 +0000
+++ yum-3.2.27/Makefile	2010-03-23 13:49:50.663912930 +0000
@@ -22,19 +22,19 @@
 	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)$(datadir)/yum-cli
 	for p in $(PYFILES) ; do \
-		install -m 644 $$p $(DESTDIR)/usr/share/yum-cli/$$p; \
+		install -m 644 $$p $(DESTDIR)$(datadir)/yum-cli/$$p; \
 	done
-	mv $(DESTDIR)/usr/share/yum-cli/yum-updatesd.py $(DESTDIR)/usr/share/yum-cli/yumupd.py
-	$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYDIR)', 1)"
+	mv $(DESTDIR)$(datadir)/yum-cli/yum-updatesd.py $(DESTDIR)$(datadir)/yum-cli/yumupd.py
+	$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)$(datadir)/yum-cli', 1, '$(PYDIR)', 1)"
 
-	mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin
-	install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum
-	install -m 755 bin/yum-updatesd.py $(DESTDIR)/usr/sbin/yum-updatesd
+	mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir)
+	install -m 755 bin/yum.py $(DESTDIR)$(bindir)/yum
+	install -m 755 bin/yum-updatesd.py $(DESTDIR)$(sbindir)/yum-updatesd
 
-	mkdir -p $(DESTDIR)/var/cache/yum
-	mkdir -p $(DESTDIR)/var/lib/yum	
+	mkdir -p $(DESTDIR)$(localstatedir)/cache/yum
+	mkdir -p $(DESTDIR)$(localstatedir)/lib/yum
 
 	for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
 
Index: yum-3.2.27/docs/Makefile
===================================================================
--- yum-3.2.27.orig/docs/Makefile	2009-04-07 14:57:06.000000000 +0100
+++ yum-3.2.27/docs/Makefile	2010-03-23 13:52:30.086667913 +0000
@@ -6,10 +6,10 @@
 	rm -fr epydoc
 
 install:
-	mkdir -p $(DESTDIR)/usr/share/man/man5
-	mkdir -p $(DESTDIR)/usr/share/man/man8
-	install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum.8
-	install -m 644 yum-shell.8 $(DESTDIR)/usr/share/man/man8/yum-shell.8
-	install -m 644 yum.conf.5 $(DESTDIR)/usr/share/man/man5/yum.conf.5
-	install -m 644 yum-updatesd.8 $(DESTDIR)/usr/share/man/man8/yum-updatesd.8
-	install -m 644 yum-updatesd.conf.5 $(DESTDIR)/usr/share/man/man5/yum-updatesd.conf.5
+	mkdir -p $(DESTDIR)$(mandir)/man5
+	mkdir -p $(DESTDIR)$(mandir)/man8
+	install -m 644 yum.8 $(DESTDIR)$(mandir)/man8/yum.8
+	install -m 644 yum-shell.8 $(DESTDIR)$(mandir)/man8/yum-shell.8
+	install -m 644 yum.conf.5 $(DESTDIR)$(mandir)/man5/yum.conf.5
+	install -m 644 yum-updatesd.8 $(DESTDIR)$(mandir)/man8/yum-updatesd.8
+	install -m 644 yum-updatesd.conf.5 $(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5
Index: yum-3.2.27/etc/Makefile
===================================================================
--- yum-3.2.27.orig/etc/Makefile	2009-10-26 18:56:06.000000000 +0000
+++ yum-3.2.27/etc/Makefile	2010-03-23 13:54:40.421912460 +0000
@@ -1,4 +1,4 @@
-YUMETC=$(DESTDIR)/etc/yum
+YUMETC=$(DESTDIR)$(sysconfdir)/yum
 
 all:
 	echo "Nothing to do"
@@ -7,23 +7,23 @@
 	rm -f *.pyc *.pyo *~
 
 install:
-	mkdir -p $(DESTDIR)/etc/yum/
-	mkdir -p $(DESTDIR)/etc/yum/repos.d
+	mkdir -p $(DESTDIR)$(sysconfdir)/yum/
+	mkdir -p $(DESTDIR)$(sysconfdir)/yum/repos.d
 
 	install -m 644 yum.conf $(YUMETC)/yum.conf
 
 	install -m 644 version-groups.conf $(YUMETC)/version-groups.conf
 
-	mkdir -p $(DESTDIR)/etc/logrotate.d
-	install -m 644 yum.logrotate $(DESTDIR)/etc/logrotate.d/yum
+	mkdir -p $(DESTDIR)$(sysconfdir)/logrotate.d
+	install -m 644 yum.logrotate $(DESTDIR)$(sysconfdir)/logrotate.d/yum
 
-	mkdir -p $(DESTDIR)/etc/rc.d/init.d
-	install -m 755 yum-updatesd.init $(DESTDIR)/etc/rc.d/init.d/yum-updatesd
+	mkdir -p $(DESTDIR)$(sysconfdir)/rc.d/init.d
+	install -m 755 yum-updatesd.init $(DESTDIR)$(sysconfdir)/rc.d/init.d/yum-updatesd
 
-	mkdir -p $(DESTDIR)/etc/dbus-1/system.d/
-	install -m 755 yum-updatesd-dbus.conf $(DESTDIR)/etc/dbus-1/system.d/yum-updatesd.conf
+	mkdir -p $(DESTDIR)$(sysconfdir)/dbus-1/system.d/
+	install -m 755 yum-updatesd-dbus.conf $(DESTDIR)$(sysconfdir)/dbus-1/system.d/yum-updatesd.conf
 
-	install -m 755 yum-updatesd.conf $(DESTDIR)/etc/yum/yum-updatesd.conf
+	install -m 755 yum-updatesd.conf $(DESTDIR)$(sysconfdir)/yum/yum-updatesd.conf
 
-	mkdir -p $(DESTDIR)/etc/bash_completion.d
-	install -m 644 yum.bash $(DESTDIR)/etc/bash_completion.d
+	mkdir -p $(DESTDIR)$(sysconfdir)/bash_completion.d
+	install -m 644 yum.bash $(DESTDIR)$(sysconfdir)/bash_completion.d