Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script

4 views
Skip to first unread message

Frank Wall

unread,
Jan 21, 2010, 5:17:56 AM1/21/10
to freebsd-gn...@freebsd.org

>Number: 143053
>Category: ports
>Synopsis: [PATCH] security/denyhosts: fix $command_interpreter in RC script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 21 10:20:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Frank Wall
>Release: 7.1-RELEASE
>Organization:
>Environment:
FreeBSD 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009 ro...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
The RC script for security/denyhosts is outdated. The variable
$command_interpreter needs to be set to "/usr/local/bin/python2.6",
but it is set to "/usr/local/bin/python".
>How-To-Repeat:
1. install security/denyhosts
2. add denyhosts_enable="YES" to /etc/rc.conf
3. start denyhosts: /usr/local/etc/rc.d/denyhosts start
4. a warning message is shown:

/usr/local/etc/rc.d/denyhosts: WARNING: $command_interpreter /usr/local/bin/python != /usr/local/bin/python2.6

>Fix:
see attached patch file

Patch attached with submission follows:

--- files/denyhosts.in.orig 2006-05-20 01:47:45.000000000 +0200
+++ files/denyhosts.in 2010-01-21 11:11:38.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/python2.6"
command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
pidfile="/var/run/${name}.pid"

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

ed...@freebsd.org

unread,
Jan 21, 2010, 5:20:28 AM1/21/10
to f...@moov.de, ed...@freebsd.org, freebsd-p...@freebsd.org
Synopsis: [PATCH] security/denyhosts: fix $command_interpreter in RC script

State-Changed-From-To: open->feedback
State-Changed-By: edwin
State-Changed-When: Thu Jan 21 10:20:28 UTC 2010
State-Changed-Why:
Awaiting maintainers feedback (via the GNATS Auto Assign Tool)

http://www.freebsd.org/cgi/query-pr.cgi?pr=143053

Edwin Groothuis

unread,
Jan 21, 2010, 5:30:10 AM1/21/10
to freebsd-p...@freebsd.org
The following reply was made to PR ports/143053; it has been noted by GNATS.

From: Edwin Groothuis <ed...@FreeBSD.org>
To: janos....@bsd.hu
Cc: bug-fo...@FreeBSD.org
Subject: Re: ports/143053: [PATCH] security/denyhosts: fix $command_interpreter in RC script
Date: Thu, 21 Jan 2010 10:20:26 UT

Maintainer of security/denyhosts,

Please note that PR ports/143053 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/143053

--
Edwin Groothuis via the GNATS Auto Assign Tool
ed...@FreeBSD.org

Janos Mohacsi

unread,
Jan 22, 2010, 8:40:03 AM1/22/10
to freebsd-p...@freebsd.org
The following reply was made to PR ports/143053; it has been noted by GNATS.

From: Janos Mohacsi <moh...@niif.hu>
To: bug-fo...@FreeBSD.org, f...@moov.de
Cc: ed...@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--

0 new messages