Chapter C. Source packages (from old Packaging Manual)
dpkg source b
This will create the
(if appropriate) in the current directory.
does not clean the source tree first this must be done separately if it is required.
See also `Source packages as archives' on page
overall package building control script
is a script which invokes
) to build a signed source
and binary package upload.
It is usually invoked by hand from the top level of the built or unbuilt source directory. It may
be invoked with no arguments; useful arguments include:
Do not sign the
file or the source package
Invoke sign command instead of finding
command must behave just like
When root privilege is required, invoke the command root command. root
command should invoke its first argument as a command, from the
if necessary, and
pass its second and subsequent arguments to the command it calls. If no root command is
supplied then dpkg buildpackage will take no special action to gain root privilege, so that
for most packages it will have to be invoked as root to start with.
Two types of binary only build and upload see
generates binary package control files
This program is usually called from
(see `The Debianised source tree' on
) in the top level of the source tree.
This is usually done just before the files and directories in the temporary directory tree where
the package is being built have their permissions and ownerships set and the package is con
must be called after all the files which are to go into the package have
been placed in the temporary build directory, so that its calculation of the installed size of a
package is correct.
It is also necessary for
to be run after
so that the vari
able substitutions created by
For a package which generates only one binary package, and which builds it in
relative to the top of the source package, it is usually sufficient to call
Sources which build several binaries will typically need something like:
This is so that the control file which is produced has the right permissions