Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 13:40:03 GMT
From:      Janos Mohacsi <mohacsi@niif.hu>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
Message-ID:  <201001221340.o0MDe3eQ094377@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/143053; it has been noted by GNATS.

From: Janos Mohacsi <mohacsi@niif.hu>
To: bug-followup@FreeBSD.org, fw@moov.de
Cc: edwin@freebsd.org
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter
 in RC script
Date: Fri, 22 Jan 2010 14:34:51 +0100

 This is a multi-part message in MIME format.
 --------------050506010403050007000802
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 It is more appropriate to use the current default python version instead
 of hard-coding the a particular version. See the attached patch.
 
 Best Regards,
                 Janos Mohacsi
 
 --------------050506010403050007000802
 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
  name="denyhosts.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="denyhosts.diff"
 
 diff -ruN denyhosts.orig/Makefile denyhosts/Makefile
 --- denyhosts.orig/Makefile	2009-08-25 16:24:44.000000000 +0200
 +++ denyhosts/Makefile	2010-01-22 14:30:50.000000000 +0100
 @@ -7,7 +7,7 @@
  
  PORTNAME=	denyhosts
  PORTVERSION=	2.6
 -PORTREVISION=	2
 +PORTREVISION=	3
  CATEGORIES=	security
  MASTER_SITES=	SF
  DISTNAME=	DenyHosts-${PORTVERSION}
 @@ -21,6 +21,7 @@
  
  USE_RC_SUBR=	denyhosts
  SUB_FILES=	pkg-message
 +SUB_LIST=	PYTHONVER=${PYTHON_VERSION}
  
  PORTDOCS=	CHANGELOG.txt LICENSE.txt README.txt
  
 diff -ruN denyhosts.orig/files/denyhosts.in denyhosts/files/denyhosts.in
 --- denyhosts.orig/files/denyhosts.in	2006-05-20 01:47:45.000000000 +0200
 +++ denyhosts/files/denyhosts.in	2010-01-22 14:26:01.000000000 +0100
 @@ -12,7 +12,7 @@
  rcvar=${name}_enable
  
  command="%%PREFIX%%/bin/denyhosts.py"
 -command_interpreter="/usr/local/bin/python"
 +command_interpreter="/usr/local/bin/%%PYTHONVER%%"
  command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
  pidfile="/var/run/${name}.pid"
  
 
 --------------050506010403050007000802--



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