[Bug 262294] mail/dma: cron job file installed in wrong path

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 02 Mar 2022 12:25:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262294

            Bug ID: 262294
           Summary: mail/dma: cron job file installed in wrong path
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: garga@FreeBSD.org
          Reporter: madpilot@FreeBSD.org
          Assignee: garga@FreeBSD.org
             Flags: maintainer-feedback?(garga@FreeBSD.org)

Created attachment 232202
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232202&action=edit
Fix

Hi,

I've noticed the cron job file added in commit ports f3c2313c5893 actually puts
the file in PREFIX/etc/dma/cron.d, where it is never read by cron.

Looks like the Makefile is using ETCDIR like it means PREFIX/etc, but it is
actually defined as:

ETCDIR?=    ${PREFIX}/etc/${PORTNAME}

I'm attaching a patch fixing this and putting the cron configuration file where
it should.

While here I also noticed the plist using absolute paths for file which are
instead really installed in ETCDIR, so I put the correct substitution there.

Patch works fine in poudriere for all supported releases and I'm using it on my
machines.

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