Building deb packages

Place to discuss Debian Linux and Debian based distributions
Post Reply
X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Building deb packages

Post by X11 » Wed Jul 06, 2005 11:32 pm

Well I have hacked util-linux so it works with my usual cryptoloop arguments... uhm thats a long story. Anyway I got the package with "apt-get source util-linux".

What I have is a directory that looks something like this (exactly like this)
x11@kintaro:~/dev/util-linux$ ls
util-linux-2.12p util-linux_2.12p-2ubuntu2.dsc
util-linux_2.12p-2ubuntu2.diff.gz util-linux_2.12p.orig.tar.gz

I want to know how to do 2 things.

Firstly I want to know how to build my modifications into a deb package for proper installation.

Secondly I want to know how to make a patch of my modifications that others can use on util-linux-2.12p.

Thank-you very much in advance.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Thu Jul 07, 2005 11:18 am

Here's a few links:
http://linuxdevices.com/articles/AT8047723203.html
http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html
http://www.debian.org/doc/devel-manuals#maint-guide

I would not create a deb package of just the patch, but of the entire package with your modifications and give it an different name (util-linux-exeleven, or util-linux-cryptoloop, etc). The source package for your new package would be identical to the original package exect it would also contain the patch of your differences and that patch would be added to the build scripts. You use the "diff" command to create a patch file. I am pretty sure I described how to do this somewhere else on these forums. A search for "diff" and "patch" should turn up something, or search google for it. It's not hard at all to create a path. I suppose if your changes just result in a new binary module of some sort that would be "in addition" to the files included in the "util-linux" binary package then you could create a separate binary package for it, otherwise create a whole new package. I have built deb packages in the past but I am not nearly as versed in them as I am RPM packages.

Post Reply