FreeBSD: follow CPACK_PACKAGE_FILE_NAME, if set

The underlying pkg library always produces a <name>-<version>.pkg
file, so to follow CPACK_PACKAGE_FILE_NAME we need to detect
that and rename appropriately.

FIXES #23034
62 jobs for !7447 with freebsd-cpack-update in 42 minutes and 44 seconds (queued for 3 seconds)
latest merge request