Re: Package's configure script
On Sun, Dec 25, 2005 at 09:24:38AM -0500, Justin Pryzby wrote:
> On Sun, Dec 25, 2005 at 01:47:46PM +0100, gregor herrmann wrote:
>> On Sun, Dec 25, 2005 at 01:32:53PM +0100, Lionel Elie Mamane wrote:
>>> I can't find any mention of the configure script of packages in
>>> section 6 of the policy. Can somebody please point me to a
>>> reference of how and when it is run (what arguments, etc)?
>> AFAIK there is/can be a configure target in debian/rules.
>> If you use dh_make you will find it in the template.
> Are you talking about autotools ./configure, which creates the
> Makefile?
> Or, are you talking about ./debian/rules configure target,
Neither. Thanks for trying. I'm talking about the _maintainer_
script run at install / reconfigure time, which explains why I was
referring to section 6 of the Debian Policy specifically.
This policy section talks about preinst, postinst, prerm and
postrm. These are named ${PACKAGE}.{pre,post}{inst,rm}. But some
packages have a "config" script, named ${PACKAGE}.config . I find no
trace of this maintainer script in the Debian Policy.
For example:
master@capsaicin$ ls /var/lib/dpkg/info/dput.*
/var/lib/dpkg/info/dput.conffiles
/var/lib/dpkg/info/dput.config
/var/lib/dpkg/info/dput.list
/var/lib/dpkg/info/dput.postinst
/var/lib/dpkg/info/dput.postrm
/var/lib/dpkg/info/dput.prerm
/var/lib/dpkg/info/dput.templates
The .config script seems to usually contain debconf commands.
- Is it a policy violation to do something else there?
- _When_ is it run, with what arguments.
> Or are you talking about the "configure" argument to the
> maintscripts?
Nope, I'm not talking of the configure argument to the postinst. I'm
talking about the _other_ maintainer script.
--
Lionel
Reply to: