configure-index 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. // $Id: configure-index,v 1.5 2002/03/20 05:51:52 jgg 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. };
  64. // Options for the downloading routines
  65. Acquire
  66. {
  67. Queue-Mode "host"; // host|access
  68. Retries "0";
  69. Source-Symlinks "true";
  70. // HTTP method configuration
  71. http
  72. {
  73. Proxy "http://127.0.0.1:3128";
  74. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  75. Timeout "120";
  76. Pipeline-Depth "5";
  77. // Cache Control. Note these do not work with Squid 2.0.2
  78. No-Cache "false";
  79. Max-Age "86400"; // 1 Day age on index files
  80. No-Store "false"; // Prevent the cache from storing archives
  81. };
  82. ftp
  83. {
  84. Proxy "ftp://127.0.0.1/";
  85. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  86. /* Required script to perform proxy login. This example should work
  87. for tisfwtk */
  88. ProxyLogin
  89. {
  90. "USER $(PROXY_USER)";
  91. "PASS $(PROXY_PASS)";
  92. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  93. "PASS $(SITE_PASS)";
  94. };
  95. Timeout "120";
  96. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  97. is prefered if possible */
  98. Passive "true";
  99. Proxy::Passive "true";
  100. Passive::http.us.debian.org "true"; // Specific per-host setting
  101. };
  102. cdrom
  103. {
  104. Mount "/cdrom";
  105. // You need the trailing slash!
  106. "/cdrom/"
  107. {
  108. Mount "sleep 1000";
  109. UMount "sleep 500";
  110. }
  111. };
  112. };
  113. // Directory layout
  114. Dir "/"
  115. {
  116. // Location of the state dir
  117. State "var/lib/apt/"
  118. {
  119. lists "lists/";
  120. xstatus "xstatus";
  121. userstatus "status.user";
  122. status "/var/lib/dpkg/status";
  123. cdroms "cdroms.list";
  124. };
  125. // Location of the cache dir
  126. Cache "var/cache/apt/" {
  127. archives "archives/";
  128. srcpkgcache "srcpkgcache.bin";
  129. pkgcache "pkgcache.bin";
  130. };
  131. // Config files
  132. Etc "etc/apt/" {
  133. sourcelist "sources.list";
  134. main "apt.conf";
  135. preferences "preferences";
  136. };
  137. // Locations of binaries
  138. Bin {
  139. methods "/usr/lib/apt/methods/";
  140. gzip "/bin/gzip";
  141. dpkg "/usr/bin/dpkg";
  142. dpkg-source "/usr/bin/dpkg-source";
  143. dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
  144. apt-get "/usr/bin/apt-get";
  145. apt-cache "/usr/bin/apt-cache";
  146. };
  147. };
  148. // Things that effect the APT dselect method
  149. DSelect
  150. {
  151. Clean "auto"; // always|auto|prompt|never
  152. Options "-f";
  153. UpdateOptions "";
  154. PromptAfterUpdate "no";
  155. CheckDir "no";
  156. }
  157. DPkg
  158. {
  159. // Probably don't want to use force-downgrade..
  160. Options {"--force-overwrite";"--force-downgrade";}
  161. // Auto re-mounting of a readonly /usr
  162. Pre-Invoke {"mount -o remount,rw /usr";};
  163. Post-Invoke {"mount -o remount,ro /usr";};
  164. // Prevents daemons from getting cwd as something mountable (default)
  165. Run-Directory "/";
  166. // Build options for apt-get source --compile
  167. Build-Options "-b -uc";
  168. // Pre-configure all packages before they are installed using debconf.
  169. Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
  170. // Flush the contents of stdin before forking dpkg.
  171. FlushSTDIN "true";
  172. }
  173. /* Options you can set to see some debugging text They correspond to names
  174. of classes in the source code */
  175. Debug
  176. {
  177. pkgProblemResolver "false";
  178. pkgAcquire "false";
  179. pkgAcquire::Worker "false";
  180. pkgDPkgPM "false";
  181. pkgOrderList "false";
  182. pkgInitialize "false"; // This one will dump the configuration space
  183. NoLocking "false";
  184. Acquire::Ftp "false"; // Show ftp command traffic
  185. Acquire::Http "false"; // Show http command traffic
  186. aptcdrom "false"; // Show found package files
  187. }
  188. /* Whatever you do, do not use this configuration file!! Take out ONLY
  189. the portions you need! */
  190. This Is Not A Valid Config File