Newer versions of pkg require different configuration settings. If you upgrade from an old version of pkg you might get the following error every time you use pkg:

pkg: PACKAGESITE in pkg.conf is deprecated. Please create a repository configuration file

then you need to remove the option PACKAGESITE from /usr/local/etc/pkg.conf and create the file /usr/local/etc/pkg/repos/FreeBSD.conf with the following contents:

FreeBSD: {
  url: "pkg+${ABI}/latest",
  mirror_type: "srv",
  enabled: yes