From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 2 05:20:08 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15AA31065677 for ; Thu, 2 Feb 2012 05:20:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C729B8FC1B for ; Thu, 2 Feb 2012 05:20:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q125K77c040561 for ; Thu, 2 Feb 2012 05:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q125K78V040560; Thu, 2 Feb 2012 05:20:07 GMT (envelope-from gnats) Resent-Date: Thu, 2 Feb 2012 05:20:07 GMT Resent-Message-Id: <201202020520.q125K78V040560@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jo Rhett Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17612106566B for ; Thu, 2 Feb 2012 05:16:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 06FF38FC12 for ; Thu, 2 Feb 2012 05:16:03 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q125G2Yb006848 for ; Thu, 2 Feb 2012 05:16:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q125G2P8006847; Thu, 2 Feb 2012 05:16:02 GMT (envelope-from nobody) Message-Id: <201202020516.q125G2P8006847@red.freebsd.org> Date: Thu, 2 Feb 2012 05:16:02 GMT From: Jo Rhett To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/164702: rc.d script for sshguard X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 05:20:08 -0000 >Number: 164702 >Category: ports >Synopsis: rc.d script for sshguard >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 02 05:20:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jo Rhett >Release: 8.2 >Organization: Net Consonance >Environment: FreeBSD triceratops.netconsonance.com 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:07:27 UTC 2011 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: SSHguard installs a line to have syslog write to SSHguard, which isn't always the best way to do it and doesn't provide any ability to change options in how it runs. The "fix" is an rc.d script which provides access to allow of SSHguard's features using freebsd standard controls. >How-To-Repeat: >Fix: #!/bin/sh # PROVIDE: sshguard # REQUIRE: DAEMON syslogd # BEFORE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable SSHguard: # sshguard_enable="YES" # # Optional lines to change the configuration # sshguard_flags="-a 40 -p 420 -s 1200" # sshguard_logfile="/var/log/auth.log" # sshguard_whitelist="-w /usr/local/etc/sshguard.whitelist" . /etc/rc.subr # Set some defaults sshguard_enable=${sshguard_enable:-"NO"} sshguard_flags=${sshguard_flags:-"-a 40 -p 420 -s 1200"} sshguard_logfile=${sshguard_logfile:-"/var/log/auth.log"} name=sshguard rcvar=`set_rcvar` load_rc_config $name command=/usr/local/sbin/sshguard pidfile=/var/run/sshguard.pid command_args="-i ${pidfile} -l ${sshguard_logfile} ${sshguard_whitelist} &" run_rc_command "$1" >Release-Note: >Audit-Trail: >Unformatted: