ports/163126: SSHGuard changed from syslog.conf to daemon boot script
Alex de Kruijff
freebsd at akruijff.dds.nl
Thu Dec 8 13:30:12 UTC 2011
>Number: 163126
>Category: ports
>Synopsis: SSHGuard changed from syslog.conf to daemon boot script
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 08 13:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Alex de Kruijff
>Release: FreeBSD 8.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD Scapaflow 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0: Fri Sep 9 15:54:38 CEST 2011 akruijff at freebsd1:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
- Removed the syslog.conf edit
- Added a bootscript
>How-To-Repeat:
>Fix:
--- sshguard.diff begins here ---
diff -ru -u sshguard.orig/Makefile sshguard/Makefile
--- sshguard.orig/Makefile 2011-12-05 14:58:11.254541000 +0100
+++ sshguard/Makefile 2011-12-08 14:08:54.814499316 +0100
@@ -7,7 +7,7 @@
PORTNAME= sshguard
PORTVERSION= 1.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= SF/sshguard/sshguard/sshguard-${PORTVERSION}
@@ -16,7 +16,8 @@
CONFLICTS?= sshguard-ipfilter-1.* sshguard-ipfw-1.* sshguard-pf-1.*
-PLIST_FILES= sbin/sshguard
+PLIST_FILES= sbin/sshguard etc/rc.d/sshguard
+USE_RC_SUBR= sshguard
MAN8= sshguard.8
MANCOMPRESSED= no
diff -ru -u sshguard.orig/files/pkg-message.in sshguard/files/pkg-message.in
--- sshguard.orig/files/pkg-message.in 2007-06-12 22:05:42.000000000 +0200
+++ sshguard/files/pkg-message.in 2011-12-08 14:02:56.998727269 +0100
@@ -3,8 +3,5 @@
%%PKGMSG_FWBLOCK%%
- Your /etc/syslog.conf has been added a line for sshguard; uncomment it
- and use "/etc/rc.d/syslogd reload" for activating it.
-
See sshguard(8) and http://sshguard.sourceforge.net for additional info.
##########################################################################
Only in sshguard/files: sshguard.in
Only in sshguard.orig: pkg-deinstall
Only in sshguard.orig: pkg-install
--- sshguard.diff ends here ---
--- sshguard.in begins here ---
#!/bin/sh
# $FreeBSD$
#
# PROVIDE: sshguard
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable this service:
# sshguard_enable (bool): Set to NO by default.
# Set it to YES to enable sshguard.
# sshguard_flags (str): Set to "-l /var/log/auth.log" by default.
# Extra flags passed to start command.
. /etc/rc.subr
name="sshguard"
rcvar=${name}_enable
command=/usr/local/sbin/sshguard
#command=%%PREFIX%%/sbin/${name}
start_cmd="${name}_start"
stop_cmd="${name}_stop"
sshguard_start() {
info "SSHGard started"
${command} ${sshguard_flags} &
}
sshguard_stop() {
killall sshguard
info "SSHGuard stoped"
}
load_rc_config $name
: ${sshguard_enable:="NO"}
: ${sshguard_flags:="-l /var/log/auth.log"}
run_rc_command "$1"
--- sshguard.in ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list