post_install() {
  # Enable socket by default
  systemctl --global enable p11-kit-server.socket
}

post_upgrade() {
  if (( $(vercmp $2 0.23.13-1) < 0)); then
    systemctl --global enable p11-kit-server.socket
  fi
}

pre_remove() {
  systemctl --global disable p11-kit-server.socket
}
