Subject: [PATCH] Move to dh-debputy to build without (fake)root

From: Jochen Sprickerhof <[email-masked]>
Date: Wed, 24 Jun 2026 00:04:16 +0200

This makes the package reproducible.
---
 debian/control          |  3 +--
 debian/debputy.manifest | 12 ++++++++++++
 debian/rules            |  7 -------
 3 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100644 debian/debputy.manifest

diff --git a/debian/control b/debian/control
index 05f2e47..a8b38cc 100644
--- a/debian/control
+++ b/debian/control
@@ -2,10 +2,9 @@ Source: procmail
 Section: mail
 Priority: optional
 Maintainer: Santiago Vila <[email-masked]>
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: debhelper-compat (= 13), dh-sequence-zz-debputy-rrr,
 Vcs-Git: https://salsa.debian.org/sanvila/procmail.git
 Vcs-Browser: https://salsa.debian.org/sanvila/procmail
-Rules-Requires-Root: binary-targets
 Standards-Version: 4.7.2
 Homepage: https://github.com/BuGlessRB/procmail
 
diff --git a/debian/debputy.manifest b/debian/debputy.manifest
new file mode 100644
index 0000000..bdaf5fc
--- /dev/null
+++ b/debian/debputy.manifest
@@ -0,0 +1,12 @@
+manifest-version: '0.1'
+packages:
+  procmail:
+    transformations:
+    - path-metadata:
+        path: usr/bin/procmail
+        group: mail
+        mode: "6755"
+    - path-metadata:
+        path: usr/bin/lockfile
+        group: mail
+        mode: "2755"
diff --git a/debian/rules b/debian/rules
index 23d76e6..92c3940 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,10 +30,3 @@ override_dh_installexamples:
 
 override_dh_compress:
 	dh_compress -XFAQ -XFEATURES -XREADME
-
-override_dh_fixperms:
-	dh_fixperms
-	chgrp mail debian/procmail/usr/bin/procmail
-	chgrp mail debian/procmail/usr/bin/lockfile
-	chmod 6755 debian/procmail/usr/bin/procmail
-	chmod 2755 debian/procmail/usr/bin/lockfile
-- 
2.53.0