[50394] trunk/dports/python

snc at macports.org snc at macports.org
Wed Apr 29 21:01:53 PDT 2009


Revision: 50394
          http://trac.macports.org/changeset/50394
Author:   snc at macports.org
Date:     2009-04-29 21:01:52 -0700 (Wed, 29 Apr 2009)
Log Message:
-----------
created denyhosts (python25), open maintainer

Added Paths:
-----------
    trunk/dports/python/py25-denyhosts/
    trunk/dports/python/py25-denyhosts/Portfile
    trunk/dports/python/py25-denyhosts/files/
    trunk/dports/python/py25-denyhosts/files/patch-daemon-control-dist.diff
    trunk/dports/python/py25-denyhosts/files/patch-denyhosts.cfg-dist.diff

Added: trunk/dports/python/py25-denyhosts/Portfile
===================================================================
--- trunk/dports/python/py25-denyhosts/Portfile	                        (rev 0)
+++ trunk/dports/python/py25-denyhosts/Portfile	2009-04-30 04:01:52 UTC (rev 50394)
@@ -0,0 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python25 1.0
+
+name                py25-denyhosts
+version             2.6
+categories-append   security sysutils
+maintainers         snc openmaintainer
+description         DenyHosts is a utility to help sys admins thwart ssh hackers
+long_description    DenyHosts is a python program that automatically blocks ssh\
+                    attacks by adding entries to /etc/hosts.deny. DenyHosts\
+                    will also inform Linux administrators about offending\
+                    hosts, attacked users and suspicious logins.
+
+platforms           darwin freebsd
+distname            DenyHosts-${version}
+homepage            http://denyhosts.sourceforge.net/
+master_sites        sourceforge
+checksums           md5 fc2365305a9402886a2b0173d1beb7df \
+                    sha1 02143843cb7c37c986c222b7acc11f7b75eb7373 \
+                    rmd160 cab4206af992f5405ed1c9b302341c7b5649c71a
+
+patchfiles          patch-denyhosts.cfg-dist.diff \
+                    patch-daemon-control-dist.diff
+
+build {}
+
+pre-build {
+    reinplace s|/usr/share|${prefix}/share| ${worksrcpath}/setup.py
+    reinplace s|/usr/share|${prefix}/share| ${worksrcpath}/README.txt
+    reinplace s|@PYTHON@|${python.bin}| ${worksrcpath}/daemon-control-dist
+}
+
+post-destroot {
+    ui_msg "    Please read ${prefix}/share/denyhosts/README.txt"
+}
+
+startupitem.create  yes
+startupitem.type    launchd
+startupitem.start   ${prefix}/share/denyhosts/daemon-control-dist start
+startupitem.stop    ${prefix}/share/denyhosts/daemon-control-dist stop
+
+livecheck.name      denyhosts


Property changes on: trunk/dports/python/py25-denyhosts/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py25-denyhosts/files/patch-daemon-control-dist.diff
===================================================================
--- trunk/dports/python/py25-denyhosts/files/patch-daemon-control-dist.diff	                        (rev 0)
+++ trunk/dports/python/py25-denyhosts/files/patch-daemon-control-dist.diff	2009-04-30 04:01:52 UTC (rev 50394)
@@ -0,0 +1,24 @@
+--- daemon-control-dist.orig	2009-04-29 23:27:05.000000000 -0400
++++ daemon-control-dist	2009-04-29 23:29:25.000000000 -0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!@PYTHON@
+ # 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   = "/opt/local/bin/denyhosts.py"
++DENYHOSTS_LOCK  = "/opt/local/var/run/denyhosts.pid"
++DENYHOSTS_CFG   = "/opt/local/share/denyhosts/denyhosts.cfg"
+ 
+-PYTHON_BIN      = "/usr/bin/env python"
++PYTHON_BIN      = "@PYTHON@"
+ 
+ ###############################################
+ ####         Do not edit below             ####

Added: trunk/dports/python/py25-denyhosts/files/patch-denyhosts.cfg-dist.diff
===================================================================
--- trunk/dports/python/py25-denyhosts/files/patch-denyhosts.cfg-dist.diff	                        (rev 0)
+++ trunk/dports/python/py25-denyhosts/files/patch-denyhosts.cfg-dist.diff	2009-04-30 04:01:52 UTC (rev 50394)
@@ -0,0 +1,51 @@
+--- denyhosts.cfg-dist.orig	2009-04-29 23:17:04.000000000 -0400
++++ denyhosts.cfg-dist	2009-04-29 23:20:01.000000000 -0400
+@@ -9,7 +9,7 @@
+ # argument
+ #
+ # Redhat or Fedora Core:
+-SECURE_LOG = /var/log/secure
++#SECURE_LOG = /var/log/secure
+ #
+ # Mandrake, FreeBSD or OpenBSD: 
+ #SECURE_LOG = /var/log/auth.log
+@@ -19,7 +19,7 @@
+ #
+ # Mac OS X (v10.4 or greater - 
+ #   also refer to:   http://www.denyhosts.net/faq.html#macos
+-#SECURE_LOG = /private/var/log/asl.log
++SECURE_LOG = /private/var/log/secure.log
+ #
+ # Mac OS X (v10.3 or earlier):
+ #SECURE_LOG=/private/var/log/system.log
+@@ -150,7 +150,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 = /opt/local/share/denyhosts/data
+ #
+ #######################################################################
+ 
+@@ -192,10 +192,10 @@
+ # running at a time.
+ #
+ # Redhat/Fedora:
+-LOCK_FILE = /var/lock/subsys/denyhosts
++#LOCK_FILE = /var/lock/subsys/denyhosts
+ #
+ # Debian
+-#LOCK_FILE = /var/run/denyhosts.pid
++LOCK_FILE = /opt/local/var/run/denyhosts.pid
+ #
+ # Misc
+ #LOCK_FILE = /tmp/denyhosts.lock
+@@ -432,7 +432,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 = /opt/local/var/log/denyhosts
+ #
+ # disable logging:
+ #DAEMON_LOG = 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090429/83e01e5f/attachment.html>


More information about the macports-changes mailing list