[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Making installation packages


Ok I have the maintenance guide at hand. I have run dh-make. Where/How do I
define where my binary files should go when a user installs the package?
Should this be in the rules file? If so how do I define the globals used in
the rules file? Do I put my stuff into the install section of that file?
What would I do to specify that two particular files be put into specific
file locations? An example? How do I create new directories with my install?

Obviously I am a complete newbie at this and would appreciate some pointers
to the right direction.


-----Original Message-----
From: Mauro [mailto:lavaramano@gmail.com] 
Sent: Tuesday, 25 December 2007 3:52 AM
To: davids@evertech.com.au
Cc: debian-mentors@lists.debian.org
Subject: Re: Making installation packages

On Dec 24, 2007 8:50 AM, David Schulberg <davids@evertech.com.au> wrote:
> Hi,
> I have started working through an article about building packages on
> Linux (http://www.linux.com/articles/60383).
> All I want to achieve it to drop a couple of precompiled files into two
> different directories and the article doesn't seem to cover this simple
> aspect (as far as I can see).
> Can anyone point me to a beginner's guide to creating basic installation
> packages?
> Regards,
>  David Schulberg

Hello David,

the *most* basic thing you can do is to create a directory and then
inside that directory create the paths for the files you want to
install, ie:


then you have to do is "dpkg -b /home/you/package-0.1" and that will
(probably) build a .deb files which will install the files you had
inside package-0.1. Of course this is the *WRONG* way to make a debian
package, not even ubuntu or any other debian-based distro would upload
that package to their servers ;)
my recomendation is: read Debian New Maintainers' Guide [1], has all
the info you might want (and more) plus, you will know how to make a
debian package in the right way so you can eventually contribute to
the universal os ;).

oh btw, "ignore" this line on the first page of the guide
-> "This revision of this document has been updated for the packages
in Debian 2.2 (`potato') and 3.0 (`woody')."
works perfectly on debian lenny aswell :)

[1] http://www.debian.org/doc/maint-guide/

Version: 3.12
GCM/O d->dpu$ s-:- a-->a+++$ C+++
LU P+ L++ E W+++ N !o K w O !M !V
PS+ PE Y+ PGP t 5- X R tv++ b- DI D++ G+ e
h!>h-- r>r+++ y+

Reply to: