Basic debian package creation
This is a very summarized guide on how to build debian packages
Requirements
Wether the nature of the software you're going to package (if compiling is needed you will need gcc, or if is perl based you may need some perl modules), the debian packaging systems required the following:
- build-essentials
- devscripts
- fakeroot
- gcc
- debhelper
- lintian
Building from ready sources
On this case we are going to supose that the devloper already provided you the needed debian configuraiton to build the package (i.e. the packages already exists but you need another architecture which is not provided upstream).
In this cas you will need to have:
package.dsc
filepackage.orig.tar.gz
which should containe the upstream sources without any modificaitonpackage.debian.tar.xz
which containes the debian setup for packaging- Change your working direcctory to the system sources directory:
/usr/local/src/
- Uncommpress all the files (for
xz
tarballs use sijmplytar xvf
to uncompress) - Move if needed
debian
directory inside the package source root directory - Enter the sources directory
- Run:
# debuild -us -uc
First will check if you have all needed dependencies to build/compile/install the software, if not it will report you the needed packges. If everything goes fine will start building the packages which will end stored on/usr/local/src/