aboutsummaryrefslogtreecommitdiff
blob: 66a862961b582c503f3c41c7c2a79a456b6605fd (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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<?xml version="1.0"?>
<guide self="function-reference/install-functions/">
<chapter>
<title>Install Functions Reference</title>
<body>

<p>
The following functions, which are all provided by <c>ebuild.sh</c> and the standard
library, handle various install-related tasks. <c>${D}</c> is automatically handled
for all of these functions.
</p>

<p>
The <c>do*</c> functions, when given multiple arguments, will work upon multiple
targets. The <c>new*</c> functions take exactly two arguments (except as noted) <d />
the first is the source name, the second the name to use when installing.
</p>

<table>
  <tr>
    <th>
      Function
    </th>
    <th>
      Details
    </th>
  </tr>
  <tr>
    <ti>
      <c>into</c>
    </ti>
    <ti>
      Change install location for
      <c>dobin</c>, <c>newbin</c>,
      <c>dosbin</c>, <c>newsbin</c>,
      <c>doman</c>, <c>newman</c>,
      <c>doinfo</c>, <c>newinfo</c>,
      <c>dolib</c>, <c>newlib</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>insinto</c>
    </ti>
    <ti>
      Change install location for <c>doins</c>, <c>newins</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>exeinto</c>
    </ti>
    <ti>
      Change install location for <c>doexe</c>, <c>newexe</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>docinto</c>
    </ti>
    <ti>
      Change install location for <c>dodoc</c>, <c>newdoc</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>insopts</c>
    </ti>
    <ti>
      Specify arguments passed to <c>install</c> (eg <c>-s</c>, <c>-m644</c>).
    </ti>
  </tr>
  <tr>
    <ti>
      <c>diropts</c>
    </ti>
    <ti>
      Specify arguments passed to <c>install</c> for directories
    </ti>
  </tr>
  <tr>
    <ti>
      <c>exeopts</c>
    </ti>
    <ti>
      Specify arguments passed to <c>install</c> for executables
    </ti>
  </tr>
  <tr>
    <ti>
      <c>libopts</c>
    </ti>
    <ti>
      Specify arguments passed to <c>install</c> for libraries
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dobin</c>
    </ti>
    <ti>
      Install a binary
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doconfd</c>
    </ti>
    <ti>
      Install an <c>/etc/conf.d</c> file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dodir</c>
    </ti>
    <ti>
      Install a directory
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dodoc</c>
    </ti>
    <ti>
      Install a documentation file into <c>/usr/share/doc/${PF}</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doenvd</c>
    </ti>
    <ti>
      Install an <c>/etc/env.d</c> file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doexe</c>
    </ti>
    <ti>
      Install an executable
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dohard</c>
    </ti>
    <ti>
      Create a hardlink to the first argument from the second argument
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doheader</c>
    </ti>
    <ti>
      Install a header file into <c>/usr/include</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dohtml</c>
    </ti>
    <ti>
      Installs HTML document files into <c>/usr/share/doc/${PF}/html</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doinfo</c>
    </ti>
    <ti>
      Install a GNU Info document
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doinitd</c>
    </ti>
    <ti>
      Install an <c>/etc/init.d</c> file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doins</c>
    </ti>
    <ti>
      Install a miscellaneous file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dolib</c>
    </ti>
    <ti>
      Install a library file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dolib.a</c>
    </ti>
    <ti>
      Install a library (<c>.a</c>) file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dolib.so</c>
    </ti>
    <ti>
      Install a library (shared object) file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>doman</c>
    </ti>
    <ti>
      Install a man page
    </ti>
  </tr>
  <tr>
    <ti>
      <c>domo</c>
    </ti>
    <ti>
      Install a Gettext <c>.mo</c> file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dosbin</c>
    </ti>
    <ti>
      Install an <c>sbin/</c> file
    </ti>
  </tr>
  <tr>
    <ti>
      <c>dosym</c>
    </ti>
    <ti>
      Create a symlink from the second parameter to the first parameter
    </ti>
  </tr>
  <tr>
    <ti>
      <c>fowners</c>
    </ti>
    <ti>
      Call <c>chown</c> on the specified files in <c>${D}</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>fperms</c>
    </ti>
    <ti>
      Call <c>chmod</c> on the specified files in <c>${D}</c>
    </ti>
  </tr>
  <tr>
    <ti>
      <c>keepdir</c>
    </ti>
    <ti>
      Create a directory with an empty <c>.keep</c> file in it.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newbin</c>
    </ti>
    <ti>
      Install a binary using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newconfd</c>
    </ti>
    <ti>
      Install an <c>/etc/conf.d</c> entry using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newdoc</c>
    </ti>
    <ti>
      Install a documentation file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newenvd</c>
    </ti>
    <ti>
      Install an <c>/etc/env.d</c> file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newexe</c>
    </ti>
    <ti>
      Install an executable file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newinitd</c>
    </ti>
    <ti>
      Install an <c>/etc/init.d</c> file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newins</c>
    </ti>
    <ti>
      Install a miscellaneous file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newlib.a</c>
    </ti>
    <ti>
      Install a <c>.a</c> library file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newlib.so</c>
    </ti>
    <ti>
      Install a <c>.so</c> library file using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newman</c>
    </ti>
    <ti>
      Install a manual page using the second argument as the name.
    </ti>
  </tr>
  <tr>
    <ti>
      <c>newsbin</c>
    </ti>
    <ti>
      Install an <c>sbin</c> file using the second argument as the name.
    </ti>
  </tr>
</table>

</body>
</chapter>
</guide>