dpkg-gencontrol.1 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. .TP
  52. .BI \-D field = value
  53. Override or add an output control file field.
  54. .TP
  55. .BI \-U field
  56. Remove an output control file field.
  57. .TP
  58. .BI \-c controlfile
  59. Specifies the main source control file to read information from. The
  60. default is
  61. .BR debian/control .
  62. .TP
  63. .BI \-l changelogfile
  64. Specifies the change log file to read information from. The
  65. default is
  66. .BR debian/changelog .
  67. .TP
  68. .BI \-f fileslistfile
  69. Read or write the list of files to be uploaded here, rather than using
  70. .BR debian/files .
  71. .TP
  72. .BI \-F changelogformat
  73. Specifies the format of the changelog. By default the format is read
  74. from a special line near the bottom of the changelog or failing that
  75. defaults to the debian standard format.
  76. .TP
  77. .BI \-p package
  78. Generate information for the binary package
  79. .IR package .
  80. If the source control file lists only one binary package then this
  81. option may be omitted; otherwise it is essential to select which
  82. binary package's information to generate.
  83. .TP
  84. .BI \-n filename
  85. Assume the filename of the package will be
  86. .I filename
  87. instead of the normal package_version_arch.deb filename.
  88. .TP
  89. .BR \-is ", " \-ip ", " \-isp
  90. These options are ignored for compatibility with older versions of
  91. dpkg-dev but are now deprecated. Previously they were used to tell
  92. dpkg-gencontrol to include the Section and Priority fields in the
  93. control file. This is now the default behaviour. If you want to
  94. get the old behaviour you can use the
  95. .B \-U
  96. option to delete the fields from the control file.
  97. .TP
  98. .BI \-P packagebuilddir
  99. Tells
  100. .B dpkg\-source
  101. that the package is being built in
  102. .I packagebuilddir
  103. instead of
  104. .BR debian/tmp .
  105. This value is used to find the default value of the
  106. .B Installed\-Size
  107. substitution variable and control file field (using
  108. .BR du ),
  109. and for the default location of the output file.
  110. .TP
  111. .B \-O
  112. Print the control file to standard output, rather than to
  113. .B debian/tmp/DEBIAN/control
  114. (or
  115. .IB packagebuilddir /DEBIAN/control
  116. if
  117. .B \-P
  118. was used).
  119. .TP
  120. .BR \-h ", " \-\-help
  121. Show the usage message and exit.
  122. .TP
  123. .BR \-\-version
  124. Show the version and exit.
  125. .
  126. .SH FILES
  127. .TP
  128. .B debian/control
  129. The main source control information file, giving version-independent
  130. information about the source package and the binary packages it can
  131. produce.
  132. .TP
  133. .B debian/files
  134. The list of generated files which are part of the upload being
  135. prepared.
  136. .B dpkg\-gencontrol
  137. adds the presumed filenames of binary packages whose control files it
  138. generates here.
  139. .
  140. .SH AUTHORS
  141. Copyright \(co 1995-1996 Ian Jackson
  142. .br
  143. Copyright \(co 2000 Wichert Akkerman
  144. .br
  145. Copyright \(co 2007-2008 Rapha\[:e]l Hertzog
  146. .sp
  147. This is free software; see the GNU General Public Licence version 2 or later
  148. for copying conditions. There is NO WARRANTY.