open-plc-utils: new package
[buildroot-gz.git] / package / open-plc-utils / 0001-Remove-OWNER-and-GROUPS-parameters-to-install.patch
blob061b3a62df742201b1398554a819b8182480f9bd
1 From fdfeac7e77382ddd0e3fb4f2abeae84f0a31584f Mon Sep 17 00:00:00 2001
2 From: Maxime Hadjinlian <maxime.hadjinlian@devialet.com>
3 Date: Tue, 30 Sep 2014 13:46:59 +0200
4 Subject: [PATCH] Remove OWNER and GROUPS parameters to install
6 The Install tries to change the owner and groups of the binary. In
7 Buildroot we don't want that, since fakeroot will do its job when we
8 finalize the rootfs.
10 Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@devialet.com>
11 ---
12 docbook/Makefile | 4 ++--
13 ether/Makefile | 8 ++++----
14 iso15118/Makefile | 8 ++++----
15 key/Makefile | 8 ++++----
16 mdio/Makefile | 8 ++++----
17 mme/Makefile | 8 ++++----
18 nvm/Makefile | 8 ++++----
19 pib/Makefile | 8 ++++----
20 plc/Makefile | 8 ++++----
21 ram/Makefile | 8 ++++----
22 scripts/Makefile | 4 ++--
23 serial/Makefile | 8 ++++----
24 slac/Makefile | 8 ++++----
25 tools/Makefile | 2 +-
26 14 files changed, 49 insertions(+), 49 deletions(-)
28 diff --git a/docbook/Makefile b/docbook/Makefile
29 index d630822..23a9b5a 100755
30 --- a/docbook/Makefile
31 +++ b/docbook/Makefile
32 @@ -32,9 +32,9 @@ manuals:
33 ${SHELL} ../docbook/manuals
34 scripts:
35 library:
36 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${LIBRARY}
37 + install -m ${DIR_PERM} -d ${LIBRARY}
38 install: library
39 - if [ -d ${LIBRARY} ]; then install -m ${WWW_PERM} -o ${OWNER} -g ${GROUP} *.html *.css *.png ${LIBRARY}; fi
40 + if [ -d ${LIBRARY} ]; then install -m ${WWW_PERM} *.html *.css *.png ${LIBRARY}; fi
41 uninstall:
42 rm -f ${LIBRARY}/*.c.html ${LIBRARY}/*.h.html ${LIBRARY}/*.1.html
43 setup:
44 diff --git a/ether/Makefile b/ether/Makefile
45 index 807cbcb..574050a 100755
46 --- a/ether/Makefile
47 +++ b/ether/Makefile
48 @@ -27,13 +27,13 @@ compact: compile
49 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
50 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
51 library:
52 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
53 + install -m ${DIR_PERM} -d ${BIN}
54 scripts:
55 manuals:
56 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
57 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
58 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
59 + install -m ${MAN_PERM} ${PAGES} ${MAN}
60 install: $(TOOLS) library
61 - install -m ${SUID_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
62 + install -m ${SUID_PERM} ${TOOLS} ${BIN}
63 uninstall:
64 cd ${BIN}; rm -f ${TOOLS}
65 check:
66 diff --git a/iso15118/Makefile b/iso15118/Makefile
67 index 72afdc4..da11a1c 100755
68 --- a/iso15118/Makefile
69 +++ b/iso15118/Makefile
70 @@ -27,13 +27,13 @@ compact: compile
71 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
72 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
73 library:
74 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
75 + install -m ${DIR_PERM} -d ${BIN}
76 scripts:
77 manuals:
78 - if [ ! -d ${MAN} ]; then install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}; fi
79 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
80 + if [ ! -d ${MAN} ]; then install -m ${DIR_PERM} -d ${MAN}; fi
81 + install -m ${MAN_PERM} ${PAGES} ${MAN}
82 install: compile library
83 - install -m ${SUID_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
84 + install -m ${SUID_PERM} ${TOOLS} ${BIN}
85 uninstall:
86 cd ${BIN}; rm -f plc ${TOOLS}
87 cd ${MAN}; rm -f plc ${PAGES}
88 diff --git a/key/Makefile b/key/Makefile
89 index 7de75ff..ee8968c 100755
90 --- a/key/Makefile
91 +++ b/key/Makefile
92 @@ -28,13 +28,13 @@ compact: compile
93 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
94 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
95 library:
96 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
97 + install -m ${DIR_PERM} -d ${BIN}
98 scripts:
99 manuals:
100 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
101 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
102 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
103 + install -m ${MAN_PERM} ${PAGES} ${MAN}
104 install: $(TOOLS)
105 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
106 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
107 uninstall:
108 cd ${BIN}; rm -f ${TOOLS}
109 cd ${MAN}; rm -f ${PAGES}
110 diff --git a/mdio/Makefile b/mdio/Makefile
111 index 60a75a9..062d858 100755
112 --- a/mdio/Makefile
113 +++ b/mdio/Makefile
114 @@ -27,13 +27,13 @@ compact: compile
115 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
116 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
117 library:
118 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
119 + install -m ${DIR_PERM} -d ${BIN}
120 scripts:
121 manuals:
122 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
123 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
124 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
125 + install -m ${MAN_PERM} ${PAGES} ${MAN}
126 install: $(TOOLS) library
127 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
128 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
129 uninstall:
130 cd ${BIN}; rm -f int6k ${TOOLS}
131 cd ${MAN}; rm -f int6k ${PAGES}
132 diff --git a/mme/Makefile b/mme/Makefile
133 index d6a9132..23f4775 100755
134 --- a/mme/Makefile
135 +++ b/mme/Makefile
136 @@ -27,13 +27,13 @@ compact: compile
137 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
138 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
139 library:
140 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
141 + install -m ${DIR_PERM} -d ${BIN}
142 scripts:
143 manuals:
144 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
145 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
146 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
147 + install -m ${MAN_PERM} ${PAGES} ${MAN}
148 install: $(TOOLS) library
149 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
150 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
151 uninstall:
152 cd ${BIN}; rm -f ${TOOLS}
153 check:
154 diff --git a/nvm/Makefile b/nvm/Makefile
155 index 5ae47d2..d7f4037 100755
156 --- a/nvm/Makefile
157 +++ b/nvm/Makefile
158 @@ -28,12 +28,12 @@ compact: compile
159 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
160 scripts:
161 manuals:
162 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
163 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
164 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
165 + install -m ${MAN_PERM} ${PAGES} ${MAN}
166 library:
167 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
168 + install -m ${DIR_PERM} -d ${BIN}
169 install: $(TOOLS) library
170 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
171 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
172 uninstall:
173 cd ${BIN}; rm -f ${TOOLS}
174 check:
175 diff --git a/pib/Makefile b/pib/Makefile
176 index 3af94c8..908b03a 100644
177 --- a/pib/Makefile
178 +++ b/pib/Makefile
179 @@ -30,12 +30,12 @@ compact: compile
180 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
181 scripts:
182 manuals:
183 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
184 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
185 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
186 + install -m ${MAN_PERM} ${PAGES} ${MAN}
187 library:
188 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
189 + install -m ${DIR_PERM} -d ${BIN}
190 install: $(TOOLS) library
191 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
192 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
193 uninstall:
194 cd ${BIN}; rm -f ${TOOLS}
195 check:
196 diff --git a/plc/Makefile b/plc/Makefile
197 index bd8b806..5b41c0b 100644
198 --- a/plc/Makefile
199 +++ b/plc/Makefile
200 @@ -32,13 +32,13 @@ compact: compile
201 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
202 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
203 library:
204 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
205 + install -m ${DIR_PERM} -d ${BIN}
206 scripts:
207 manuals:
208 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
209 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
210 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
211 + install -m ${MAN_PERM} ${PAGES} ${MAN}
212 install: $(TOOLS) library
213 - install -m ${SUID_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
214 + install -m ${SUID_PERM} ${TOOLS} ${BIN}
215 uninstall:
216 cd ${BIN}; rm -f int6k ${TOOLS}
217 cd ${MAN}; rm -f int6k ${PAGES}
218 diff --git a/ram/Makefile b/ram/Makefile
219 index 60b9bb3..c951218 100755
220 --- a/ram/Makefile
221 +++ b/ram/Makefile
222 @@ -27,13 +27,13 @@ compact: compile
223 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
224 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
225 library:
226 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
227 + install -m ${DIR_PERM} -d ${BIN}
228 scripts:
229 manuals:
230 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
231 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
232 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
233 + install -m ${MAN_PERM} ${PAGES} ${MAN}
234 install: $(TOOLS) library
235 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
236 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
237 uninstall:
238 cd ${BIN}; rm -f ${TOOLS}
239 cd ${MAN}; rm -f ${PAGES}
240 diff --git a/scripts/Makefile b/scripts/Makefile
241 index c9a785a..022e5f9 100755
242 --- a/scripts/Makefile
243 +++ b/scripts/Makefile
244 @@ -30,8 +30,8 @@ all compile:
245 install:
246 scripts:
247 manuals:
248 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
249 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
250 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
251 + install -m ${MAN_PERM} ${PAGES} ${MAN}
252 library:
253 uninstall:
254 clean:
255 diff --git a/serial/Makefile b/serial/Makefile
256 index c25f1a6..6420d4a 100755
257 --- a/serial/Makefile
258 +++ b/serial/Makefile
259 @@ -27,13 +27,13 @@ compact: compile
260 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
261 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
262 library:
263 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
264 + install -m ${DIR_PERM} -d ${BIN}
265 scripts:
266 manuals:
267 - test -d ${MAN} || install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}
268 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
269 + test -d ${MAN} || install -m ${DIR_PERM} -d ${MAN}
270 + install -m ${MAN_PERM} ${PAGES} ${MAN}
271 install: $(TOOLS) library
272 - install -m ${BIN_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
273 + install -m ${BIN_PERM} ${TOOLS} ${BIN}
274 uninstall:
275 cd ${BIN}; rm -f int6k ${TOOLS}
276 cd ${MAN}; rm -f int6k ${PAGES}
277 diff --git a/slac/Makefile b/slac/Makefile
278 index d69da17..449f20a 100755
279 --- a/slac/Makefile
280 +++ b/slac/Makefile
281 @@ -27,13 +27,13 @@ compact: compile
282 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
283 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
284 library:
285 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
286 + install -m ${DIR_PERM} -d ${BIN}
287 scripts:
288 manuals:
289 - if [ ! -d ${MAN} ]; then install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${MAN}; fi
290 - install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
291 + if [ ! -d ${MAN} ]; then install -m ${DIR_PERM} -d ${MAN}; fi
292 + install -m ${MAN_PERM} ${PAGES} ${MAN}
293 install: compile library
294 - install -m ${SUID_PERM} -o ${OWNER} -g ${GROUP} ${TOOLS} ${BIN}
295 + install -m ${SUID_PERM} ${TOOLS} ${BIN}
296 uninstall:
297 cd ${BIN}; rm -f plc ${TOOLS}
298 cd ${MAN}; rm -f plc ${PAGES}
299 diff --git a/tools/Makefile b/tools/Makefile
300 index 1d992cf..f17db3d 100755
301 --- a/tools/Makefile
302 +++ b/tools/Makefile
303 @@ -27,7 +27,7 @@ compact: compile
304 if [ ! -z ${STRIP} ]; then ${STRIP} ${TOOLS}; fi
305 if [ -x /usr/local/bin/upx ]; then upx --best ${TOOLS}; fi
306 library:
307 - install -m ${DIR_PERM} -o ${OWNER} -g ${GROUP} -d ${BIN}
308 + install -m ${DIR_PERM} -d ${BIN}
309 scripts:
310 manuals:
311 # install -m ${MAN_PERM} -o ${OWNER} -g ${GROUP} ${PAGES} ${MAN}
313 2.1.0