Running $software in a Jail is always a nice thing. Looking for a good howto I found this article in the Arch Linux wiki.
If you want the steps all in one shell script, try this one from adityamukhos gist page.