summaryrefslogtreecommitdiffstats
path: root/package/kexec-tools/patches/0003-Give-installed-files-user-writable-permission.patch
blob: 7ff2115008f3014d0c4015d6148886bcc192e1af (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
From 0c5e14cdad161e510497df58eb206d3b8f8eba47 Mon Sep 17 00:00:00 2001
From: Jeremy Kerr <jk@ozlabs.org>
Date: Wed, 19 Mar 2008 17:25:37 +1100
Subject: [PATCH] Give installed files user-writable permission

Currently we install all files as 0555 or 0444. This means that we
can't easily do any post-install modification to the files (eg.
stripping, as is done with OpenWRT).

This change installs the files with the user write bit set

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
---
 Makefile.in |   42 +++++++++++++++++++++---------------------
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 306d6e9..037f9a4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -237,87 +237,87 @@ install: $(TARGETS)
 	for file in $(TARGETS) ; do \
 		if test `$(DIRNAME) $$file` =     "$(SBINDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(sbindir)/; \
-			$(INSTALL) -m 555  $$file $(DESTDIR)/$(sbindir)/; \
+			$(INSTALL) -m 755  $$file $(DESTDIR)/$(sbindir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(BINDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(bindir)/; \
-			$(INSTALL) -m 555 $$file $(DESTDIR)/$(bindir)/; \
+			$(INSTALL) -m 755 $$file $(DESTDIR)/$(bindir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(LIBEXECDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(libexecdir)/; \
-			$(INSTALL) -m 555 $$file $(DESTDIR)/$(libexecdir)/; \
+			$(INSTALL) -m 755 $$file $(DESTDIR)/$(libexecdir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(DATADIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(datadir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(datadir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(datadir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(SYSCONFDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(sysconfdir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(sysconfdir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(sysconfdir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(SHAREDSTATEDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(sharedstatedir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(sharedstatedir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(sharedstatedir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(LOCALSTATEDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(localstatedir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(localstatedir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(localstatedir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(LIBDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(libdir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(libdir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(libdir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(INFODIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(infodir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(infodir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(infodir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN1DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man1; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man1; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man1; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN2DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man2; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man2; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man2; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN3DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man3/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man3/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man3/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN4DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man4/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man4/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man4/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN5DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man5/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man5/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man5/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN6DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man6/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man6/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man6/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN7DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man7/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man7/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man7/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(MAN8DIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(mandir)/man8/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man8/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man8/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(INCLUDEDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(includedir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(includedir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(includedir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(PKGDATADIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(pkgdatadir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(pkgdatadir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(pkgdatadir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(PKGLIBDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(pkglibdir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(pkglibdir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(pkglibdir)/; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(PKGINCLUDEDIR)" ; then \
 			$(MKDIR) -p     $(DESTDIR)/$(pkgincludedir)/; \
-			$(INSTALL) -m 444 $$file $(DESTDIR)/$(pkgincludedir)/; \
+			$(INSTALL) -m 644 $$file $(DESTDIR)/$(pkgincludedir)/; \
 		fi; \
 	done
 
-- 
1.5.0.rc4.g85b1