I am currently trying to port CPM to Solaris 10 (x86) with alot of support from Roland Buerk roland@h-f-f.de. Here is the documentation about the necessary steps.
To fix /usr/local/bin/ncurses5-config from the ncurses package run
cd /usr/local/bin ln -s /usr/bin/bash
./configure --with-ncurses make make install
CFLAGS="-D_POSIX_PTHREAD_SEMANTICS" ./configure make make install
I used the hints from Linux from Scratch.
Starting in the cracklib source directory, assuming the wordlist is in ../cracklib-words-20080507.gz:
install -m 755 -d /usr/share/dict install -m 755 -d /lib/cracklib ./install-sh -m 644 ../cracklib-words-20080507.gz /usr/share/dict/cracklib-words.gz gunzip -v /usr/share/dict/cracklib-words.gz ln -s cracklib-words /usr/share/dict/words echo $(hostname) >> /usr/share/dict/cracklib-extra-words PATH=$PATH:/usr/local/sbin /usr/local/sbin/create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words
./configure --with-ncurses --with-cdk-dir=/usr/local --with-cracklib-dict=/usr/local/share/cracklib/pw_dict