ports/96824: Update port: security/denyhosts to 2.4b

Rui Lopes rgl at ruilopes.com
Fri May 5 11:00:32 UTC 2006


>Number:         96824
>Category:       ports
>Synopsis:       Update port: security/denyhosts to 2.4b
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 05 11:00:27 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Rui Lopes
>Release:        FreeBSD 6.0-RELEASE-p5 i386
>Organization:
>Environment:
	
>Description:
* Update to 2.4b
* Add a rc.subr script to launch denyhosts daemon
	
>How-To-Repeat:
	
>Fix:

	

--- update_denyhosts_to_2.4b.patch begins here ---
diff -ruN denyhosts.orig/Makefile denyhosts/Makefile
--- denyhosts.orig/Makefile	Fri May  5 10:24:46 2006
+++ denyhosts/Makefile	Fri May  5 11:21:30 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	denyhosts
-PORTVERSION=	2.2
+PORTVERSION=	2.4b
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,7 +15,7 @@
 MAINTAINER=	janos.mohacsi at bsd.hu
 COMMENT=	Script to thwart ssh attacks
 
-USE_REINPLACE=	yes
+USE_RC_SUBR=	${PORTNAME}.sh
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 
diff -ruN denyhosts.orig/distinfo denyhosts/distinfo
--- denyhosts.orig/distinfo	Fri May  5 10:24:46 2006
+++ denyhosts/distinfo	Fri May  5 10:25:53 2006
@@ -1,3 +1,3 @@
-MD5 (DenyHosts-2.2.tar.gz) = feba0e9a48dbf1fa9cbd2b5b8907f349
-SHA256 (DenyHosts-2.2.tar.gz) = 369d37528287550ae152b2cd553549c021dab3c5a6b15fea93656749e7559bfd
-SIZE (DenyHosts-2.2.tar.gz) = 40972
+MD5 (DenyHosts-2.4b.tar.gz) = c60df73b29baeadffbbb1ef8f130dd8d
+SHA256 (DenyHosts-2.4b.tar.gz) = 851a050c6eb78618605eecdfae80a1ac412b2adc99160fb9c9d275f64858a7c1
+SIZE (DenyHosts-2.4b.tar.gz) = 42206
diff -ruN denyhosts.orig/files/denyhosts.sh.in denyhosts/files/denyhosts.sh.in
--- denyhosts.orig/files/denyhosts.sh.in	Thu Jan  1 01:00:00 1970
+++ denyhosts/files/denyhosts.sh.in	Fri May  5 11:24:15 2006
@@ -0,0 +1,22 @@
+#!/bin/sh
+# rc.subr script for denyhosts.
+# -- Rui Lopes <rgl ruilopes com>
+
+# PROVIDE: denyhosts
+# REQUIRE: DAEMON
+
+. %%RC_SUBR%%
+
+name="denyhosts"
+rcvar=`set_rcvar`
+
+command="%%PREFIX%%/bin/denyhosts.py"
+command_interpreter="/usr/local/bin/python"
+command_args="--config %%PREFIX%%/etc/denyhosts.conf --daemon"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config $name
+
+: ${denyhosts_enable="NO"}
+
+run_rc_command "$1"
diff -ruN denyhosts.orig/files/patch-denyhosts.cfg-dist denyhosts/files/patch-denyhosts.cfg-dist
--- denyhosts.orig/files/patch-denyhosts.cfg-dist	Fri May  5 10:24:46 2006
+++ denyhosts/files/patch-denyhosts.cfg-dist	Fri May  5 11:39:02 2006
@@ -1,8 +1,5 @@
-
-$FreeBSD: ports/security/denyhosts/files/patch-denyhosts.cfg-dist,v 1.2 2006/03/31 03:43:04 ijliao Exp $
-
---- denyhosts.cfg-dist.orig
-+++ denyhosts.cfg-dist
+--- denyhosts.cfg-dist.orig	Sun Apr  9 14:37:46 2006
++++ denyhosts.cfg-dist	Fri May  5 11:37:13 2006
 @@ -9,10 +9,10 @@
  # argument
  #
@@ -16,7 +13,16 @@
  #
  # SuSE:
  #SECURE_LOG = /var/log/messages
-@@ -23,7 +23,7 @@
+@@ -22,7 +22,7 @@
+ #SECURE_LOG = /private/var/log/asl.log
+ #
+ # Mac OS X (v10.3 or earlier):
+-SECURE_LOG=/private/var/log/system.log
++#SECURE_LOG=/private/var/log/system.log
+ #
+ ########################################################################
+ 
+@@ -31,7 +31,7 @@
  # HOSTS_DENY: the file which contains restricted host access information
  #
  # Most operating systems:
@@ -25,7 +31,7 @@
  #
  # Some BSD (FreeBSD) Unixes:
  #HOSTS_DENY = /etc/hosts.allow
-@@ -66,7 +66,7 @@
+@@ -90,7 +90,7 @@
  # To block all services for the offending host:
  #BLOCK_SERVICE = ALL
  # To block only sshd:
@@ -34,7 +40,7 @@
  # To only record the offending host and nothing else (if using
  # an auxilary file to list the hosts).  Refer to: 
  # http://denyhosts.sourceforge.net/faq.html#aux
-@@ -126,7 +126,7 @@
+@@ -150,7 +150,7 @@
  # Note: it is recommended that you use an absolute pathname
  # for this value (eg. /home/foo/denyhosts/data)
  #
@@ -43,7 +49,7 @@
  #
  #######################################################################
  
-@@ -152,7 +152,7 @@
+@@ -176,7 +176,7 @@
  # the corresponding hostname will be looked up and reported as well
  # (if available).
  #
@@ -52,7 +58,7 @@
  #
  ######################################################################
  
-@@ -168,10 +168,10 @@
+@@ -192,10 +192,10 @@
  # running at a time.
  #
  # Redhat/Fedora:
diff -ruN denyhosts.orig/pkg-plist denyhosts/pkg-plist
--- denyhosts.orig/pkg-plist	Fri May  5 10:24:46 2006
+++ denyhosts/pkg-plist	Fri May  5 10:38:12 2006
@@ -29,6 +29,9 @@
 %%PYTHON_SITELIBDIR%%/DenyHosts/plugin.py
 %%PYTHON_SITELIBDIR%%/DenyHosts/plugin.pyc
 %%PYTHON_SITELIBDIR%%/DenyHosts/plugin.pyo
+%%PYTHON_SITELIBDIR%%/DenyHosts/purgecounter.py
+%%PYTHON_SITELIBDIR%%/DenyHosts/purgecounter.pyc
+%%PYTHON_SITELIBDIR%%/DenyHosts/purgecounter.pyo
 %%PYTHON_SITELIBDIR%%/DenyHosts/constants.py
 %%PYTHON_SITELIBDIR%%/DenyHosts/constants.pyc
 %%PYTHON_SITELIBDIR%%/DenyHosts/constants.pyo
--- update_denyhosts_to_2.4b.patch ends here ---


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



More information about the freebsd-ports-bugs mailing list