Introduction

Read how to ?create an empty package, if you don't know

We will now see how to make a package containing some files.

Be aware that for open source software, there has to be a copyright file and the source of the files (libreOffice files or tex files can be the source for a pdf)

files in /usr/share/doc

Every package that is on your debian computer has a directory in /usr/share/doc/

In order to create a package to put files in this directory, here

the equivs-control file must be like :

$ more package-trivial-1.0 
Package: package-trivial
Version: 1.0
Maintainer: a a <a@a.a>
Extra-Files: file.odt, file.pdf, README

The directory must contain those files :

$ ls
file.odt  file.pdf  package-trivial-1.0  README

files in other directories

In order to create a package to put files in this directory, here

the equivs-control file must be like :

$ more package-trivial-1.1 
Package: package-trivial
Version: 1.1
Maintainer: a a <a@a.a>
Extra-Files: file.odt, README
Files: file.sh /root/file.sh
 file.pdf /var/tmp/file.pdf

The directory must contain those files :

$ ls
file.odt  file.pdf  file.sh  package-trivial-1.1  README

What next

You can create a local repository

First read the excellent Introduction to Debian Packaging.

There is another interesting document on how to package for Debian

There is also an intresting package : packaging-tutorial by Lucas Nussbaum