Add anoncvs gentoo-x86 example in documentation of repos.conf.
[portage.git] / cnf / make.globals
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # System-wide defaults for the Portage system
4
5 #            *****************************
6 #            **  DO NOT EDIT THIS FILE  **
7 # ***************************************************
8 # **** CHANGES TO make.conf *OVERRIDE* THIS FILE ****
9 # ***************************************************
10 # ** Incremental Variables Accumulate Across Files **
11 # **  USE, CONFIG_*, and FEATURES are incremental  **
12 # ***************************************************
13
14 # When compiler flags are unset, many packages will substitute their own
15 # implicit flags. For uniformity, use an empty string as the default.
16 CFLAGS=""
17 CXXFLAGS=""
18 LDFLAGS=""
19 FFLAGS=""
20 FCFLAGS=""
21
22 # Default distfiles mirrors. This rotation has multiple hosts and is reliable.
23 # Approved by the mirror-admin team.
24 GENTOO_MIRRORS="http://distfiles.gentoo.org"
25
26 ACCEPT_LICENSE="* -@EULA"
27 ACCEPT_PROPERTIES="*"
28 ACCEPT_RESTRICT="*"
29
30 # Miscellaneous paths
31 DISTDIR=/usr/portage/distfiles
32 PKGDIR=/usr/portage/packages
33 RPMDIR=/usr/portage/rpm
34
35 # Temporary build directory
36 PORTAGE_TMPDIR=/var/tmp
37
38 # Fetching command (3 tries, passive ftp for firewall compatibility)
39 FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
40 RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O \"\${DISTDIR}/\${FILE}\" \"\${URI}\""
41
42 FETCHCOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
43 RESUMECOMMAND_RSYNC="rsync -avP \"\${URI}\" \"\${DISTDIR}/\${FILE}\""
44
45 # NOTE: rsync will evaluate quotes embedded inside PORTAGE_SSH_OPTS
46 FETCHCOMMAND_SSH="bash -c \"x=\\\${2#ssh://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port=22 ; exec rsync --rsh=\\\"ssh -p\\\${port} \\\${3}\\\" -avP \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" rsync \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\""
47 RESUMECOMMAND_SSH=${FETCHCOMMAND_SSH}
48
49 # NOTE: bash eval is used to evaluate quotes embedded inside PORTAGE_SSH_OPTS
50 FETCHCOMMAND_SFTP="bash -c \"x=\\\${2#sftp://} ; host=\\\${x%%/*} ; port=\\\${host##*:} ; host=\\\${host%:*} ; [[ \\\${host} = \\\${port} ]] && port=22 ; eval \\\"declare -a ssh_opts=(\\\${3})\\\" ; exec sftp -P \\\${port} \\\"\\\${ssh_opts[@]}\\\" \\\"\\\${host}:/\\\${x#*/}\\\" \\\"\\\$1\\\"\" sftp \"\${DISTDIR}/\${FILE}\" \"\${URI}\" \"\${PORTAGE_SSH_OPTS}\""
51
52 # Default user options
53 FEATURES="assume-digests binpkg-logs
54           config-protect-if-modified distlocks ebuild-locks
55           fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned
56           sandbox sfperms strict unknown-features-warn unmerge-logs
57           unmerge-orphans userfetch userpriv usersandbox usersync"
58
59 # Ignore file collisions in /lib/modules since files inside this directory
60 # are never unmerged, and therefore collisions must be ignored in order for
61 # FEATURES=protect-owned to operate smoothly in all cases.
62 # Ignore file collisions for unowned *.pyo and *.pyc files, this helps during
63 # transition from compiling python modules in live file system to compiling
64 # them in src_install() function.
65 COLLISION_IGNORE="/lib/modules/* *.py[co] *\$py.class"
66 UNINSTALL_IGNORE="/lib/modules/*"
67
68 # By default wait 5 secs before cleaning a package
69 CLEAN_DELAY="5"
70
71 # By default wait 10 secs on an important warning
72 EMERGE_WARNING_DELAY="10"
73
74 # Automatically clean installed packages after they are updated.
75 # This option will be removed and forced to yes.
76 AUTOCLEAN="yes"
77
78 PORTAGE_BZIP2_COMMAND="bzip2"
79
80 # Don't compress files with these suffixes.
81 PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
82
83 # Number of mirrors to try when a downloaded file has an incorrect checksum.
84 PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
85
86 # Minimum size of existing file for RESUMECOMMAND to be called.
87 PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
88
89 # Number of times 'emerge --sync' will run before giving up.
90 PORTAGE_RSYNC_RETRIES="-1"
91
92 # Number of seconds rsync will wait before timing out.
93 #RSYNC_TIMEOUT="180"
94
95 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
96
97 # The number of days after the last `emerge --sync` that a warning
98 # message should be produced.
99 PORTAGE_SYNC_STALE="30"
100
101 # Executed before emerge exit if FEATURES=clean-logs is enabled.
102 PORT_LOGDIR_CLEAN="find \"\${PORT_LOGDIR}\" -type f ! -name \"summary.log*\" -mtime +7 -delete"
103
104 # Minimal CONFIG_PROTECT
105 CONFIG_PROTECT="/etc"
106 CONFIG_PROTECT_MASK="/etc/env.d"
107
108 # Disable auto-use
109 USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
110
111 # Mode bits for ${WORKDIR} (see ebuild.5).
112 PORTAGE_WORKDIR_MODE="0700"
113
114 # Some defaults for elog
115 PORTAGE_ELOG_CLASSES="log warn error"
116 PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
117
118 PORTAGE_ELOG_MAILURI="root"
119 PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for \${PACKAGE} on \${HOST}"
120 PORTAGE_ELOG_MAILFROM="portage@localhost"
121
122 # Signing command used by repoman
123 PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key \"\${PORTAGE_GPG_KEY}\" --homedir \"\${PORTAGE_GPG_DIR}\" \"\${FILE}\""
124
125 # Security labels are special, see bug #461868.
126 # system.nfs4_acl attributes are irrelevant, see bug #475496.
127 PORTAGE_XATTR_EXCLUDE="security.* system.nfs4_acl"
128
129 #            *****************************
130 #            **  DO NOT EDIT THIS FILE  **
131 # ***************************************************
132 # **** CHANGES TO make.conf *OVERRIDE* THIS FILE ****
133 # ***************************************************
134 # ** Incremental Variables Accumulate Across Files **
135 # **  USE, CONFIG_*, and FEATURES are incremental  **
136 # ***************************************************