post_upgrade() {
  local unit

  if (( $(vercmp "$2" '2.2.37-1') < 0)); then
    for unit in {dirmngr,gpg-agent{,-{browser,extra,ssh}}}.socket; do
      rm -f "/etc/systemd/user/sockets.target.wants/$unit"
    done
    printf "NOTE: GnuPG's systemd sockets are now enabled in the vendor location /usr/lib/systemd/user/!\n"
  fi
}
