If you have ever come across the application Gringotts you either love it or hate it... personally I like the thing and think it's a great little password store etc. Just the sort of thing that you want to run on a Zaurus and it is farily popular in the pdaXrom feed.
[ Invalid Attachment ]
Here is what you need to do to get it to work on a Zaurus running OpenBSD with the current revisions of GTK etc.
Firstly build a few dependency packages and install them from the ports tree... namely...
x11/gtk+2
devel/popt
security/mhash
security/mcrypt
archivers/bzip2
next download and extract the source for libgringotts-1.2.1 and gringotts-1.2.8 from the main site..
http://devel.pluto.linux.it/projects/Gringotts(I use a build root called /usr/local/nonports for stuff that isn't in the ports tree)
Before configuring either application use the following commands since neither configure/make on either package seems to check /usr/local/include or lib
export CFLAGS=-I/usr/local/include
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
Now enter the libgringotts directory and run..
./configure
gmake install
This should be enough to successfully install the supporting library
Now download this patch...
http://freshmeat.net/projects/gringotts-shlomifand apply it whilst inside the gringotts directory with...
patch -p0 < gringotts-shlomif-patch-rev3.diff
This is necessary since the version of GTK that OpenBSD has no longer exports references that the original gringotts needed to link..
Configure and build with...
./configure --disable-env-check
gmake install
chmod -s `which gringotts`
If you don't disable the env check gringotts will segfault with a duff string that it passes to a putenv system call... I traced it that far but didn't feel it was significant enough to fix for my own use.. you may want to research further.
If you leave the root suid bit enabled gringotts will attempt to disable paging of its own code, this doesn't work correctly on OpenBSD and gringotts gives up.. if you are concerned about this leave your swapfile encryption enabled on OpenBSD
Note, you can now run gringotts as a regular user, attempting to run from root with fail with the SUID error since it believes it has the rights to disable paging of itself.
- Andy