Bug 176058 - [maintainer-update] security/py-fail2ban: Hard coded path to grep in sendmail-whois-lines.conf
Summary: [maintainer-update] security/py-fail2ban: Hard coded path to grep in sendmail...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-12 10:10 UTC by theis
Modified: 2013-02-17 14:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.13 KB, patch)
2013-02-12 10:10 UTC, theis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description theis 2013-02-12 10:10:01 UTC
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.

Fix: Patch attached with submission follows:
Comment 1 Mark Linimon 2013-02-12 13:46:06 UTC
to which port does this PR apply?

mcl
Comment 2 theis 2013-02-12 14:10:53 UTC
Am 12.02.2013 14:46, schrieb Mark Linimon:
> to which port does this PR apply?

Upps, did I forgot that?
security/py-fail2ban


Christoph
Comment 3 Ruslan Makhmatkhanov freebsd_committer 2013-02-17 14:40:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rm

I will take it.
Comment 4 dfilter service freebsd_committer 2013-02-17 14:44:15 UTC
Author: rm
Date: Sun Feb 17 14:44:08 2013
New Revision: 312418
URL: http://svnweb.freebsd.org/changeset/ports/312418

Log:
  - do not hardcode path to grep utility
  
  PR:		176058
  Submitted by:	Christoph Theis <theis@gmx.at> (maintainer)

Modified:
  head/security/py-fail2ban/Makefile

Modified: head/security/py-fail2ban/Makefile
==============================================================================
--- head/security/py-fail2ban/Makefile	Sun Feb 17 14:22:56 2013	(r312417)
+++ head/security/py-fail2ban/Makefile	Sun Feb 17 14:44:08 2013	(r312418)
@@ -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}
@@ -39,6 +39,8 @@ FILES=	${WRKSRC}/fail2ban-regex \
 
 post-patch:
 	@${ECHO_CMD} ${FILES} | ${XARGS} ${REINPLACE_CMD} -e 's,/etc/fail2ban,${ETCDIR},g'
+	@${REINPLACE_CMD} -e 's,/bin/grep,grep,g' \
+		${WRKSRC}/config/action.d/sendmail-whois-lines.conf
 
 post-install:
 	@${CAT} ${PKGMESSAGE}
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Ruslan Makhmatkhanov freebsd_committer 2013-02-17 14:45:37 UTC
State Changed
From-To: open->closed

Committed, but using REINPLACE_CMD in Makefile, not using patch files. 
Thank you!