Making a deb package

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


On Thu, Feb 16, 2012 at 11:37:26AM -0500, Lennart Sorensen wrote:
> 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.

It appears that you can build that package on squeeze, if you install
debhelper from squeeze-backports.  It fails to build in a weird way
using debhelper 8.0.0 from squeeze, even though it doesn't list a higher
debhelper version as a requirement.

Also a 'set -e \' in the debian/rules seems like it needs to be 'set -e;
\' on some shells.  Not sure how that ever worked.

-- 
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