dpkg-gencontrol.1 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. .TH dpkg\-gencontrol 1 "2008-08-18" "Debian Project" "dpkg utilities"
  2. .SH NAME
  3. dpkg\-gencontrol \- generate Debian control files
  4. .
  5. .SH SYNOPSIS
  6. .B dpkg\-gencontrol
  7. .RI [ options ]
  8. .
  9. .SH DESCRIPTION
  10. .B dpkg\-gencontrol
  11. reads information from an unpacked Debian source tree and generates a
  12. binary package control file (which defaults to debian/tmp/DEBIAN/control);
  13. during this process it will simplify the relation fields.
  14. .sp
  15. Thus
  16. .IR Pre-Depends ", " Depends ", " Recommends " and " Suggests
  17. are simplified in this
  18. order by removing dependencies which are known to be true according to the
  19. stronger dependencies already parsed. It will also remove any self-dependency
  20. (in fact it will remove any dependency which evaluates to true given the
  21. current version of the package as installed). Logically it keeps the
  22. intersection of multiple dependencies on the same package. The order
  23. of dependencies is preserved as best as possible: if any dependency
  24. must be discarded due to another dependency appearing further
  25. in the field, the superseding dependency will take the place of the
  26. discarded one.
  27. .sp
  28. The other relation fields
  29. .RI ( Enhances ", " Conflicts ", " Breaks ", " Replaces " and " Provides )
  30. are also simplified individually by computing the union of the various
  31. dependencies when a package is listed multiple times in the field.
  32. .sp
  33. .B dpkg\-gencontrol
  34. also adds an entry for the binary package to
  35. .BR debian/files .
  36. .
  37. .SH OPTIONS
  38. .TP
  39. .BI \-v version
  40. Sets the version number of the binary package which will be generated.
  41. .TP
  42. .BI \-V name = value
  43. Set an output substitution variable. See \fBdeb\-substvars\fP(5) for
  44. discussion of output substitution.
  45. .TP
  46. .BI \-T substvarsfile
  47. Read substitution variables in
  48. .IR substvarsfile ;
  49. the default is
  50. .BR debian/substvars .
  51. This option can be used multiple times to read substitution variables from
  52. multiple files.
  53. .TP
  54. .BI \-D field = value
  55. Override or add an output control file field.
  56. .TP
  57. .BI \-U field
  58. Remove an output control file field.
  59. .TP
  60. .BI \-c controlfile
  61. Specifies the main source control file to read information from. The
  62. default is
  63. .BR debian/control .
  64. .TP
  65. .BI \-l changelogfile
  66. Specifies the change log file to read information from. The
  67. default is
  68. .BR debian/changelog .
  69. .TP
  70. .BI \-f fileslistfile
  71. Read or write the list of files to be uploaded here, rather than using
  72. .BR debian/files .
  73. .TP
  74. .BI \-F changelogformat
  75. Specifies the format of the changelog. By default the format is read
  76. from a special line near the bottom of the changelog or failing that
  77. defaults to the debian standard format.
  78. .TP
  79. .BI \-p package
  80. Generate information for the binary package
  81. .IR package .
  82. If the source control file lists only one binary package then this
  83. option may be omitted; otherwise it is essential to select which
  84. binary package's information to generate.
  85. .TP
  86. .BI \-n filename
  87. Assume the filename of the package will be
  88. .I filename
  89. instead of the normal package_version_arch.deb filename.
  90. .TP
  91. .BR \-is ", " \-ip ", " \-isp
  92. These options are ignored for compatibility with older versions of
  93. dpkg-dev but are now deprecated. Previously they were used to tell
  94. dpkg-gencontrol to include the Section and Priority fields in the
  95. control file. This is now the default behaviour. If you want to
  96. get the old behaviour you can use the
  97. .B \-U
  98. option to delete the fields from the control file.
  99. .TP
  100. .BI \-P packagebuilddir
  101. Tells
  102. .B dpkg\-source
  103. that the package is being built in
  104. .I packagebuilddir
  105. instead of
  106. .BR debian/tmp .
  107. This value is used to find the default value of the
  108. .B Installed\-Size
  109. substitution variable and control file field (using
  110. .BR du ),
  111. and for the default location of the output file.
  112. .TP
  113. .B \-O
  114. Print the control file to standard output, rather than to
  115. .B debian/tmp/DEBIAN/control
  116. (or
  117. .IB packagebuilddir /DEBIAN/control
  118. if
  119. .B \-P
  120. was used).
  121. .TP
  122. .BR \-h ", " \-\-help
  123. Show the usage message and exit.
  124. .TP
  125. .BR \-\-version
  126. Show the version and exit.
  127. .
  128. .SH FILES
  129. .TP
  130. .B debian/control
  131. The main source control information file, giving version-independent
  132. information about the source package and the binary packages it can
  133. produce.
  134. .TP
  135. .B debian/files
  136. The list of generated files which are part of the upload being
  137. prepared.
  138. .B dpkg\-gencontrol
  139. adds the presumed filenames of binary packages whose control files it
  140. generates here.
  141. .
  142. .SH AUTHORS
  143. Copyright \(co 1995-1996 Ian Jackson
  144. .br
  145. Copyright \(co 2000 Wichert Akkerman
  146. .br
  147. Copyright \(co 2007-2008 Rapha\[:e]l Hertzog
  148. .sp
  149. This is free software; see the GNU General Public Licence version 2 or later
  150. for copying conditions. There is NO WARRANTY.