Differences between revisions 1 and 2
Revision 1 as of 2011-08-31 19:08:36
Size: 1285
Editor: HenriLeFoll
Comment: rewritten for equivs
Revision 2 as of 2011-08-31 19:56:42
Size: 1435
Editor: HenriLeFoll
Comment: adding open source information
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:

Be aware that for open source software, there has to be a copyright file and the source
of the files (pdf from doc or tex must be in the package)

Introduction

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

  • equivs-control
  • equivs-build
  • dpkg -i p*.deb

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 (pdf from doc or tex must be in the package)

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

  • README a text file
  • file.pdf a pdf file

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.pdf, README
$ ls
file.pdf  package-trivial-1.0  README

files in other directories

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

  • README a text file in /usr/share/doc/package-trivial
  • file.sh a text file in /root
  • file.pdf a pdf file in /var/tmp

the equivs-control file must be like :

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