# -*- 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 python26 1.0 name denyhosts categories security sysutils version 2.6 revision 3 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. platforms darwin freebsd distname DenyHosts-${version} homepage http://denyhosts.sourceforge.net/ master_sites sourceforge:denyhosts 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 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/ } notes \ "Please read ${prefix}/share/denyhosts/README.txt You need to make config files in ${prefix}/share/denyhosts The files ending with '-dist' are examples for you to copy" destroot.keepdirs ${destroot}${prefix}/var/run \ ${destroot}${prefix}/var/log startupitem.create yes startupitem.type launchd startupitem.pidfile clean ${prefix}/var/run/${name}.pid startupitem.start "${prefix}/share/denyhosts/daemon-control start" startupitem.stop "${prefix}/share/denyhosts/daemon-control stop"