misc/freebsd: add isValidOrigin function to validate port origin