On Thu, Sep 13, 2018 at 3:52 PM Scott Kitterman <deb...@kitterman.com> wrote:
> The problem is that this is installed for user appreciation and so we > should install it in the expected location (/etc/postfix). > Glad to learn that it is meant to be at exactly that location, didn't know that. I agree it shouldn't be a conffile. > > You should be able to install it somewhere temporary (sharedir is fine) > cat it into /etc/postfix in the postinst, and then remove it from the > sharedir. > Wouldn't in that case dpkg consider the file missing e.g. on dpkg --verify. How about installing it in sharedir and replacing the current paths file with a symlink as initially suggested. The symlink does not count as conffile and integrity would be ok. I'd just need to check in which order the transition of rm conffile and the link should take place in the postinst. Probably a snippet creating the /etc link after the ##debhelper## entry should do it. > I think that would solve the problem without surprising users about where > to find the file. > How about the former change plus the following: >From 43302c032cf17cce6a4c9627bf0fce0b8d128039 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt <christian.ehrha...@canonical.com> Date: Thu, 13 Sep 2018 16:50:21 +0200 Subject: [PATCH] make makedefs.out be reachable at the old location without being a conffile Signed-off-by: Christian Ehrhardt <christian.ehrha...@canonical.com> --- debian/postfix.postinst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/postfix.postinst b/debian/postfix.postinst index 92aeb1ee..0db3a698 100644 --- a/debian/postfix.postinst +++ b/debian/postfix.postinst @@ -649,3 +649,11 @@ if [ "$mailer" != "No configuration" ] || [ -f /etc/postfix/main.cf ]; then fi fi fi + +# we want it out of /etc to not be a conffile, but users might expect it there +# so leave a symlink at the expected place in /etc +if [ -f "/usr/share/postfix/makedefs.out" ]; then + if [ ! -e "/etc/postfix/makedefs.out" ]; then + ln -s /usr/share/postfix/makedefs.out /etc/postfix/makedefs.out + fi +fi -- 2.17.1