diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2..0000000000000000000000000000000000000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-10
diff --git a/debian/control b/debian/control
index 00a3390a14bb41dcc3c597cc8a3d19e9a4fa376b..a54bb75d7d28e7bd6fc4ab53d07a3f82c0999eac 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,12 @@ Source: accountserver
 Section: admin
 Priority: optional
 Maintainer: Autistici/Inventati <debian@autistici.org>
-Build-Depends: debhelper (>=9), golang-any (>=1.14), dh-golang, default-jre-headless
+Build-Depends: debhelper-compat (= 12), golang-any (>= 1.14), dh-golang, default-jre-headless
 Standards-Version: 3.9.6
 
 Package: accountserver
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
+Built-Using: ${misc:Built-Using}
 Description: Account metadata server.
  Privileged daemon that manages user accounts.
-
diff --git a/debian/rules b/debian/rules
index 7da76d1b2a9a4246f2c65ce74f127b01fe570fdc..e0df100b4badd383bc2bbf1da728120c7175c8d8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,14 +9,13 @@ export DH_GOLANG_INSTALL_ALL := 1
 
 
 %:
-	dh $@ --with systemd --with golang --buildsystem golang
+	dh $@ --with golang --buildsystem golang
 
 override_dh_auto_install:
 	dh_auto_install -- --no-source
 
-override_dh_systemd_enable:
-	dh_systemd_enable --no-enable
-
-override_dh_systemd_start:
-	dh_systemd_start --no-start
+override_dh_installsystemd:
+	dh_installsystemd --no-enable
 
+override_dh_installsystemd:
+	dh_installsystemd --no-start