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

Re: newbie packaging question



thx to all for the responses. I'm slowly making progress here. Could someone distinguish the configuration section and how that applies to debian packages for me (the eternal newbie).

I was under the impression that the configuration rules were what the package would run after it was loaded. However, when I did a fakeroot against my simplistic package, it actually ran the config rules which surprised me.

Can someone clarify. I'm looking to create the simple .deb package, then put in a 'post load' method which runs the binary i'm putting in the package.

Also (really really stupid question).. where do i get these sources for the packages you guys mentioned?

Eric

Bernhard R. Link wrote:

* Eric Winger <ewinger@keyww.com> [030807 21:54]:
> But in following the instructions in the doc it tells me to create some
> directories with my source in them, then use dh-make first. But dh_make
> keeps telling me it can't find my source package.

dh_make is optimized to create source packages that automatically create
the binary package. While it is an also be a nice (though not the
easiest) way to create a .deb out of some upstream binaries, you have
to understand debhelper a bit more than when using it for waht it was
made.
The easiest way is to start with an empty source, i.e. create an
emtpy directory containing a version number, like
mkdir blafasel-1.0
cd blafasel-1.0
dh_make -n -s -e you@email.host

which should create a debian/-subdirectory with everything needed in it.
In debian/rules just remove the calls to make, and you can already
create an (almost) empty ".deb", by calling "fakeroot ./debian/rules".
(or dpkg-buildpackage -rfakeroot -B, if you prefer this).
Then just add the proper commands in debian/rules to get the programs
installed to debian/tmp or debian/<name> depending on what DH_COMPAT
you have set and remove those files in debian/ you do not need, and
perhaps adopting the control and changelog (and the copyright-file
as it will contain GPL by default) would be a nice idea.

Hochachtungsvoll,
  Bernhard R. Link

--
Sendmail is like emacs: A nice operating system, but missing
an editor and a MTA.




Reply to: