I agree this doesn't have to be a conffile. Maybe we should move the next one we generate to the sharedir we already have?
The following (untested) should do what is needed to also get rid of the old file. Let me know what you think about that >From bfa8b73bcf4d1127f534828581212b350cdf613b Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt <christian.ehrha...@canonical.com> Date: Thu, 13 Sep 2018 14:24:28 +0200 Subject: [PATCH] make makedefs.out no more be a conffile Signed-off-by: Christian Ehrhardt <christian.ehrha...@canonical.com> --- debian/changelog | 6 ++++++ debian/postfix.maintscript | 2 ++ debian/rules | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 debian/postfix.maintscript diff --git a/debian/changelog b/debian/changelog index cfbe1683..fd2c3b45 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +postfix (3.2.4-2) unstable; urgency=medium + + * make makedefs.out no more be a conffile Closes: #908545 + + -- Christian Ehrhardt <christian.ehrha...@canonical.com> Thu, 13 Sep 2018 14:23:22 +0200 + postfix (3.2.4-1) unstable; urgency=medium [Wietse Venema] diff --git a/debian/postfix.maintscript b/debian/postfix.maintscript new file mode 100644 index 00000000..7a81ec99 --- /dev/null +++ b/debian/postfix.maintscript @@ -0,0 +1,2 @@ +# moved to sharedir to not bother users with conffile prompts +rm_conffile /etc/postfix/makedefs.out 3.2.4-2~ postfix diff --git a/debian/rules b/debian/rules index 59ca3d7d..a6a3bb20 100755 --- a/debian/rules +++ b/debian/rules @@ -174,7 +174,7 @@ install-arch: build-arch ln -s ../sbin/sendmail $(bindir)/mailq ln -s ../sbin/sendmail ${base}/usr/lib/sendmail install -m 0755 conf/postfix-script conf/post-install $(confdir) - install -m 0644 conf/makedefs.out $(confdir) + install -m 0644 conf/makedefs.out $(sharedir) install -m 0644 debian/functions $(sharedir)/postinst.functions install -m 0644 conf/master.cf $(sharedir)/master.cf.dist install -m 0644 conf/main.cf.dist $(sharedir)/main.cf.dist -- 2.17.1