configure-index 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. // $Id: configure-index,v 1.8 2003/04/24 03:32:32 doogie Exp $
  2. /* This file is an index of all APT configuration directives. It should
  3. NOT actually be used as a real config file, though it is a completely
  4. valid file. Most of the options have sane default values, unless
  5. you have specific needs you should NOT include arbitary items in a custom
  6. configuration.
  7. In some instances involving filenames it is possible to set the default
  8. directory when the path is evaluated. This means you can use relative
  9. paths within the sub scope.
  10. The configuration directives are specified in a tree with {} designating
  11. a subscope relative to the tag before the {}. You can further specify
  12. a subscope using scope notation eg,
  13. APT::Architecture "i386";
  14. This is prefixed with the current scope. Scope notation must be used
  15. if an option is specified on the command line with -o.
  16. */
  17. // Options for APT in general
  18. APT
  19. {
  20. Architecture "i386";
  21. Build-Essential "build-essential";
  22. // Options for apt-get
  23. Get
  24. {
  25. Arch-Only "false";
  26. Download-Only "false";
  27. Simulate "false";
  28. Assume-Yes "false";
  29. Force-Yes "false"; // I would never set this.
  30. Fix-Broken "false";
  31. Fix-Missing "false";
  32. Show-Upgraded "false";
  33. Upgrade "true";
  34. Print-URIs "false";
  35. Compile "false";
  36. Download "true";
  37. Purge "false";
  38. List-Cleanup "true";
  39. ReInstall "false";
  40. Trivial-Only "false";
  41. Remove "true";
  42. };
  43. Cache
  44. {
  45. Important "false";
  46. AllVersions "false";
  47. GivenOnly "false";
  48. RecruseDepends "false";
  49. };
  50. CDROM
  51. {
  52. Rename "false";
  53. NoMount "false";
  54. Fast "false";
  55. NoAct "false";
  56. };
  57. // Some general options
  58. Ignore-Hold "false";
  59. Clean-Installed "true";
  60. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  61. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  62. Cache-Limit "4194304";
  63. Default-Release "";
  64. };
  65. // Options for the downloading routines
  66. Acquire
  67. {
  68. Queue-Mode "host"; // host|access
  69. Retries "0";
  70. Source-Symlinks "true";
  71. // HTTP method configuration
  72. http
  73. {
  74. Proxy "http://127.0.0.1:3128";
  75. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  76. Timeout "120";
  77. Pipeline-Depth "5";
  78. // Cache Control. Note these do not work with Squid 2.0.2
  79. No-Cache "false";
  80. Max-Age "86400"; // 1 Day age on index files
  81. No-Store "false"; // Prevent the cache from storing archives
  82. };
  83. ftp
  84. {
  85. Proxy "ftp://127.0.0.1/";
  86. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  87. /* Required script to perform proxy login. This example should work
  88. for tisfwtk */
  89. ProxyLogin
  90. {
  91. "USER $(PROXY_USER)";
  92. "PASS $(PROXY_PASS)";
  93. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  94. "PASS $(SITE_PASS)";
  95. };
  96. Timeout "120";
  97. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  98. is prefered if possible */
  99. Passive "true";
  100. Proxy::Passive "true";
  101. Passive::http.us.debian.org "true"; // Specific per-host setting
  102. };
  103. cdrom
  104. {
  105. Mount "/cdrom";
  106. // You need the trailing slash!
  107. "/cdrom/"
  108. {
  109. Mount "sleep 1000";
  110. UMount "sleep 500";
  111. }
  112. };
  113. };
  114. // Directory layout
  115. Dir "/"
  116. {
  117. // Location of the state dir
  118. State "var/lib/apt/"
  119. {
  120. lists "lists/";
  121. xstatus "xstatus";
  122. userstatus "status.user";
  123. status "/var/lib/dpkg/status";
  124. cdroms "cdroms.list";
  125. };
  126. // Location of the cache dir
  127. Cache "var/cache/apt/" {
  128. archives "archives/";
  129. srcpkgcache "srcpkgcache.bin";
  130. pkgcache "pkgcache.bin";
  131. };
  132. // Config files
  133. Etc "etc/apt/" {
  134. sourcelist "sources.list";
  135. main "apt.conf";
  136. preferences "preferences";
  137. };
  138. // Locations of binaries
  139. Bin {
  140. methods "/usr/lib/apt/methods/";
  141. gzip "/bin/gzip";
  142. dpkg "/usr/bin/dpkg";
  143. dpkg-source "/usr/bin/dpkg-source";
  144. dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
  145. apt-get "/usr/bin/apt-get";
  146. apt-cache "/usr/bin/apt-cache";
  147. };
  148. };
  149. // Things that effect the APT dselect method
  150. DSelect
  151. {
  152. Clean "auto"; // always|auto|prompt|never
  153. Options "-f";
  154. UpdateOptions "";
  155. PromptAfterUpdate "no";
  156. CheckDir "no";
  157. }
  158. DPkg
  159. {
  160. // Probably don't want to use force-downgrade..
  161. Options {"--force-overwrite";"--force-downgrade";}
  162. // Auto re-mounting of a readonly /usr
  163. Pre-Invoke {"mount -o remount,rw /usr";};
  164. Post-Invoke {"mount -o remount,ro /usr";};
  165. // Prevents daemons from getting cwd as something mountable (default)
  166. Run-Directory "/";
  167. // Build options for apt-get source --compile
  168. Build-Options "-b -uc";
  169. // Pre-configure all packages before they are installed using debconf.
  170. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  171. // Flush the contents of stdin before forking dpkg.
  172. FlushSTDIN "true";
  173. // Control the size of the command line passed to dpkg.
  174. MaxBytes 1024;
  175. MaxArgs 350;
  176. }
  177. /* Options you can set to see some debugging text They correspond to names
  178. of classes in the source code */
  179. Debug
  180. {
  181. pkgProblemResolver "false";
  182. pkgAcquire "false";
  183. pkgAcquire::Worker "false";
  184. pkgDPkgPM "false";
  185. pkgOrderList "false";
  186. pkgInitialize "false"; // This one will dump the configuration space
  187. NoLocking "false";
  188. Acquire::Ftp "false"; // Show ftp command traffic
  189. Acquire::Http "false"; // Show http command traffic
  190. aptcdrom "false"; // Show found package files
  191. }
  192. /* Whatever you do, do not use this configuration file!! Take out ONLY
  193. the portions you need! */
  194. This Is Not A Valid Config File