[package] add button-hotplug driver, will be usable to check status of buttons connec...
[openwrt.git] / package / kexec-tools / patches / 0003-Give-installed-files-user-writable-permission.patch
1 From 0c5e14cdad161e510497df58eb206d3b8f8eba47 Mon Sep 17 00:00:00 2001
2 From: Jeremy Kerr <jk@ozlabs.org>
3 Date: Wed, 19 Mar 2008 17:25:37 +1100
4 Subject: [PATCH] Give installed files user-writable permission
5
6 Currently we install all files as 0555 or 0444. This means that we
7 can't easily do any post-install modification to the files (eg.
8 stripping, as is done with OpenWRT).
9
10 This change installs the files with the user write bit set
11
12 Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
13 ---
14 Makefile.in | 42 +++++++++++++++++++++---------------------
15 1 files changed, 21 insertions(+), 21 deletions(-)
16
17 diff --git a/Makefile.in b/Makefile.in
18 index 306d6e9..037f9a4 100644
19 --- a/Makefile.in
20 +++ b/Makefile.in
21 @@ -237,87 +237,87 @@ install: $(TARGETS)
22 for file in $(TARGETS) ; do \
23 if test `$(DIRNAME) $$file` = "$(SBINDIR)" ; then \
24 $(MKDIR) -p $(DESTDIR)/$(sbindir)/; \
25 - $(INSTALL) -m 555 $$file $(DESTDIR)/$(sbindir)/; \
26 + $(INSTALL) -m 755 $$file $(DESTDIR)/$(sbindir)/; \
27 fi; \
28 if test `$(DIRNAME) $$file` = "$(BINDIR)" ; then \
29 $(MKDIR) -p $(DESTDIR)/$(bindir)/; \
30 - $(INSTALL) -m 555 $$file $(DESTDIR)/$(bindir)/; \
31 + $(INSTALL) -m 755 $$file $(DESTDIR)/$(bindir)/; \
32 fi; \
33 if test `$(DIRNAME) $$file` = "$(LIBEXECDIR)" ; then \
34 $(MKDIR) -p $(DESTDIR)/$(libexecdir)/; \
35 - $(INSTALL) -m 555 $$file $(DESTDIR)/$(libexecdir)/; \
36 + $(INSTALL) -m 755 $$file $(DESTDIR)/$(libexecdir)/; \
37 fi; \
38 if test `$(DIRNAME) $$file` = "$(DATADIR)" ; then \
39 $(MKDIR) -p $(DESTDIR)/$(datadir)/; \
40 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(datadir)/; \
41 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(datadir)/; \
42 fi; \
43 if test `$(DIRNAME) $$file` = "$(SYSCONFDIR)" ; then \
44 $(MKDIR) -p $(DESTDIR)/$(sysconfdir)/; \
45 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(sysconfdir)/; \
46 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(sysconfdir)/; \
47 fi; \
48 if test `$(DIRNAME) $$file` = "$(SHAREDSTATEDIR)" ; then \
49 $(MKDIR) -p $(DESTDIR)/$(sharedstatedir)/; \
50 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(sharedstatedir)/; \
51 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(sharedstatedir)/; \
52 fi; \
53 if test `$(DIRNAME) $$file` = "$(LOCALSTATEDIR)" ; then \
54 $(MKDIR) -p $(DESTDIR)/$(localstatedir)/; \
55 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(localstatedir)/; \
56 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(localstatedir)/; \
57 fi; \
58 if test `$(DIRNAME) $$file` = "$(LIBDIR)" ; then \
59 $(MKDIR) -p $(DESTDIR)/$(libdir)/; \
60 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(libdir)/; \
61 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(libdir)/; \
62 fi; \
63 if test `$(DIRNAME) $$file` = "$(INFODIR)" ; then \
64 $(MKDIR) -p $(DESTDIR)/$(infodir)/; \
65 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(infodir)/; \
66 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(infodir)/; \
67 fi; \
68 if test `$(DIRNAME) $$file` = "$(MAN1DIR)" ; then \
69 $(MKDIR) -p $(DESTDIR)/$(mandir)/man1; \
70 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man1; \
71 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man1; \
72 fi; \
73 if test `$(DIRNAME) $$file` = "$(MAN2DIR)" ; then \
74 $(MKDIR) -p $(DESTDIR)/$(mandir)/man2; \
75 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man2; \
76 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man2; \
77 fi; \
78 if test `$(DIRNAME) $$file` = "$(MAN3DIR)" ; then \
79 $(MKDIR) -p $(DESTDIR)/$(mandir)/man3/; \
80 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man3/; \
81 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man3/; \
82 fi; \
83 if test `$(DIRNAME) $$file` = "$(MAN4DIR)" ; then \
84 $(MKDIR) -p $(DESTDIR)/$(mandir)/man4/; \
85 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man4/; \
86 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man4/; \
87 fi; \
88 if test `$(DIRNAME) $$file` = "$(MAN5DIR)" ; then \
89 $(MKDIR) -p $(DESTDIR)/$(mandir)/man5/; \
90 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man5/; \
91 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man5/; \
92 fi; \
93 if test `$(DIRNAME) $$file` = "$(MAN6DIR)" ; then \
94 $(MKDIR) -p $(DESTDIR)/$(mandir)/man6/; \
95 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man6/; \
96 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man6/; \
97 fi; \
98 if test `$(DIRNAME) $$file` = "$(MAN7DIR)" ; then \
99 $(MKDIR) -p $(DESTDIR)/$(mandir)/man7/; \
100 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man7/; \
101 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man7/; \
102 fi; \
103 if test `$(DIRNAME) $$file` = "$(MAN8DIR)" ; then \
104 $(MKDIR) -p $(DESTDIR)/$(mandir)/man8/; \
105 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(mandir)/man8/; \
106 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(mandir)/man8/; \
107 fi; \
108 if test `$(DIRNAME) $$file` = "$(INCLUDEDIR)" ; then \
109 $(MKDIR) -p $(DESTDIR)/$(includedir)/; \
110 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(includedir)/; \
111 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(includedir)/; \
112 fi; \
113 if test `$(DIRNAME) $$file` = "$(PKGDATADIR)" ; then \
114 $(MKDIR) -p $(DESTDIR)/$(pkgdatadir)/; \
115 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(pkgdatadir)/; \
116 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(pkgdatadir)/; \
117 fi; \
118 if test `$(DIRNAME) $$file` = "$(PKGLIBDIR)" ; then \
119 $(MKDIR) -p $(DESTDIR)/$(pkglibdir)/; \
120 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(pkglibdir)/; \
121 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(pkglibdir)/; \
122 fi; \
123 if test `$(DIRNAME) $$file` = "$(PKGINCLUDEDIR)" ; then \
124 $(MKDIR) -p $(DESTDIR)/$(pkgincludedir)/; \
125 - $(INSTALL) -m 444 $$file $(DESTDIR)/$(pkgincludedir)/; \
126 + $(INSTALL) -m 644 $$file $(DESTDIR)/$(pkgincludedir)/; \
127 fi; \
128 done
129
130 --
131 1.5.0.rc4.g85b1
132
This page took 0.045172 seconds and 5 git commands to generate.