source: trunk/dports/python/py25-denyhosts/Portfile @ 50394

Last change on this file since 50394 was 50394, checked in by snc@…, 11 years ago

created denyhosts (python25), open maintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 50394 2009-04-30 04:01:52Z snc@macports.org $
3
4PortSystem          1.0
5PortGroup           python25 1.0
6
7name                py25-denyhosts
8version             2.6
9categories-append   security sysutils
10maintainers         snc openmaintainer
11description         DenyHosts is a utility to help sys admins thwart ssh hackers
12long_description    DenyHosts is a python program that automatically blocks ssh\
13                    attacks by adding entries to /etc/hosts.deny. DenyHosts\
14                    will also inform Linux administrators about offending\
15                    hosts, attacked users and suspicious logins.
16
17platforms           darwin freebsd
18distname            DenyHosts-${version}
19homepage            http://denyhosts.sourceforge.net/
20master_sites        sourceforge
21checksums           md5 fc2365305a9402886a2b0173d1beb7df \
22                    sha1 02143843cb7c37c986c222b7acc11f7b75eb7373 \
23                    rmd160 cab4206af992f5405ed1c9b302341c7b5649c71a
24
25patchfiles          patch-denyhosts.cfg-dist.diff \
26                    patch-daemon-control-dist.diff
27
28build {}
29
30pre-build {
31    reinplace s|/usr/share|${prefix}/share| ${worksrcpath}/setup.py
32    reinplace s|/usr/share|${prefix}/share| ${worksrcpath}/README.txt
33    reinplace s|@PYTHON@|${python.bin}| ${worksrcpath}/daemon-control-dist
34}
35
36post-destroot {
37    ui_msg "    Please read ${prefix}/share/denyhosts/README.txt"
38}
39
40startupitem.create  yes
41startupitem.type    launchd
42startupitem.start   ${prefix}/share/denyhosts/daemon-control-dist start
43startupitem.stop    ${prefix}/share/denyhosts/daemon-control-dist stop
44
45livecheck.name      denyhosts
Note: See TracBrowser for help on using the repository browser.