ports/176058: [maintainer-update] Hard coded path to grep in sendmail-whois-lines.conf

Christoph Theis theis at gmx.at
Tue Feb 12 10:10:02 UTC 2013


>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:


More information about the freebsd-ports-bugs mailing list