Debian Packaging Handbook/ Intro

Introduction

FIXME: Include Copyright

About this book

Who is this book for?

This book is for those who want either to make or to allow others to make good Debian packages. Among them, we target:

What is a debian package?

A debian package is essentially an archive of software that ends with a .deb designation. This software archive contains source code and other information allowing you to install the software on your debian linux system.

How to choose what to package

There are quite a few things you need to take into consideration when choosing software to package for debian. Some of these considerations include:

What to do before packaging

Sending an ITP

An ITP is an Intent To Package. This is the type of bug you send to the debian bug tracking system (debian BTS). An ITP report requires you to submit a package description along with copyright and URL for the software you wish to package for debian. Copyright information is very important, if it the copyright is too restrictive, the software connected to that copyright might not be able to be packaged for debian.

Using reportbug

You can install the reportbug utility to easily submit ITP bugs to the Work Needed Prospective Packages system (WNPP)

$ aptitude install reportbug
$ reportbug --email username@domain.tld wnpp
Using 'Your Name <username@domain.tld>' as your from address.
Getting status for wnpp...
Querying Debian bug tracking system for reports on wnpp
(Use ? for help at prompts.)

Then reportbug asks you for the different informations needed to generate a proper ITP bug. You should pay attention to the buglist that reportbug presents to you, in order to avoid sending duplicate bugs for the same package.

Via e-mail

It is also possible to submit ITP bugs to the WNPP via email. In this case, it is up to you to consult the WNPP buglist (http://www.debian.org/devel/wnpp/index.en.html) in order to prevent a second report for the same package.

The format of the submission should look like this:

To: submit@bugs.debian.org
Subject: ITP: [package name] -- [short package description]

Package: wnpp
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org

* Package name    : [desired package name]
  Version         : [version of the software you are packaging]
  Upstream Author : [main author of the upstream software]
* URL             : [where tha package sources can be downloaded from]
* License         : [licence under which the software can be distributed]
  Programming Lang: [main programming language used in the sources]
  Description     : [short package description]

[long package description]