Denyhosts version 2.6 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    denyhosts  most recent diff


    version 2.6

      View the most recent changes for the denyhosts port at: denyhosts.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for denyhosts.
      The raw portfile for denyhosts 2.6 is located here:
      http://denyhosts.darwinports.com/dports/security/denyhosts/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/denyhosts


      # -*- 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
      The denyhosts Portfile 58256 2009-09-25 00:23:48Z snc macports.org $

      PortSystem 1.0
      PortGroup python26 1.0

      Name: denyhosts
      Category: security sysutils
      Version: 2.6
      Revision: 2
      license GPL
      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.

      Platform: darwin freebsd
      distname DenyHosts-${version}
      Homepage: http://denyhosts.sourceforge.net/
      Master Sites: sourceforge:denyhosts
      Checksums: md5 fc2365305a9402886a2b0173d1beb7df sha1 02143843cb7c37c986c222b7acc11f7b75eb7373 rmd160 cab4206af992f5405ed1c9b302341c7b5649c71a

      Patch Files: 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
      set bin_path [string map {python2.6 denyhosts.py} ${python.bin}]
      reinplace s| BIN_PATH |${bin_path}| ${worksrcpath}/daemon-control-dist
      reinplace s| PREFIX |${prefix}| ${worksrcpath}/daemon-control-dist
      reinplace s| PREFIX |${prefix}| ${worksrcpath}/denyhosts.cfg-dist
      }

      pre-destroot {
      xinstall -d ${destroot}${prefix}/var/run/
      xinstall -d ${destroot}${prefix}/var/log/
      }
      post-destroot {
      ui_msg ""
      ui_msg " Please read ${prefix}/share/denyhosts/README.txt"
      ui_msg ""
      ui_msg " You need to make config files in ${prefix}/share/denyhosts"
      ui_msg " The files ending with '-dist' are examples for you to copy"
      ui_msg ""
      }
      destroot.keepdirs ${destroot}${prefix}/var/run ${destroot}${prefix}/var/log

      startupitem.create yes
      startupitem.type launchd
      startupitem.start "${prefix}/share/denyhosts/daemon-control start"
      startupitem.stop "${prefix}/share/denyhosts/daemon-control stop"

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/denyhosts
      % sudo port install denyhosts
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching denyhosts
      ---> Verifying checksum for denyhosts
      ---> Extracting denyhosts
      ---> Configuring denyhosts
      ---> Building denyhosts with target all
      ---> Staging denyhosts into destroot
      ---> Installing denyhosts
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using denyhosts with these commands:
      %  man denyhosts
      % apropos denyhosts
      % which denyhosts
      % locate denyhosts

     Where to find more information:

    Darwin Ports



    Lightbox this page.