diff --git a/security/denyhosts/Makefile b/security/denyhosts/Makefile index 6107440e0224..3b86fccb37d0 100644 --- a/security/denyhosts/Makefile +++ b/security/denyhosts/Makefile @@ -7,7 +7,7 @@ PORTNAME= denyhosts PORTVERSION= 2.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= SF DISTNAME= DenyHosts-${PORTVERSION} @@ -20,6 +20,7 @@ USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= DenyHosts USE_RC_SUBR= denyhosts +SUB_LIST+= PYTHON=${PYTHON_CMD} SUB_FILES= pkg-message PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt diff --git a/security/denyhosts/files/denyhosts.in b/security/denyhosts/files/denyhosts.in index 1524c48ef328..284b07bd18d9 100644 --- a/security/denyhosts/files/denyhosts.in +++ b/security/denyhosts/files/denyhosts.in @@ -12,7 +12,7 @@ name="denyhosts" rcvar=${name}_enable command="%%PREFIX%%/bin/denyhosts.py" -command_interpreter="/usr/local/bin/python" +command_interpreter="%%PYTHON%%" command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon" pidfile="/var/run/${name}.pid"