With --with-crack=/path/to/cracklib in configure it is possible to use cracklib functions with php. By default cracklib is installed in emerge system so there should be no problems. Just adding craclib in DEPEND and --with-crack=/dir should work.
Wasn't that easy. :( Tried to compile it --with-crack but it needs packer.h header file that is not on my box.
The needed packer.h is included with sys-libs/cracklib-2.7-r6 and copying it into /usr/include seems have helped. The ebuild now passes configure. I'll get back if it compiles and cracklib functions work.
Ok. It seems to work! :) I suggest a new sys-libs/cracklib-2.7-r7 ebuild with the following line in src_install() function: cp cracklib/*.h ${D}/usr/include Maybe just the packer.h is enough but i think it's better be on the safe side since the files are small. Then a new dev-php/mod_php-4.2.3-r3 ebuild with the new craclib-2.7-r7 dependency, so we'll get the headers needed. And then --with-crack into configure options. No path is needed. I compiled mod_php-4.2.3-r2 with these small modifications and cracklib functions seem to work.
this problem should be resolved -- I think.. packer is in /usr/sbin
No... It needs packer.h, a header file(!), that comes with cracklib package but is not copied to /usr/include by default. It's all in comment #3.
ok... I committed a fix.
I'm bumping the version of this to -r7 as the submitted noted originally, for the new PHP eclass rollout (many people have the old cracklib installed with the /usr/include/packer.h, and I don't want a huge pile of bugs about it). I've put it in ~x86 for the moment, could you please QA it?