Logwatch Configuration Override File

Mike Cappella mike at cappella.us
Mon Dec 16 23:16:36 UTC 2024


> On Dec 16, 2024, at 2:57 PM, Michael Newman <mgnewman at mac.com> wrote:
> 
> Mike
> 
> Thank you for taking the time to write such a detailed explanation. Unfortunately, dunce that I am, I didn’t understand most of it. I’m just a tool user and have little understanding of the code behind the tools that I use.
> 
> When I see something like this:
> 
> reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/scripts/logwatch.pl
> 
> My head spins.
> 
> Am I supposed to actually do all that stuff that I see when I run port cat logwatch?

Apologies.  No need to do any of that.  Instead ...

> says to override default variables by putting them in the following file:
>
> /etc/logwatch/conf/logwatch.conf
>
>However, that directory does not exist. So, I'm lost. Do I need to create that directory or does the override file go somewhere else?

You'd do this:

    sudo mkdir -p /opt/local/etc/logwatch/conf
    sudo touch /opt/local/etc/logwatch/conf/logwatch.conf

Edit that file as root to add your overrides.


More information about the macports-users mailing list