Making a deb package

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Thu Feb 16 16:37:26 UTC 2012


On Thu, Feb 16, 2012 at 11:25:24AM -0500, William Muriithi wrote:
> I have been able to package software into rpm in the past but have not
> had the opportunity to package source code into deb package format
> till this morning. I am wondering if anybody here has forward a
> reliable documentation to assist
> 
> My hope is to get apache version 2.2.22 that I can use to update the
> distribution provided apache, which is a little behind.  I couple of
> things I have noticed.
> 
> On RedHat, I usually download a source RPM and then uses the source
> spec file as a starting point.  I am having problem finding an
> equivalent file do the deb package.  I believe its called control file
> on Debian based system.
> 
> Anyone done this before and would know where I could locate it?

Look for the .orig.tar.gz, .diff.gz and .dsc files.  That's a debian
source package.  Newer packages in version 3 format might have a
.debian.tar.gz instead of the diff.gz file.

So for apache look at:

http://ftp.us.debian.org/debian/pool/main/a/apache2/

They even have 2.2.22 packages there already.

http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2_2.2.22-1.dsc
http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2_2.2.22-1.debian.tar.gz
http://ftp.us.debian.org/debian/pool/main/a/apache2/apache2_2.2.22.orig.tar.gz

Download those, run dpkg-source -x apache2_2.2.22-1.dsc, and you will
have one ready to build debian source directory.

dpkg-buildpackage -us -uc -b generally does it.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list