port-i386/4083 from Matthias Scheler <tron@lyssa.owl.de>, but vastly cleaned up as previously suggested by myself.