[Dovecot] libexecdir and localstatedir problem
Hello,
I'd really like to define the finale libexecdir and localstatedir through the configure-script. But the Makefiles are rewriting them. Not $libexecdir is used, but $pkglibexecdir. And $pkglibexecdir is always defined as $libexecdir/dovecot. But I don't want this trailing "/dovecot". Same with localstatedir. I want dovecot to use a certain path. But to this path, a "run/dovecot" is appended. I surely could build some patchfiles to change the Makefiles. But it would be easier, if you could add a new directive --pgklibexecdir to the configure-script. I don't know where the "run/dovecot" is defined, but it would also be very fine to set it in the configure-script (specially when upgrading to new releases) instead of defining them all in the dovecot.conf (base_dir, login_dir).
Regards Marten
On 22.4.2005, at 19:17, Marten Lehmann wrote:
I'd really like to define the finale libexecdir and localstatedir through the configure-script. But the Makefiles are rewriting them. Not $libexecdir is used, but $pkglibexecdir. And $pkglibexecdir is always defined as $libexecdir/dovecot. But I don't want this trailing "/dovecot". Same with localstatedir. I want dovecot to use a certain path. But to this path, a "run/dovecot" is appended. I surely could build some patchfiles to change the Makefiles. But it would be easier, if you could add a new directive --pgklibexecdir to the configure-script. I don't know where the "run/dovecot" is defined, but it would also be very fine to set it in the configure-script (specially when upgrading to new releases) instead of defining them all in the dovecot.conf (base_dir, login_dir).
I'll add --rundir (or is there something more standard?) which defaults to $localstatedir/run/dovecot. pkglibexecdir should be easy to override without patching makefiles:
make 'pkglibexecdir=$(libexecdir)'
I'll add --rundir (or is there something more standard?) which defaults to $localstatedir/run/dovecot.
Thanks!
pkglibexecdir should be easy to override without patching makefiles:
make 'pkglibexecdir=$(libexecdir)'
Good idea! I should have find this out on my own this as I'm defining DESTDIR exactly this way.
On Mon, 2005-04-25 at 12:30 +0200, Marten Lehmann wrote:
I'll add --rundir (or is there something more standard?) which defaults to $localstatedir/run/dovecot.
Will you add it in dovecot-1.0-stable? I'm just waiting impatiently for a new 1.0-release including --rundir.
Added --with-rundir (I don't think autoconf allows you to have --rundir). Will be in next nightly snapshot.
Hello,
pkglibexecdir should be easy to override without patching makefiles:
make 'pkglibexecdir=$(libexecdir)'
unfortunately, this didn't help. While DESTDIR is undefined and may be defined externally be setting env-variables, pkglibexecdir is defined within the makefiles. So even if I'm trying to change it externally, these values get overwritten by the later processed Makefile-definition. But it's more a cosmetic issue than a real problem. I'd simply rather have the binaries in PREFIX/bin than in PREFIX/libexec/dovecot.
Regards Marten
participants (2)
-
Marten Lehmann
-
Timo Sirainen