diff options
author | Oleksii Samorukov <samm@FreeBSD.org> | 2024-04-04 11:34:53 +0200 |
---|---|---|
committer | Oleksii Samorukov <samm@FreeBSD.org> | 2024-04-04 11:37:40 +0200 |
commit | add1cc6abc1b6c500ee0bf3666cbe5ac54deec96 (patch) | |
tree | 2ac263f6180c31a407d88d9102e7ac77647ad20d /mail/exilog/files/patch-exilog__agent.pl | |
parent | cad/kicad-devel: Update to the current commits (diff) |
mail/exilog: fix to be compatible with new exim msgid format
Recently exim changed msgid format, so tool does not work correctly
anymore. I tried to contact upstream but no reply so far. Also some
minor changes to make portlint happy
Diffstat (limited to 'mail/exilog/files/patch-exilog__agent.pl')
-rw-r--r-- | mail/exilog/files/patch-exilog__agent.pl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/exilog/files/patch-exilog__agent.pl b/mail/exilog/files/patch-exilog__agent.pl new file mode 100644 index 000000000000..26fcf26a5c35 --- /dev/null +++ b/mail/exilog/files/patch-exilog__agent.pl @@ -0,0 +1,32 @@ +--- exilog_agent.pl.orig 2024-04-04 09:07:54 UTC ++++ exilog_agent.pl +@@ -48,7 +48,11 @@ unless ($foreground) { + }; + + setsid(); +- ++ my $me = "exilog"; ++ my $pidfile = "/var/run/".$me.".pid"; ++ open (PID,">$pidfile"); ++ print PID $$; ++ close (PID); + # dup STDOUT/ERR + open(STDOUT, ">&LOG"); + open(STDERR, ">&LOG"); +@@ -413,13 +417,13 @@ sub _tail { + print STDERR "($$) [exilog_agent:_tail] ($logfile) ".scalar localtime()." ".$_[0]; + }; + +- # open the file +- open(LOGFILE,"< $logfile"); +- + # import parser, open DB connection + use exilog_parse; + use exilog_sql; + reconnect(); ++ ++ # open the file ++ open(LOGFILE,"< $logfile"); + + my $curpos; + my $fsize = (-s $logfile); |