Writing Portfiles: how to run custom scripts