Re: (newbie from RH) How can i create a .deb package, or compile a source .deb package ?
On Sat, Jul 28, 2001 at 04:59:53PM -0700, Karsten M. Self wrote:
> on Sat, Jul 28, 2001 at 09:37:34PM +0200, Irger Armin (irger@fh-rosenheim.de) wrote:
> > how can i create a .deb package ?
>
> Short (and incomplete) answer:
>
> $ dpkg --build
>
> See the Debian Policy Manual (available from the Debian Documentation
> Project website or as a package) for more information on structure. You
> can also pick apart an existing package to see how it's put together.
> 'man dpkg' for more info.
>
> I'm not sure how the dependency information is built.
Some of it is specified manually in debian/control, but the rest comes
from tools like dpkg-shlibdeps (dh_shlibdeps, which is often used, is a
wrapper for it). That tool scans the contents of the package build
directory, checking what shared libraries are used, and uses the
contents of /var/lib/dpkg/info/*.shlibs to work out what the correct
library dependencies are.
If you see ${shlibs:Depends} in a control file, the intent is to use
that mechanism. Similarly, ${perl:Depends} and dh_perl do some automatic
computation of Perl dependencies.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: