ports/113453: [PATCH] security/sshguard: update to 1.0
Yen-Ming Lee
leeym at FreeBSD.org
Thu Jun 7 14:40:05 UTC 2007
>Number: 113453
>Category: ports
>Synopsis: [PATCH] security/sshguard: update to 1.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 07 14:40:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Yen-Ming Lee
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun May 20 13:11:02 CST 2007
>Description:
- Update to 1.0
- Add script and make it easier to start/stop the daemon
Added file(s):
- files/sshguard.in
Port maintainer (mij at bitchx.it) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- sshguard-1.0.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/sshguard/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- Makefile 1 Mar 2007 10:06:13 -0000 1.2
+++ Makefile 7 Jun 2007 14:29:37 -0000
@@ -6,8 +6,7 @@
#
PORTNAME= sshguard
-PORTVERSION= 0.91
-PORTREVISION= 1
+PORTVERSION= 1.0
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -20,10 +19,16 @@
IS_INTERACTIVE= yes
USE_BZIP2= yes
HAS_CONFIGURE= yes
+USE_RC_SUBR= sshguard
OPTIONS= PF "Use PF as firewall backend" off \
IPFW "Use IPFW as firewall backend" off
+MAN8= sshguard.8
+
+post-patch:
+ ${REINPLACE_CMD} -e 's/fw add/fw -q add/g' ${WRKSRC}/src/fwalls/ipfw.c
+
.include <bsd.port.pre.mk>
.if ! ( (defined(WITH_PF) && !defined(WITH_IPFW)) || !defined(WITH_PF))
@@ -38,12 +43,4 @@
CONFIGURE_ARGS+= --with-firewall=ipfw
.endif
-post-install:
- # spare pkg-message
- ${ECHO_MSG} " Sshguard installed successfully."
- ${ECHO_MSG} "Make it active by putting in /etc/syslog.conf something like:"
- ${ECHO_MSG} " auth.info;authpriv.info |exec ${PREFIX}/sbin/sshguard"
- ${ECHO_MSG} "Otherwise, run sshguard standalone with (as root):"
- ${ECHO_MSG} " tail -n 0 -f /var/log/auth.log | ${PREFIX}/sbin/sshguard"
-
.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/security/sshguard/distinfo,v
retrieving revision 1.1
diff -u -u -r1.1 distinfo
--- distinfo 1 Mar 2007 01:36:56 -0000 1.1
+++ distinfo 7 Jun 2007 14:29:37 -0000
@@ -1,3 +1,3 @@
-MD5 (sshguard-0.91.tar.bz2) = e6fb218fe2450f14b38ae5c5b67f0b6a
-SHA256 (sshguard-0.91.tar.bz2) = c1e16d1d20ff192e0368bd8ddfe6acede5a90fef10ce0558655bacf62c29c42f
-SIZE (sshguard-0.91.tar.bz2) = 63751
+MD5 (sshguard-1.0.tar.bz2) = 77b5a3a9d74542c487b8d5453d53d572
+SHA256 (sshguard-1.0.tar.bz2) = 33a9fe9d2360e9a5c357e269353d4157270171ff975bcf649f5f99b1aa8dcc08
+SIZE (sshguard-1.0.tar.bz2) = 118988
Index: files/sshguard.in
===================================================================
RCS file: files/sshguard.in
diff -N files/sshguard.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/sshguard.in 7 Jun 2007 14:29:37 -0000
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $FreeBSD$
+# PROVIDE: sshguard
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+sshguard_enable=${sshguard_enable:-"NO"}
+
+. %%RC_SUBR%%
+
+name="sshguard"
+procname="%%PREFIX%%/sbin/sshguard"
+rcvar=`set_rcvar`
+authlog=`grep ^auth /etc/syslog.conf | awk '{print $NF}'`
+required_files="$authlog"
+command="/usr/bin/tail"
+command_args="-n 0 -F $authlog | $procname &"
+load_rc_config $name
+run_rc_command "$1"
--- sshguard-1.0.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list