Re: Cant build a simple package.

2005-01-06 Thread Rakotomandimby (R12y) Mihamina
On Wed, 2005-01-05 at 23:02 +0100, Frederic Peters wrote:
 Rakotomandimby (R12y) Mihamina wrote:
 
  I'm learning making debian packages.
 
 I think debian-mentors@ would be more approriate.

Uh. I do apologize.
-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)




Cant build a simple package.

2005-01-05 Thread Rakotomandimby (R12y) Mihamina
Hello,
I'm learning making debian packages.
I choosed to learn on a very simple software: minimalist.

Installing it from source is just about copying a single file
(minimalist.pl) into /usr/bin and then copying its conf file
into /etc/minimalist.conf

I get the error message you can see at the bottom of this post.
I dont understand it. Would you help me?

Especially where to tell the package builder not to use 
'debian/minimalist/DEBIAN/control' but 'debian/control' ?


In my rules file, I have:
=

#!/usr/bin/make -f

export DH_VERBOSE=1

configure:

build:

clean:

install:

dh_testdir
cp minimalist.pl $(CURDIR)/debian/minimalist

binary-indep:

binary-arch:

dh_builddeb

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install



The error output of the command 'dpkg-buildpackage -rfakeroot'
(wich is run at the top source directory):
===
[...]
debian/rules build
 debian/rules build
 fakeroot debian/rules binary
 fakeroot debian/rules binary
dpkg-deb: failed to open package info file
`debian/minimalist/DEBIAN/control' for reading: No such file or
directory
dpkg-deb: failed to open package info file
`debian/minimalist/DEBIAN/control' for reading: No such file or
directory
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1
dh_builddeb: command returned error code 512
make: *** [binary-arch] Error 1

-- 
ASPO Infogérance   http://aspo.rktmb.org/activites/infogerance
Unofficial FAQ fcolc   http://faq.fcolc.eu.org/
LUG sur Orléans et alentours.
Tél : 02 38 76 43 65 (France)




Re: Cant build a simple package.

2005-01-05 Thread Frederic Peters
Rakotomandimby (R12y) Mihamina wrote:

 I'm learning making debian packages.

I think debian-mentors@ would be more approriate.


 I get the error message you can see at the bottom of this post.
 I dont understand it. Would you help me?
 
 Especially where to tell the package builder not to use 
 'debian/minimalist/DEBIAN/control' but 'debian/control' ?

You don't want that.  You are looking for dh_gencontrol(1):

  DESCRIPTION
 dh_gencontrol is a debhelper program that is responsible for
 generating control files, and installing them into the DEBIAN
 directory with the proper permissions.


Note that it won't be enough; you should really look into existing
packages to see how it is done.


Regards,

Frederic