If you're finding FroYo a bit of a pain to root, XDA forum member RyanZA can fix that for you with his rooting app z4root.

z4root ia an Android application that has a single button that will root your device. The XDA dev claims that z4root should work on ALL Android devices, and has requested that you please leave a note if it works or doesn't work on your device.

Additionally, the XDA dev claims that the app should be 100% safe and that nothing on disk is changed besides the root binaries. If something should go wrong, a simple reboot should fix up any issue.

For more information and to download the apk, head on over to the application thread. Note that currently the app is only available as a sideloadable apk, but with further testing it will be available on the Market.