the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: denyhosts-py%type_pkg[python]
Version: 2.6
Revision: 4
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
Type: python (2.3 2.4 2.5 2.6)
Maintainer: Robert Wyatt
BuildDepends: fink (>= 0.24.12)
Depends: python%type_pkg[python], (%type_pkg[python] << 26) python%type_pkg[python]-socket, daemonic
Conflicts: denyhosts-py%type_pkg[python]
Replaces: denyhosts-py%type_pkg[python]
Description: Script to thwart ssh server attacks
Homepage: http://denyhosts.sourceforge.net/
License: GPL
Source: mirror:sourceforge:denyhosts/DenyHosts-%v.tar.gz
SourceDirectory: DenyHosts-%v
Source-MD5: fc2365305a9402886a2b0173d1beb7df
PatchFile: denyhosts-py.patch
PatchFile-MD5: 8c6e2064db1eb8fa92af83871e83c42c
PatchScript: sed 's,@PREFIX@,%p,g' < %{PatchFile} | sed 's,python2.X,python%type_raw[python],g' | sed 's,python2X,py%type_pkg[python],g' | patch -p1
CompileScript: %p/bin/python%type_raw[python] setup.py build
InstallScript: <<
%p/bin/python%type_raw[python] setup.py install --root=%d
mkdir -p %i/etc/denyhosts-py%type_pkg[python]
cp %i/share/denyhosts-py%type_pkg[python]/denyhosts.cfg-dist %i/etc/denyhosts-py%type_pkg[python]/denyhosts.cfg
mv %i/bin/denyhosts.py %i/bin/denyhosts-py%type_pkg[python].py
mkdir -p %i/etc/daemons
mv %b/denyhosts-py %i/etc/daemons/denyhosts-py%type_pkg[python].xml
echo DenyHosts | cat > %i/lib/python%type_raw[python]/site-packages/DenyHosts.pth
<<
ConfFiles: %p/etc/denyhosts-py%type_pkg[python]/denyhosts.cfg
PostInstScript: <<
daemonic enable denyhosts-py%type_pkg[python]
touch /etc/hosts.deny
<<
PreRmScript: <<
if [ $1 != "upgrade" ]; then
daemonic remove denyhosts-py%type_pkg[python]
rm -f %p/var/run/denyhosts*
fi
<<
DocFiles: LICENSE.txt CHANGELOG.txt README.txt
DescDetail: <<
DenyHosts is a Python script that analyzes
the sshd server log messages to determine
what hosts are attempting to hack into
your system. It also determines what user
accounts are being targeted. It keeps
track of the frequency of attempts from
each host. Additionally, upon discovering
a repeated attack host, the /etc/hosts.deny
file is updated to prevent future break-in
attempts from that host. An email report
can be sent to a system
admin.
<<
DescPackaging: <<
This is a small program written in python, not a python library,
so the -pyXX variant system is not required for this package, but it has been implemented anyway.
Author: Phil Schwartz
Previous maintainer: Murali Vadivelu
<<
DescUsage: <<
To configure on 10.5, see the following discussion:
http://permalink.gmane.org/gmane.os.apple.fink.beginners/22163/
To install on 10.4, see the following discussion:
http://permalink.gmane.org/gmane.os.apple.fink.beginners/19292/
<<
<<
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 @@
+
+
+
+
+
+
+
+
+
+
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="""