diff -urN DenyHosts-2.5.orig/denyhosts-py DenyHosts-2.5/denyhosts-py --- DenyHosts-2.5.orig/denyhosts-py 1970-01-01 01:00:00.000000000 +0100 +++ DenyHosts-2.5/denyhosts-py 2006-09-28 23:40:48.000000000 +0100 @@ -0,0 +1,10 @@ + +Denyhosts-python2X +Denyhosts-python2X + + +@PREFIX@/bin/python2.X + @PREFIX@/share/denyhosts-python2X/daemon-control-dist start -c @PREFIX@/etc/denyhosts-python2X/denyhosts.cfg + + + diff -urN DenyHosts-2.5.orig/daemon-control-dist DenyHosts-2.5/daemon-control-dist --- DenyHosts-2.5.orig/daemon-control-dist 2006-04-22 00:04:43.000000000 +0100 +++ DenyHosts-2.5/daemon-control-dist 2006-09-09 05:01:53.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!@PREFIX@/bin/python2.X # denyhosts Bring up/down the DenyHosts daemon # # chkconfig: 2345 98 02 @@ -11,11 +11,11 @@ #### Edit these to suit your configuration #### ############################################### -DENYHOSTS_BIN = "/usr/bin/denyhosts.py" -DENYHOSTS_LOCK = "/var/lock/subsys/denyhosts" -DENYHOSTS_CFG = "/usr/share/denyhosts/denyhosts.cfg" +DENYHOSTS_BIN = "@PREFIX@/bin/denyhosts-python2X.py" +DENYHOSTS_LOCK = "@PREFIX@/var/lock/subsys/denyhosts-python2X" +DENYHOSTS_CFG = "@PREFIX@/share/denyhosts-python2X/denyhosts.cfg" -PYTHON_BIN = "/usr/bin/env python" +PYTHON_BIN = "@PREFIX@/bin/python2.X" ############################################### #### Do not edit below #### diff -urN DenyHosts-2.5.orig/denyhosts.cfg-dist DenyHosts-2.5/denyhosts.cfg-dist --- DenyHosts-2.1.orig/denyhosts.cfg-dist 2006-02-09 21:32:06.000000000 +0000 +++ DenyHosts-2.1/denyhosts.cfg-dist 2006-02-19 19:04:18.000000000 +0000 @@ -9,7 +9,9 @@ # argument # # Redhat or Fedora Core: -SECURE_LOG = /var/log/secure +#SECURE_LOG = /var/log/secure +#Mac OS X: +SECURE_LOG = /var/log/asl.log # # Mandrake, FreeBSD or OpenBSD: #SECURE_LOG = /var/log/auth.log @@ -126,7 +128,7 @@ # Note: it is recommended that you use an absolute pathname # for this value (eg. /home/foo/denyhosts/data) # -WORK_DIR = /usr/share/denyhosts/data +WORK_DIR = @PREFIX@/share/denyhosts-python2X/data # ####################################################################### @@ -168,7 +170,7 @@ # running at a time. # # Redhat/Fedora: -LOCK_FILE = /var/lock/subsys/denyhosts +LOCK_FILE = @PREFIX@/var/run/denyhosts-python2X.pid # # Debian #LOCK_FILE = /var/run/denyhosts.pid @@ -349,7 +351,7 @@ # this is the logfile that DenyHosts uses to report it's status. # To disable logging, leave blank. (default is: /var/log/denyhosts) # -DAEMON_LOG = /var/log/denyhosts +DAEMON_LOG = @PREFIX@/var/log/denyhosts-python2X # # disable logging: #DAEMON_LOG = @@ -535,3 +537,8 @@ # ####################################################################### +####################################################################### +#Added for Mac OS X +SSHD_FORMAT_REGEX=.* \[Sender sshd\] \[PID \d*\] \[Message .* PAM: (?P.*?)\].*? +# +####################################################################### diff -urN DenyHosts-2.5.orig/setup.py DenyHosts-2.5/setup.py --- DenyHosts-2.1.orig/setup.py 2006-02-10 01:03:39.000000000 +0000 +++ DenyHosts-2.1/setup.py 2006-02-19 18:15:10.000000000 +0000 @@ -8,7 +8,7 @@ from glob import glob -libpath = "/usr/share/denyhosts" +libpath = "@PREFIX@/share/denyhosts-python2X" scriptspath = "%s/scripts" % libpath pluginspath = "%s/plugins" % libpath @@ -26,11 +26,8 @@ data_files=[(libpath, glob("denyhosts.cfg-dist")), (libpath, glob("setup.py")), (libpath, glob("daemon-control-dist")), - (libpath, glob("CHANGELOG.txt")), - (libpath, glob("README.txt")), (scriptspath, glob("scripts/*")), - (pluginspath, glob("plugins/*")), - (libpath, glob("LICENSE.txt"))], + (pluginspath, glob("plugins/*"))], license="GPL v2", ##extra_path='denyhosts', long_description="""