ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
Janos Mohacsi
mohacsi at niif.hu
Fri Jan 22 13:40:04 UTC 2010
The following reply was made to PR ports/143053; it has been noted by GNATS.
From: Janos Mohacsi <mohacsi at niif.hu>
To: bug-followup at FreeBSD.org, fw at moov.de
Cc: edwin at 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--
More information about the freebsd-ports-bugs
mailing list