dpkg-gencontrol.1 4.2 KB

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