I have a very odd build environment due to the way we are packaging up our software, in that we install our perl modules to a temporary location (~/build/Perl/zimbramon/lib), which we tar up the contents of and later extract to /opt/zimbra/zimbramon/lib. I've managed to work my way around most of the oddities this creates with perl modules using the various variables available to set things to be correct once my build is finished. However, with SA, I have a slight problem in that I need it to use the right library path for sa-learn, etc, once the build is complete. Now, I could simply sed the generated scripts, but I was hoping there's a variable I've missed that I can do this with.

My parameters to Makefile.PL are:

perl Makefile.PL PREFIX=/Users/build/p4/main/ThirdParty/Perl/zimbramon LIB=/Users/build/p4/main/ThirdParty/Perl/zimbramon/lib DATADIR=/opt/zimbra/conf/spamassassin CONFDIR=/etc/mail/spamassassin LOCALSTATEDIR=/var/spamassassin

The PREFIX/LIB of course because that's where I need it to install for the moment.

The other bit I noticed is that even though I set the LOCALSTATEDIR, that is not passed to spamc, like the results of the other options are:

./configure --prefix=/Users/build/p4/main/ThirdParty/Perl/zimbramon --sysconfdir=/etc/mail/spamassassin --datadir=/opt/zimbra/conf/spamassassin --enable-ssl=no


I'm guessing it's not an issue if spamc doesn't use it, but it does have a statedir option to configure:

--localstatedir=DIR

Thanks,
Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

Reply via email to