dpkg-source.1 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. .\" Hey, Emacs! This is an -*- nroff -*- source file.
  2. .\" Authors: Ian Jackson
  3. .TH DPKG\-SOURCE 1 "Januari 2000" "Debian Project" "Debian GNU/Linux manual"
  4. .SH NAME
  5. dpkg\-source, dpkg\-gencontrol, dpkg\-shlibdeps, dpkg\-genchanges,
  6. dpkg\-buildpackage, dpkg\-distaddfile, dpkg\-parsechangelog
  7. \- Debian source package tools
  8. .SH SYNOPSIS
  9. .B dpkg-source
  10. .BI "-x " filename .dsc
  11. .br
  12. .B dpkg-source -b
  13. .RI [ options "] " directory " [" orig-directory |'']
  14. .br
  15. .B dpkg-gencontrol
  16. .RI [ options ]
  17. .br
  18. .B dpkg-shlibdeps
  19. .IR options
  20. .br
  21. .B dpkg-genchanges
  22. .RI [ options ]
  23. .br
  24. .B dpkg-buildpackage
  25. .RI [ options ]
  26. .br
  27. .B dpkg-distaddfile
  28. .RI [ options ] " filename section priority"
  29. .br
  30. .B dpkg-parsechangelog
  31. .RI [ options ]
  32. .SH DESCRIPTION
  33. .B dpkg-source
  34. packs and unpacks Debian source archives.
  35. .B dpkg-gencontrol
  36. reads information from an unpacked Debian source tree and generates a
  37. binary package control file on standard output; it also adds an entry
  38. for the binary package to
  39. .BR debian/files .
  40. .B dpkg-shlibdeps
  41. calculates shared library dependencies for executables named in its
  42. arguments. The dependencies are added to the substitution
  43. variables file
  44. .B debian/substvars
  45. as variable names
  46. .BI shlibs: dependencyfield
  47. where
  48. .I dependencyfield
  49. is a dependency field name. Any other variables starting
  50. .I shlibs:
  51. are removed from the file.
  52. .B dpkg-shlibdeps
  53. will read shared library dependency information from
  54. .BR debian/shlibs.local ,
  55. .BR /etc/dpkg/shlibs.override ,
  56. the
  57. .B shlibs
  58. control area file of the package containing the file which
  59. .B objdump
  60. reports as satisfying the library dependency, or
  61. .BR /etc/dpkg/shlibs.default .
  62. The first match will be used. See the
  63. .I Debian packaging manual
  64. for details of the format of shared library dependency files.
  65. .B dpkg-genchanges
  66. reads information from an unpacked and built Debian source tree and
  67. from the files it has generated and generates a Debian upload control
  68. file
  69. .RB ( .changes " file)."
  70. .B dpkg-buildpackage
  71. is a control script which can be used to help automate the building of
  72. a package.
  73. .B dpkg-distaddfile
  74. adds an entry for a named file to
  75. .BR debian/files .
  76. .B dpkg-parsechangelog
  77. reads and parses the changelog of an unpacked Debian source tree and
  78. outputs the information in it to standard output in a machine-readable
  79. form.
  80. None of these commands allow multiple options to be combined into one,
  81. and they do not allow the value for an option to be specified in a
  82. separate argument.
  83. .SH COMMON OPTIONS
  84. Many of these programs share options; these are described here,
  85. together with the programs that accept them.
  86. .TP
  87. .BI -h
  88. Display the particular program's version and usage message, including
  89. a synopsis of the options it understands. This option is understood
  90. by all the source package tools.
  91. .TP
  92. .BI -v version
  93. In
  94. .BR dpkg-buildpackage ", " dpkg-genchanges " and " dpkg-parsechangelog
  95. this causes changelog information from all versions strictly later
  96. than
  97. .I version
  98. (which must appear in the changelog file) to be used.
  99. In
  100. .BR dpkg-gencontrol
  101. it sets the version number of the binary package which will be
  102. generated.
  103. .TP
  104. .BI -C changesdescription
  105. Read the description of the changes from the file
  106. .I changesdescription
  107. rather than using the information from the source tree's changelog
  108. file. This is understood by
  109. .BR dpkg-buildpackage " and " dpkg-genchanges .
  110. .TP
  111. .BI -m maintaineraddress
  112. Use
  113. .I maintaineraddress
  114. as the name and email address of the maintainer for this package,
  115. rather than using the information from the source tree's control.
  116. This is understood by
  117. .BR dpkg-buildpackage " and " dpkg-genchanges .
  118. .TP
  119. .BI -e maintaineraddress
  120. Use
  121. .I maintaineraddress
  122. as the name and email address of the maintainer for this upload,
  123. rather than using the information from the source tree's changelog.
  124. This is understood by
  125. .BR dpkg-buildpackage " and " dpkg-genchanges .
  126. .TP
  127. .BR -si ", " -sa ", " -sd
  128. These options control whether the original source archive is included
  129. in the upload generated by
  130. .BR dpkg-buildpackage " and " dpkg-genchanges
  131. if any source is being generated (ie,
  132. .BR -b " or " -B
  133. haven't been used).
  134. By default, or if
  135. .B -si
  136. is specified, the original source will be included if the version
  137. number ends in
  138. .BR -0 " or " -1 ,
  139. ie if the Debian revision part of the version number is
  140. .BR 0 " or " 1 .
  141. .B -sa
  142. forces the inclusion of the original source;
  143. .B -sd
  144. forces its exclusion and includes only the diff.
  145. .TP
  146. .BI -V name = value
  147. Set an output substitution variable.
  148. This option is understood by
  149. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  150. See below for a discussion of output substitution.
  151. .TP
  152. .BI -T substvarsfile
  153. Read (or, for
  154. .BR dpkg-shlibdeps ,
  155. write) substitution variables in
  156. .IR substvarsfile ;
  157. the default is
  158. .BR debian/substvars .
  159. This option is understood by
  160. .BR dpkg-source ", " dpkg-gencontrol ", " dpkg-shlibdeps " and " dpkg-genchanges .
  161. .TP
  162. .BI -D field = value
  163. Override or add an output control file field.
  164. This option is understood by
  165. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  166. .TP
  167. .BI -U field
  168. Remove an output control file field.
  169. This option is understood by
  170. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  171. .TP
  172. .BR -b | -B | -S
  173. For
  174. .BR dpkg-genchanges " and " dpkg-buildpackage
  175. .BR -b " and " -B
  176. specify that a binary-only build is taking place.
  177. .B -b
  178. indicates that no source files are to be built and/or distributed, and
  179. .B -B
  180. that no architecture-independent binary package files are to be
  181. distributed either.
  182. .B -S
  183. specifies that only the source should be uploaded and no binary packages
  184. need to be made. The distinction between
  185. .BR -b " and " -B
  186. is only used by
  187. .BR dpkg-buildpackage ;
  188. .B dpkg-genchanges
  189. just produces a
  190. .B .changes
  191. file for whatever files were produced by the
  192. .B binary-*
  193. target(s) of the package being built.
  194. .B -b
  195. tells
  196. .B dpkg-source
  197. to build a source package (rather than to extract one) - see below.
  198. .TP
  199. .BI -c controlfile
  200. Specifies the main source control file to read information from. The
  201. default is
  202. .BR debian/control .
  203. This option is understood by
  204. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  205. .TP
  206. .BI -l changelogfile
  207. Specifies the change log file to read information from. The
  208. default is
  209. .BR debian/changelog .
  210. This option is understood by
  211. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  212. .TP
  213. .BI -f fileslistfile
  214. Read or write the list of files to be uploaded here, rather than using
  215. .BR debian/files .
  216. This option is understood by
  217. .BR dpkg-gencontrol ", " dpkg-genchanges " and " dpkg-distaddfile .
  218. .TP
  219. .BI -F changelogformat
  220. Specifies the format of the changelog. By default the format is read
  221. from a special line near the bottom of the changelog (see the
  222. Debian packaging manual) or failing that defaults to
  223. .BR debian ,
  224. the standard format described in the
  225. .IR "Debian packaging manual" .
  226. This option is understood by
  227. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges .
  228. .SH DPKG-SOURCE OPTIONS
  229. When the common options
  230. .BR -c " and " -l
  231. are given with relative pathnames these are interpreted starting at
  232. the source tree's top level directory.
  233. .TP
  234. .B -x
  235. Extract a source package. One non-option argument should be supplied,
  236. the name of the Debian source control file
  237. .RB ( .dsc ).
  238. No options are useful with
  239. .BR "dpkg-source -x" .
  240. .B dpkg-source
  241. will read the names of the other file(s) making up the source package
  242. from the control file; they are assumed to be in the same directory as
  243. the
  244. .BR .dsc .
  245. The files in the extracted package will have their permissions and
  246. ownerships set to those which would have been expected if the files
  247. and directories had simply been created - directories and executable
  248. files will be 0777 and plain files will be 0666, both modified by the
  249. extractors' umask; if the parent directory is setgid then the
  250. extracted directories will be too, and all the files and directories
  251. will inherit its group ownership.
  252. .TP
  253. .B -b
  254. Build: pack up a source tree. One or two non-option arguments should
  255. be supplied. The first is taken as the name of the directory
  256. containing the unpacked source tree. If a second argument is supplied
  257. it should be the name of the original source directory or tarfile or
  258. the empty string if the package is a Debian-specific one and so has no
  259. Debianisation diffs. If no second argument is supplied then
  260. .B dpkg-source
  261. will look for the original source tarfile
  262. .IB package _ upstream-version .orig.tar.gz
  263. or the original source directory
  264. .IB directory .orig
  265. or the empty string (no original source, and so no diff) depending on
  266. the arguments.
  267. .TP
  268. .B -i[<regexp>]
  269. You may specify a perl regular expression to match files you want
  270. filtered out of the list of files for the diff. (This list is
  271. generated by a find command.) \fB-i\fR by itself enables the option,
  272. with a default that will filter out CVS, RCS and libtool .deps
  273. subdirectories, and all files within them, as well as ~ suffixed
  274. backup files and DEAD_JOE's.
  275. This is very helpful in cutting out extraneous files that get included
  276. in the .diff.gz, (eg: "debian/BUGS_TODO/*" or "debian/RCS/*,v"). For
  277. instance, if you maintain a package that you track via remote CVS,
  278. where you don't have access permissions for commiting the debian
  279. control files and making tags for \fIcvs-buildpackage(1)\fR, it is
  280. necessary to perform an extra checkout/update into a directory you
  281. keep pristine, to generate the .orig.tar.gz from. That directory will
  282. have CVS/Entries files in it that will contain timestamps that differ
  283. from the ones in your working directory, thus causing them to be
  284. unnecessarily included in every .diff.gz, unless you use the \fB-i\fR
  285. switch.
  286. .TP
  287. .BR -sa , -sp , -su , -sk , -sA , -sP , -sU , -sK , -ss " with " -b
  288. If
  289. .BR -sk " or " -sp
  290. is specified
  291. .B dpkg-source
  292. expects the original source as a tarfile, by default
  293. .IB package _ upstream-version .orig.tar.gz\fR.
  294. It will leave this original source in place as a tarfile, or copy it
  295. to the current directory if it isn't already there
  296. If
  297. .B -sp
  298. is used rather than
  299. .B -sk
  300. it will remove it again afterwards.
  301. If
  302. .BR -su " or " -sr
  303. is specified the original source is expected as a directory, by
  304. default
  305. .IB package - upstream-version .orig
  306. and
  307. .B dpkg-source
  308. will create a new original source archive from it. If
  309. .B -sr
  310. is used
  311. .B dpkg-source will remove that directory after it has been used.
  312. If
  313. .B -ss
  314. is specified
  315. .B dpkg-source
  316. will expect that the original source is available both as a directory
  317. and as a tarfile. If will use the directory to create the diff, but
  318. the tarfile to create the
  319. .BR .dsc .
  320. This option must be used with care - if the directory and tarfile do
  321. not match a bad source archive will be generated.
  322. If
  323. .B -sn
  324. is specified
  325. .B dpkg-source
  326. will not look for any original source, and will not generate a diff.
  327. The second argument, if supplied, must be the empty string. This is
  328. used for Debian-specific packages which do not have a separate
  329. upstream source and therefore have no debianisation diffs.
  330. If
  331. .BR -sa " or " -sA
  332. is specified
  333. .B dpkg-source
  334. will look for the original source archive as a tarfile or as a
  335. directory - the second argument, if any, may be either, or the empty
  336. string (this is equivalent to using
  337. .BR -sn ).
  338. If a tarfile is found it will unpack it to create the diff and remove
  339. it afterwards (this is equivalent to
  340. .BR -sp );
  341. if a directory is found it will pack it to create the original source
  342. and remove it afterwards (this is equivalent to
  343. .BR -sr );
  344. if neither is found it will assume that the package has no
  345. debianisation diffs, only a straightforward source archive (this is
  346. equivalent to
  347. .BR -sn ).
  348. If both are found then dpkg-source will ignore the directory,
  349. overwriting it, if
  350. .B -sA
  351. was specified (this is equivalent to
  352. .BR -sP )
  353. or raise an error if
  354. .B -sa
  355. was specified.
  356. .B -sA
  357. is the default.
  358. .BR -sa ", " -sp ", " -sk ", " -su " and " -sr
  359. will not overwrite existing tarfiles or directories. If this is
  360. desired then
  361. .BR -sA ", " -sP ", " -sK ", " -su " and " -sR
  362. should be used instead.
  363. .TP
  364. .BR -sp , -su , -sn " with " -x
  365. In all cases any existing original source tree will be removed.
  366. If
  367. .B -sp
  368. is used when extracting then the original source (if any) will be left
  369. as a tarfile. If it is not already located in the current directory
  370. or if an existing but different file is there it will be copied there.
  371. This is the default.
  372. .B -su
  373. unpacks the original source tree.
  374. .B -sn
  375. ensures that the original source is neither copied to the current
  376. directory nor unpacked. Any original source tree that was in the
  377. current directory is still removed.
  378. .SH DPKG-GENCONTROL OPTIONS
  379. .B dpkg-gencontrol
  380. does not take any non-option arguments.
  381. .TP
  382. .BI -p package
  383. Generate information for the binary package
  384. .IR package .
  385. If the source control file lists only one binary package then this
  386. option may be omitted; otherwise it is essential to select which
  387. binary package's information to generate.
  388. .TP
  389. .BR -is ", " -ip ", " -isp
  390. Include the
  391. .BR Section " and " Priority
  392. fields for this package from the main source control file in the
  393. binary package control file being generated. Usually this information
  394. is not included here, but only in the
  395. .B .changes
  396. file.
  397. .B -isp
  398. includes both fields,
  399. .BR -is " only the " Section " and " -ip " only the " Priority .
  400. .TP
  401. .BI -P packagebuilddir
  402. Tells
  403. .B dpkg-source
  404. that the package is being built in
  405. .I packagebuilddir
  406. instead of
  407. .BR debian/tmp .
  408. This value is used to find the default value of the
  409. .B Installed-Size
  410. substitution variable and control file field (using
  411. .BR du ),
  412. and for the default location of the output file.
  413. .TP
  414. .B -O
  415. Causes the control file to be printed to standard output, rather than
  416. to
  417. .B debian/tmp/DEBIAN/control
  418. (or
  419. .IB packagebuilddir /DEBIAN/control
  420. if
  421. .B -P
  422. was used).
  423. .SH DPKG-SHLIBDEPS OPTIONS
  424. .B dpkg-shlibdeps
  425. interprets non-option arguments as executable names, just as if they'd
  426. been supplied as
  427. .BI -e executable\fR.
  428. .TP
  429. .BI -e executable
  430. Include dependencies appropriate for the shared libraries required by
  431. .IR executable .
  432. .TP
  433. .BI -d dependencyfield
  434. Add dependencies to be added to the control file dependency field
  435. .IR dependencyfield .
  436. (The dependencies for this field are placed in the variable
  437. .BI shlibs: dependencyfield\fR.)
  438. The
  439. .BI -d dependencyfield
  440. option takes effect for all executables after the option, until the
  441. next
  442. .BI -d dependencyfield\fR.
  443. The default
  444. .I dependencyfield
  445. is
  446. .BR Depends .
  447. If the same dependency entry (or set of alternatives) appears in more
  448. than one of the recognised dependency field names
  449. .BR Pre-Depends ", " Depends ", " Recommends ", " Enhances " or " Suggests
  450. then
  451. .B dpkg-shlibdeps
  452. will automatically remove the dependency from all fields except the
  453. one representing the most important dependencies.
  454. .TP
  455. .BI -p varnameprefix
  456. Causes substitution variables to start with
  457. .IB varnameprefix :
  458. instead of
  459. .BR shlib: .
  460. Likewise, any existing substitution variables starting with
  461. .IB varnameprefix :
  462. (rather than
  463. .BR shlib: )
  464. are removed from the the substitution variables file.
  465. .TP
  466. .BI -L localshlibsfile
  467. Causes
  468. .B dpkg-shlibs
  469. to read overriding shared library dependency information from
  470. .I localshlibsfile
  471. instead of
  472. .BR debian/shlibs.local .
  473. .TP
  474. .B -O
  475. Causes the substitution variable settings to be printed to standard
  476. output, rather than being added to the substitution variables file
  477. .RB ( debian/substvars
  478. by default).
  479. .SH DPKG-GENCHANGES OPTIONS
  480. .B dpkg-genchanges
  481. does not take any non-option arguments.
  482. .TP
  483. .BI -u uploadfilesdir
  484. Look for the files to be uploaded in
  485. .I uploadfilesdir
  486. rather than
  487. .B ..
  488. .RB ( dpkg-genchanges
  489. needs to find these files so that it can include their sizes and
  490. checksums in the
  491. .B .changes
  492. file).
  493. .TP
  494. .B -q
  495. Usually
  496. .B dpkg-genchanges
  497. will produce informative messages on standard error, for example about
  498. how many of the package's source files are being uploaded.
  499. .B -q
  500. suppresses these messages.
  501. .SH DPKG-BUILDPACKAGE OPTIONS
  502. .B dpkg-buildpackage
  503. does not take any non-option arguments.
  504. .TP
  505. .BI -k key-id
  506. Specify a key-ID to use when signing packages.
  507. .TP
  508. .BI -r gain-root-command
  509. When
  510. .B dpkg-buildpackage
  511. needs to execute part of the build process as root, it prefixes the
  512. command it executes with
  513. .I gain-root-command
  514. if one has been specified.
  515. .I gain-root-command
  516. should be the name of a program on the
  517. .B PATH
  518. and will get as arguments the name of the real command to run and the
  519. arguments it should take.
  520. .I gain-root-command
  521. should not contain spaces or any other shell metacharacters.
  522. .\" what happens, if it contains spaces? (hs)
  523. .I gain-root-command
  524. might typically be
  525. .BR sudo ", " super " or " really .
  526. .B su
  527. is not suitable, since it requires a
  528. .B -c
  529. option to run a command and even then it can only invoke the user's
  530. shell with
  531. .B -c
  532. instead of passing arguments individually to the command to be run.
  533. .TP
  534. .BI -p sign-command
  535. When
  536. .B dpkg-buildpackage
  537. needs to execute GPG or PGP to sign a source control
  538. .RB ( .dsc )
  539. file or a
  540. .B .changes
  541. file it will run
  542. .I sign-command
  543. (searching the
  544. .B PATH
  545. if necessary) instead of
  546. .BR pgp .
  547. .I sign-command
  548. will get all the arguments that
  549. .B pgp
  550. would have gotten. If
  551. .I sign-command
  552. takes its arguments in GPG rather than PGP style, you should give
  553. the
  554. .B -sgpg
  555. option.
  556. .I sign-command
  557. should not contain spaces or any other shell metacharacters.
  558. .TP
  559. .B -tc
  560. Clean the source tree (using
  561. .I gain-root-command
  562. .BR "debian/rules clean" )
  563. after the package has been built.
  564. .TP
  565. .BR -us ", " -uc
  566. Do not sign the source package or the changelog, respectively.
  567. .TP
  568. .BI -a architecture
  569. Specify the Debian architecture we build for. The architecture of the
  570. machine we build on is determined automatically, and is also the default
  571. for the host machine.
  572. .TP
  573. .B -i[<regexp>]
  574. Passed unchanged to
  575. .B dpkg-source
  576. .TP
  577. .SH DPKG-DISTADDFILE ARGUMENTS
  578. .B dpkg-distaddfile
  579. does not take any non-common options. It takes three non-option
  580. arguments, the filename and the section and priority for the
  581. .B .changes
  582. file.
  583. The filename should be specified relative to the directory where
  584. .B dpkg-genchanges
  585. will expect to find the files, usually
  586. .BR .. ,
  587. rather than being a pathname relative to the current directory when
  588. .B dpkg-distaddfile
  589. is run.
  590. .SH DPKG-PARSECHANGELOG ARGUMENTS
  591. .B dpkg-parsechangelog
  592. does not take any non-common options or non-option arguments.
  593. .SH VARIABLE SUBSTITUTION
  594. Before
  595. .BR dpkg-source ", " dpkg-gencontrol " and " dpkg-genchanges
  596. write their control information (to the source control file
  597. .B .dsc
  598. for
  599. .B dpkg-source
  600. and to standard output for
  601. .BR dpkg-gencontrol " and " dpkg-genchanges )
  602. they perform some variable substitutions on the output file.
  603. A variable substitution has the form
  604. .BI ${ variable-name }\fR.
  605. Variable names consist of alphanumerics, hyphens and colons and start
  606. with an alphanumeric. Variable substitutions are performed repeatedly
  607. until none are left; the full text of the field after the substitution
  608. is rescanned to look for more substitutions.
  609. After all the substitutions have been done each occurence of the
  610. string
  611. .B ${}
  612. (which is not a legal substitution) is replaced with a
  613. .B $
  614. sign.
  615. Variables can be set using the
  616. .B -V
  617. common option. They can be also specified in the file
  618. .B debian/substvars
  619. (or whatever other file is specified using the
  620. .B -T
  621. option). This file consists of lines of the form
  622. .IB name = value\fR.
  623. Trailing whitespace on each line, blank lines, and
  624. lines starting with a
  625. .B #
  626. symbol (comments) are ignored.
  627. Additionally, the following standard variables are available:
  628. .TP
  629. .BI Arch
  630. The current build architecture (from
  631. .BR "dpkg \-\-print-architecture" ).
  632. .TP
  633. .B Source-Version
  634. The source package version (from the changelog file).
  635. .TP
  636. .B Installed-Size
  637. The total size of the package's installed files. This value is copied
  638. into the corresponding control file field; setting it will modify the
  639. value of that field. If this variable isn't set
  640. .B dpkg-gencontrol
  641. will use
  642. .B du -k debian/tmp
  643. to find the default value.
  644. .TP
  645. .B Extra-Size
  646. Additional disk space used when the package is installed. If this
  647. variable is set its value is added to that of the
  648. .B Installed-Size
  649. variable (whether set explicitly or using the default value) before it
  650. is copied into the
  651. .B Installed-Size
  652. control file field.
  653. .TP
  654. .BI F: fieldname
  655. The value of the output field
  656. .IR fieldname
  657. (which must be given in the canonical capitalisation). Setting these
  658. variables has no effect other than on places where they are expanded
  659. explicitly.
  660. .TP
  661. .B Format
  662. The
  663. .B .changes
  664. file format version generated by this version of the source packaging
  665. scripts. If you set this variable the contents of the
  666. .B Format
  667. field in the
  668. .B .changes
  669. file will change too.
  670. .TP
  671. .BR Newline ", " Space ", " Tab
  672. These variables each hold the corresponding character.
  673. .TP
  674. .BI shlibs: dependencyfield
  675. Variable settings with names of this form are generated by
  676. .B dpkg-shlibdeps
  677. - see above.
  678. .LP
  679. If a variable is referred to but not defined it generates a warning
  680. and an empty value is assumed.
  681. .SH FILES
  682. .TP
  683. .B debian/control
  684. The main source control information file, giving version-independent
  685. information about the source package and the binary packages it can
  686. produce.
  687. .TP
  688. .B debian/changelog
  689. The changelog file, used to obtain version-dependent information about
  690. the source package, such as the urgency and distribution of an upload,
  691. the changes made since a particular release, and the source version
  692. number itself.
  693. .TP
  694. .B debian/files
  695. The list of generated files which are part of the upload being
  696. prepared.
  697. .B dpkg-gencontrol
  698. adds the presumed filenames of binary packages whose control files it
  699. generates here;
  700. .B dpkg-distaddfile
  701. can be used to add additional files.
  702. .B dpkg-genchanges
  703. reads the data here when producing a
  704. .B .changes
  705. file.
  706. .TP
  707. .B debian/substvars
  708. List of substitution variables and values.
  709. .TP
  710. .B debian/shlibs.local
  711. Package-local overriding shared library dependency information.
  712. .TP
  713. .B /etc/dpkg/shlibs.override
  714. Per-system overriding shared library dependency information.
  715. .TP
  716. .B /etc/dpkg/shlibs.default
  717. Per-system default shared library dependency information.
  718. .SH BUGS
  719. The point at which field overriding occurs compared to certain
  720. standard output field settings is rather confused.
  721. The binary package entries in the
  722. .B debian/files
  723. file will be passed through variable substitution twice. This should
  724. not matter, since
  725. .BR $ ", " { " and " }
  726. are not legal in package names or version numbers.
  727. It should be possible to specify spaces and shell metacharacters in
  728. and initial arguments for
  729. .IR gain-root-command " and " sign-command .
  730. .SH SEE ALSO
  731. .IR "Debian packaging manual" ,
  732. .br
  733. .IR "Debian policy manual" ,
  734. .br
  735. .BR dpkg\-deb (1),
  736. .BR dpkg (8),
  737. .BR dselect (8),
  738. .BR gpg (1),
  739. .BR pgp (1).
  740. .SH AUTHOR
  741. The utilities and this manpage were written by Ian Jackson.
  742. .SH COPYRIGHT
  743. Copyright (C) 1995-1996 Ian Jackson
  744. .br
  745. Copyright (C) 2000 Wichert Akkerman
  746. .br
  747. This is free software; see the GNU General Public Licence version 2 or later
  748. for copying conditions. There is NO WARRANTY. See
  749. .B /usr/share/doc/dpkg/copyright
  750. and
  751. .B /usr/share/common-licenses/GPL
  752. for details.