[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: About creating .deb packages



also sprach Matthew Palmer <mpalmer@debian.org> [2004.12.30.0807 +0100]:
> > We would like to know which files are absolutely necessary for creating
> > .deb package (assuming u have all the source files needed).
> 
> Depends on how you want to create the .deb.  Bare minimum is ar, tar, gzip,
> and cp, more or less.

Unfortunately, ar(1) won't suffice as it cannot create BSD-style
archives. DEB files are BSD ar archives, not GNU ar. Thus, you need
dpkg-source. However, you can drop cp(1) since tar(1) (or gzip(1))
can do that too :)

> > We know about control file,changelog,rules,conffile, n scripts like
> > postrm,prerm,preinst,postinst.
> 
> None of those files (as provided in your average Debian source package) are
> absolutely required to create a .deb format package, although you'll have a
> hard time getting it into Debian without several of them.
 
You need a control file. Whether that is debian/control (standard
source package), or DEBIAN/control (binary package) does not matter
though. However, if you use debian/control, you also need
debian/changelog.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


Reply to: