/
macports.conf.5
699 lines (699 loc) · 11.8 KB
/
macports.conf.5
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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
'\" t
.TH "MACPORTS\&.CONF" "5" "2\&.5\&.0" "MacPorts 2\&.5\&.0" "MacPorts Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
macports.conf \- Configuration file of the MacPorts system
.SH "DESCRIPTION"
.sp
\fBmacports\&.conf\fR is the configuration file used to bootstrap the MacPorts system\&. This file is read by the \fBport\fR command and determines how it behaves\&. Lines beginning with \fI#\fR are comments, empty lines are ignored\&. The format is that of a simple key/value space or tab separated pair\&.
.sp
The file contains entries of the form:
.sp
.if n \{\
.RS 4
.\}
.nf
<key> <value>
.fi
.if n \{\
.RE
.\}
.sp
The value of any given key can be referred to by the \fI${<keyname>}\fR abstraction, where \fI<keyname>\fR expands to the key in question\&.
.SH "KEYS"
.sp
The following keys are used by \fBport\fR itself:
.PP
prefix
.RS 4
Sets the directory where ports are installed\&. Any path may be used but those with spaces and/or non ascii characters should be avoided, as this can break some ports\&. This key is often referred to as
\fI${prefix}\fR\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
/opt/local
T}
.TE
.sp 1
.RE
.PP
portdbpath
.RS 4
Directory where MacPorts keeps working data such as downloaded sources, installed ports\*(Aq receipts and the main registry\&. The same path restrictions apply as for
\fI${prefix}\fR\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
${prefix}/var/macports
T}
.TE
.sp 1
.RE
.PP
portdbformat
.RS 4
Storage type to use for the MacPorts registry\&. The preferred format is "sqlite", with "flat" also available as a legacy format\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
sqlite
T}
.TE
.sp 1
.RE
.PP
applications_dir
.RS 4
Directory containing Applications installed from ports\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
/Applications/MacPorts
T}
.TE
.sp 1
.RE
.PP
frameworks_dir
.RS 4
Directory containing Frameworks installed from ports\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
${prefix}/Library/Frameworks
T}
.TE
.sp 1
.RE
.PP
sources_conf
.RS 4
Location of the sources file\&. This file enables rsync synchronization of the default ports tree with the MacPorts rsync server (through the "sync" target of the port command) and any other local tree(s) you might have\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
${prefix}/etc/macports/sources\&.conf
T}
.TE
.sp 1
.RE
.PP
variants_conf
.RS 4
Location of the optional global variants definition file, listing those that should be used in all installed ports if available\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
${prefix}/etc/macports/variants\&.conf
T}
.TE
.sp 1
.RE
.PP
buildfromsource
.RS 4
Controls whether ports are built from source or downloaded as pre\-built archives\&. Setting to
\fIalways\fR
will never use archives,
\fInever\fR
will always try to use an archive and fail if one is not available\&.
\fIifneeded\fR
will try to fetch an archive and fall back to building from source if that isn\(cqt possible\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
ifneeded
T}
.TE
.sp 1
.RE
.PP
portarchivetype
.RS 4
Format of archives in which to store port images\&. This controls the type of archive created locally after building from source, but not the type to request from remote servers (that is controlled by
\fIarchive_sites\&.conf\fR)\&. Changing this will not affect the usability of already installed archives; they can be of any supported type\&.
.TS
tab(:);
lt lt
lt lt.
T{
\fBSupported types:\fR
T}:T{
tgz, tar, tbz, tbz2, tlz, txz, xar, zip, cpgz, cpio
T}
T{
\fBDefault:\fR
T}:T{
tbz2
T}
.TE
.sp 1
.RE
.PP
configureccache
.RS 4
Use ccache (C/C++ compiler cache)\&. Requires that ccache has been installed\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
no
T}
.TE
.sp 1
.RE
.PP
ccache_dir
.RS 4
Location where ccache stores its files
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
${portdbpath}/build/\&.ccache
T}
.TE
.sp 1
.RE
.PP
ccache_size
.RS 4
Maximum size ccache may use\&. Use
\fIG\fR,
\fIM\fR, or
\fIK\fR
suffix for giga\-, mega\- or kilobytes\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
2G
T}
.TE
.sp 1
.RE
.PP
configuredistcc
.RS 4
Use distcc (distributed compiler)\&. Requires that distcc has been installed\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
no
T}
.TE
.sp 1
.RE
.PP
configurepipe
.RS 4
Use pipes rather than intermediate files when compiling C/C++/etc (gcc \-pipe)
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
yes
T}
.TE
.sp 1
.RE
.PP
buildnicevalue
.RS 4
Lowered scheduling priority (0\-20) to use for make when building ports
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
0
T}
.TE
.sp 1
.RE
.PP
buildmakejobs
.RS 4
Number of simultaneous make jobs (commands) to use when building ports\&. 0 is a special value meaning "the number of CPU cores or the number of GB of physical memory plus one, whichever is less\&."
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
0
T}
.TE
.sp 1
.RE
.PP
portautoclean
.RS 4
Automatic cleaning of the build directory of a given port after it has been installed\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
yes
T}
.TE
.sp 1
.RE
.PP
keeplogs
.RS 4
Keep logs for ports\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
no
T}
.TE
.sp 1
.RE
.PP
build_arch
.RS 4
The machine architecture to try to build for in normal use\&.
.TS
tab(:);
lt lt
lt lt
lt lt.
T{
\fBRegular architectures include:\fR
T}:T{
ppc, i386, ppc64, x86_64
T}
T{
\fBDefault (10\&.6):\fR
T}:T{
x86_64 or i386 depending on hardware
T}
T{
\fBDefault (10\&.5 and earlier):\fR
T}:T{
i386 or ppc depending on hardware
T}
.TE
.sp 1
.RE
.PP
universal_archs
.RS 4
The machine architectures to use for +universal variant (multiple architecture entries should be space separated)\&.
.TS
tab(:);
lt lt
lt lt
lt lt.
T{
\fBRegular architectures include:\fR
T}:T{
ppc, i386, ppc64, x86_64
T}
T{
\fBDefault (10\&.6):\fR
T}:T{
x86_64 i386
T}
T{
\fBDefault (10\&.5 and earlier):\fR
T}:T{
i386 ppc
T}
.TE
.sp 1
.RE
.PP
startupitem_type
.RS 4
Set the default type of startupitems to be generated, overridable by Portfiles that explicitly state a startupitem\&.type key\&. If set to "default", then a type will be selected that\(cqs appropriate to the OS\&.
.TS
tab(:);
lt lt
lt lt.
T{
\fBSupported types:\fR
T}:T{
none, launchd, default\&.
T}
T{
\fBDefault:\fR
T}:T{
default
T}
.TE
.sp 1
.RE
.PP
startupitem_install
.RS 4
Create system\-level symlinks to generated StartupItems\&. If set to "no", symlinks will not be created; otherwise, symlinks will be placed in /Library/LaunchDaemons or /Library/LaunchAgents as appropriate\&. This setting only applies when building ports from source\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
yes
T}
.TE
.sp 1
.RE
.PP
destroot_umask
.RS 4
Umask value to use during the destrooting of a port\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
022
T}
.TE
.sp 1
.RE
.PP
rsync_server
.RS 4
Default rsync server to connect to when running "selfupdate" through the port com\- mand to update your base MacPorts infrastructure\&. While selfupdate also syncs the ports tree, it uses the settings from ${sources_conf} to do so\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
rsync\&.macports\&.org
T}
.TE
.sp 1
.RE
.PP
rsync_dir
.RS 4
Rsync directory from which to pull MacPorts sources from the rsync server\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
macports/release/base/ (which pulls sources for the currently shipping MacPorts release)
T}
.TE
.sp 1
.RE
.PP
rsync_options
.RS 4
Default rsync options to use when connecting to the rsync server\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
\-rtzvl \-\-delete\-after
T}
.TE
.sp 1
.RE
.PP
binpath
.RS 4
Sets the directory search path for locating system executables used by MacPorts\&. This variable should contain the paths for locating utilities such as rsync, tar, cvs and others\&. Don\(cqt change this unless you understand and accept the consequences\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin
T}
.TE
.sp 1
.RE
.PP
extra_env
.RS 4
List of extra environment variables MacPorts should keep in the user\(cqs environment when sanitizing it\&. Changing this is unsupported\&.
.RE
.PP
proxy_override_env
.RS 4
Proxy support\&. Precedence is: env, macports\&.conf, System Preferences\&. That is, if it\(cqs set in the environment, that will be used instead of anything here or in System Preferences\&. Setting proxy_override_env to yes will cause any proxies set here (or in System Preferences if set there but not here) to override what\(cqs in the environment\&. Note that System Preferences doesn\(cqt have an rsync proxy definition\&. Also note, on 10\&.5, sudo will clear many environment variables including those for proxy support\&. Equivalent environment variables: http_proxy, HTTPS_PROXY, FTP_PROXY, RSYNC_PROXY, NO_PROXY
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
yes
T}
.TE
.sp 1
.RE
.PP
proxy_http
.RS 4
HTTP proxy
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
proxy_https
.RS 4
HTTPS proxy
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
proxy_ftp
.RS 4
FTP proxy
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
proxy_rsync
.RS 4
rsync proxy
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
proxy_skip
.RS 4
Hosts not to go through the proxy (comma\-separated, applies to HTTP, HTTPS and FTP, but not rsync)\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
host_blacklist
.RS 4
Space separated list of glob patterns\&. Any download host matching one of these patterns will not be used\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
preferred_hosts
.RS 4
Space separated list of glob patterns\&. Any download host matching one of these patterns will be preferred\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none
T}
.TE
.sp 1
.RE
.PP
revupgrade_autorun
.RS 4
Controls whether the rev\-upgrade action will be run automatically after upgrading ports\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
yes
T}
.TE
.sp 1
.RE
.PP
revupgrade_mode
.RS 4
Controls the rev\-upgrade functionality which checks for broken linking and can rebuild ports to fix it\&.
\fIrebuild\fR
means ports will automatically be rebuilt when broken linking is detected in their files, while
\fIreport\fR
means broken files will be scanned for and reported but the ports will not be rebuilt\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
rebuild
T}
.TE
.sp 1
.RE
.PP
default_compilers
.RS 4
Default value for configure\&.compiler\&. This can be a space\-separated list\&. Later entries will be used if earlier entries are unavailable or blacklisted by a port\&. Setting this is unsupported\&.
.TS
tab(:);
lt lt.
T{
\fBDefault:\fR
T}:T{
none (internal list based on Xcode version is normally used)
T}
.TE
.sp 1
.RE
.SH "FILES"
.PP
${prefix}/etc/macports/macports\&.conf
.RS 4
Standard system\-wide MacPorts configuration file\&.
.RE
.PP
~/\&.macports/macports\&.conf
.RS 4
User\-specific configuration override\&. This file, if found, will be used instead of the default file at ${prefix}/etc/macports/macports\&.conf\&.
.RE
.SH "SEE ALSO"
.sp
\fBport\fR(1), \fBportfile\fR(7)
.SH "AUTHORS"
.sp
.if n \{\
.RS 4
.\}
.nf
(C) 2007\-2011 The MacPorts Project
Juan Manuel Palacios <jmpp@macports\&.org>
Matt Anton <matt@opendarwin\&.org>
Rainer Mueller <raimue@macports\&.org>
.fi
.if n \{\
.RE
.\}