diff options
author | Yixun Lan <dlan@gentoo.org> | 2021-02-13 23:52:47 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2021-02-13 23:56:11 +0800 |
commit | e1d4d69e32832607488d8deee82b61e26f061c02 (patch) | |
tree | 639670d7895f153c50ff6748ae8607c05824f6c2 /app-admin/sshguard/files | |
parent | net-proxy/trojan: create dedicated UID/GID (diff) | |
download | gentoo-e1d4d69e32832607488d8deee82b61e26f061c02.tar.gz gentoo-e1d4d69e32832607488d8deee82b61e26f061c02.tar.bz2 gentoo-e1d4d69e32832607488d8deee82b61e26f061c02.zip |
app-admin/sshguard: install systemd unit file
Closes: https://bugs.gentoo.org/588726
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-admin/sshguard/files')
-rw-r--r-- | app-admin/sshguard/files/sshguard-2.4.1-conf.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-admin/sshguard/files/sshguard-2.4.1-conf.patch b/app-admin/sshguard/files/sshguard-2.4.1-conf.patch new file mode 100644 index 000000000000..8eb74a84db34 --- /dev/null +++ b/app-admin/sshguard/files/sshguard-2.4.1-conf.patch @@ -0,0 +1,25 @@ +diff --git a/examples/sshguard.conf.sample b/examples/sshguard.conf.sample +index 556f1ec..a483b1e 100644 +--- a/examples/sshguard.conf.sample ++++ b/examples/sshguard.conf.sample +@@ -6,14 +6,18 @@ + + #### REQUIRED CONFIGURATION #### + # Full path to backend executable (required, no default) +-#BACKEND="/usr/local/libexec/sshg-fw-iptables" ++# Example 1: iptables backend ++#BACKEND="/usr/libexec/sshg-fw-iptables" ++# Example 2: firewalld backend; for firewalld configuration instructions see ++# https://www.ctrl.blog/entry/how-to-sshguard-firewalld.html#sshguard-section-firewalld ++#BACKEND="/usr/libexec/sshg-fw-firewalld" + + # Space-separated list of log files to monitor. (optional, no default) + #FILES="/var/log/auth.log /var/log/authlog /var/log/maillog" + + # Shell command that provides logs on standard output. (optional, no default) + # Example 1: ssh and sendmail from systemd journal: +-#LOGREADER="LANG=C /usr/bin/journalctl -afb -p info -n1 -t sshd -t sendmail -o cat" ++#LOGREADER="LANG=C /bin/journalctl -afb -p info -n1 -t sshd -t sendmail -o cat" + # Example 2: ssh from os_log (macOS 10.12+) + #LOGREADER="/usr/bin/log stream --style syslog --predicate '(processImagePath contains \"sshd\")'" + |