- First, let’s install the necessary tools:
# sudo apt-get install autotools-dev fakeroot dh-make build-essential
- Copy your source tree into a directory in /tmp or something else
# cp -r sources-0.1 /tmp
# cd /tmp/
sources-0.1
- Now let’s make the debian control files:
# dh_make --createorig
Don’t forget to iclude “–createorig” if you don’t have the orig source before.
- Edit the debian/control file and at least change the Maintainer and Description fields. There are a few other files you will probably want to edit.
- Then run the following: (don’t use sudo!!)
# dpkg-buildpackage -rfakeroot
- At last, if we look in /tmp (one directory up) we see
sources-0.1.deb
which ready . . 😀
Building debian (*.deb) package from tarball source (*.tar.gz)
24 Monday Mar 2008
Posted Linux Tutorial
in
mrG said:
thanks for the tutorial. One caveat, be sure your source directory is named with the “package-version” pattern.
abz89 said:
You’re Welcome!!
Oh yeah, i’m forgot . . .
thx, he he he
georges said:
i have successfully build my own .deb using your instructions. thanks
i have a source tree which is a mixture of binaries and source code, python etc…
i cannot do a .deb from this.
i used dh_make -e xxxx –creatorig
then used dpkg-buildpacakge -us -uc
all runs ok but I end up with a very small .deb file, diff, dsc, changes, and orig.tar.gz and .dsc and source changes file.
how can I create a .deb file from a mostly source tree (no make files,a nd mostly python source and binaries).
Can you help or tell me what I am doing wrong..
many thx.
abz89 said:
you’re welcome
owhh, so sorry . . .
i never tried it before,
can you give me the source file??
maybe i can help . .
~thx a lot~
Pirsey said:
I follow your blog for a long time and should tell that your posts are always valuable to readers.
Pingback: flirc blog» Blog Archive » Great Find to help with development
Pingback: diederik.nl » Blog Archive » Short update
fosstamil said:
can you create php.deb package with all extension???????????
pinkpantherprem said:
Hi abz,
I created deb file by following your blog. But my requirement is to add the service script. i.e Init.d script . How to add this while making the deb file. Please help me out
abz89 said:
Sorry for late reply,
not using debian base distro for a long time,
but maybe, just try insert command for copying your existing init script to post install script of your package
Thank you