Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2013 10:07:04 GMT
From:      Christoph Theis <theis@gmx.at>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176058: [maintainer-update] Hard coded path to grep in sendmail-whois-lines.conf
Message-ID:  <201302121007.r1CA74Ei038742@red.freebsd.org>
Resent-Message-ID: <201302121010.r1CAA1YF047548@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176058
>Category:       ports
>Synopsis:       [maintainer-update] Hard coded path to grep in sendmail-whois-lines.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 12 10:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Theis
>Release:        
>Organization:
>Environment:
>Description:
action.d/sendmail-whois-lines.conf used a hardcoded path to /bin/grep.
Allother actions do not use any path with grep.

Thanks to Derek Kulinski for the tip.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 312090)
+++ Makefile	(working copy)
@@ -3,7 +3,7 @@
 
 PORTNAME=	fail2ban
 PORTVERSION=	0.8.7.1
-PORTREVISION=   1
+PORTREVISION=   2
 CATEGORIES=	security python
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/tarball/${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
Index: files/patch-sendmail-whois-lines.conf
===================================================================
--- files/patch-sendmail-whois-lines.conf	(revision 0)
+++ files/patch-sendmail-whois-lines.conf	(working copy)
@@ -0,0 +1,11 @@
+--- config/action.d/sendmail-whois-lines.conf.orig	2012-08-01 03:45:04.000000000 +0200
++++ config/action.d/sendmail-whois-lines.conf	2013-02-12 10:43:33.000000000 +0100
+@@ -57,7 +57,7 @@
+             Here are more information about <ip>:\n
+             `/usr/bin/whois <ip>`\n\n
+             Lines containing IP:<ip> in <logpath>\n
+-            `/bin/grep '\<<ip>\>' <logpath>`\n\n
++            `grep '\<<ip>\>' <logpath>`\n\n
+             Regards,\n
+             Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>
+ 


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302121007.r1CA74Ei038742>