Initial script with setup and error handling; updates pkgsrc