aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2019-07-06 15:33:10 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2019-07-06 15:33:10 +0000
commit619cd91fc7e2b943fd03d1fdbada357b674c7645 (patch)
treeb0858a56e5b46929a32b9f65312c261c3796c197
parent7cf7f681c355bc15b9f600f99d012a3da258e6ab (diff)
downloadports-619cd91fc7e2b943fd03d1fdbada357b674c7645.tar.gz
ports-619cd91fc7e2b943fd03d1fdbada357b674c7645.zip
Notes
-rw-r--r--security/sshguard/Makefile2
-rw-r--r--security/sshguard/distinfo6
-rw-r--r--security/sshguard/files/sshguard.in10
3 files changed, 13 insertions, 5 deletions
diff --git a/security/sshguard/Makefile b/security/sshguard/Makefile
index c6e2447a22be..8e5bc0f8295d 100644
--- a/security/sshguard/Makefile
+++ b/security/sshguard/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= sshguard
-PORTVERSION= 2.3.1
+PORTVERSION= 2.4.0
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= SF/sshguard/sshguard/${PORTVERSION}
diff --git a/security/sshguard/distinfo b/security/sshguard/distinfo
index 10cb3df07f08..87c730da2d10 100644
--- a/security/sshguard/distinfo
+++ b/security/sshguard/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1562003151
-SHA256 (sshguard-2.3.1.tar.gz) = 769055e26df78f4bca34c9a7acf265dfa224c055b33ced47f53d55bf659d20a2
-SIZE (sshguard-2.3.1.tar.gz) = 765330
+TIMESTAMP = 1562425350
+SHA256 (sshguard-2.4.0.tar.gz) = 065ca4091b3a96802714b560dbbc3d9f0e67574e99e2b6e8857aa1027d17d6c0
+SIZE (sshguard-2.4.0.tar.gz) = 771506
diff --git a/security/sshguard/files/sshguard.in b/security/sshguard/files/sshguard.in
index 1233a855604f..424f88885eed 100644
--- a/security/sshguard/files/sshguard.in
+++ b/security/sshguard/files/sshguard.in
@@ -78,8 +78,9 @@ pidfile=${sshguard_pidfile:="/var/run/sshguard.pid"}
command=/usr/sbin/daemon
actual_command="%%PREFIX%%/sbin/sshguard"
-procname="%%PREFIX%%/libexec/sshg-blocker"
+procname="/bin/sh"
start_precmd=sshguard_prestart
+stop_cmd=sshguard_stop
command_args="-c ${actual_command} \${sshguard_flags} \${sshguard_blacklist_params} \${sshguard_watch_params} \${sshguard_danger_params} \${sshguard_release_params} \${sshguard_reset_params} \${sshguard_whitelist_params} -i ${pidfile}"
sshguard_prestart()
@@ -115,4 +116,11 @@ sshguard_prestart()
fi
}
+sshguard_stop()
+{
+ sshg_blocker="%%PREFIX%%/libexec/sshg-blocker"
+ rc_pid="$(check_process ${sshg_blocker})"
+ kill $sig_stop "$rc_pid"
+}
+
run_rc_command "$1"