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 4cc5bc6b7c98fa0cb5718ff7c360bd62d9ca35cc..702b59f1881b56deefc97112ed99c2c6554d8ad4 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: acmeserver
 Section: admin
 Priority: optional
 Maintainer: Autistici/Inventati <debian@autistici.org>
-Build-Depends: debhelper (>=9), golang-any (>=1.11), dh-golang
+Build-Depends: debhelper-compat (= 12), golang-any (>= 1.11), dh-golang
 Standards-Version: 3.9.6
 
 Package: acmeserver
diff --git a/debian/rules b/debian/rules
index 59922f6fe970b448590b716ede10b8ce16906c36..b0788496acfde6320d372101047fae243ec41a29 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,8 +10,8 @@ export DH_GOLANG_EXCLUDES = vendor
 override_dh_auto_install:
 	dh_auto_install -- --no-source
 
-override_dh_systemd_enable:
-	dh_systemd_enable --no-enable
+override_dh_installsystemd:
+	dh_installsystemd --no-enable
 
-override_dh_systemd_start:
-	dh_systemd_start --no-start
+override_dh_installsystemd:
+	dh_installsystemd --no-start