Summary: | security/py-fail2ban: Missing paths | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | László Károlyi <laszlo-rdr-keethu9thi> | ||||||
Component: | Individual Port(s) | Assignee: | Kurt Jaeger <pi> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | mam, pi, theis | ||||||
Priority: | --- | Flags: | theis:
maintainer-feedback+
|
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Great! I was just about to report the same problem. Your solution is very good, tnx. I helped me out by adding the full paths to the failing binaries, but that is not half as clever as yours :-) Created attachment 218280 [details]
patch with %%PREFIX%% instead of hard coded paths
The suggested patch from the reporter uses hard coded paths /usr/local/bin. I changed it to use %%PREFIX%%/bin instead
A commit references this bug: Author: pi Date: Fri Sep 25 15:05:24 UTC 2020 New revision: 550045 URL: https://svnweb.freebsd.org/changeset/ports/550045 Log: security/py-fail2ban: add missing paths to rc script PR: 249578 Submitted by: L?szl? K?rolyi <laszlo@karolyi.hu> Approved by: theis@gmx.at (maintainer) Changes: head/security/py-fail2ban/files/fail2ban.in committed, thanks! |
Created attachment 218243 [details] Patched /usr/local/etc/rc.d/fail2ban script Hey, as discussed with the maintainer, the fail2ban port misses the /usr/local prefixes in the PATH and because of this, some actions that don't use absolute paths (e.g. abuseipdb, blocklist_de) will not work. They use non-absolute command paths (curl) for linux compatibility. I have patched my local fail2ban to include those, but would like to have it included in the package provided /usr/local/etc/rc.d/fail2ban script. The generic idea is something along the lines of the attached patch.