Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Mar 2022 12:25:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 262294] mail/dma: cron job file installed in wrong path
Message-ID:  <bug-262294-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262294

            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=3D232202&action=
=3Dedit
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?=3D    ${PREFIX}/etc/${PORTNAME}

I'm attaching a patch fixing this and putting the cron configuration file w=
here
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 o=
n my
machines.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262294-7788>