Firebird does have official ports for debian kFreeBSD and maybe it’s easier to use FreeBSD kernel from an Debian/Ubuntu background (apt-get)
News via tuxradar
Upcoming release of Debian, codenamed Squeeze, will be available in a juicy new FreeBSD flavour alongside the regular Linux version. Well, Debian GNU/kFreeBSD has been around for a while, but now it will be an official part of the distro, combining the titanium-strength FreeBSD kernel with the GNU C library
What is left to be done on the porting front ? maybe fixing the building on avr, hurd and m68k (sh4 is already done) but these are not yet official debian ports.
Also alpha cpu support seems to be dropped from debian release archiectures so no porting effort is needed
I took one list from 2007 and you can compare where we are now
Already ported:
i386
amd64
mipsel
sparc
powerpc
kfreebsd-i386
kfreebsd-amd64
arm
ia64
mips
s390 = IBM/S390
superH (sh4)
Need to be ported:
alpha is dead
m68k
hurd
avr
hppa
ps:
So you can install firebird on the phone (maemo is arm debian linux) or on the mainframe linux (ibm s390)