[Bug 280019] mail/postfix: post-install script not found when installed with 'pkg -r <rootdir>'

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 27 Jun 2024 16:39:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280019

            Bug ID: 280019
           Summary: mail/postfix: post-install script not found when
                    installed with 'pkg -r <rootdir>'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: otis@FreeBSD.org
          Reporter: me@svmhdvn.name
             Flags: maintainer-feedback?(otis@FreeBSD.org)
          Assignee: otis@FreeBSD.org

When installing postfix with 'pkg -r <rootdir> install', at the extraction
phase, I get the following error:

[1/1] Extracting postfix-3.9.0_1,1: 100%
/bin/sh: cannot open /usr/local/libexec/postfix/post-install: No such file or
directory

Presumably, this is because files/pkg-install.in takes the DAEMONDIR from
SUB_LIST and isn't dynamic to the chroot installation DESTDIR.

This is a problem because the post-install script fixes permissions, so without
this, the RC script fails to run because the /var/spool/postfix directory is
installed with the wrong permissions.

-- 
You are receiving this mail because:
You are the assignee for the bug.