Ticket #20759: py25-denyhosts.2.diff
File py25-denyhosts.2.diff, 2.2 KB (added by nerdling (Jeremy Lavergne), 15 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup python25 1.06 5 7 6 name denyhosts 8 7 version 2.6 9 categories security sysutils10 8 maintainers snc openmaintainer 11 9 description DenyHosts is a utility to help sys admins thwart ssh hackers 12 10 long_description DenyHosts is a python program that automatically blocks ssh\ … … 25 23 patchfiles patch-denyhosts.cfg-dist.diff \ 26 24 patch-daemon-control-dist.diff 27 25 26 variant python25 conflicts python26 description {Use Python 2.5} { 27 PortGroup python25 1.0 28 categories security sysutils 29 } 30 31 variant python26 conflicts python25 description {Use Python 2.6} { 32 PortGroup python26 1.0 33 categories security sysutils 34 } 35 36 if {![variant_isset python25] && ![variant_isset python26]} { 37 default_variants +python25 38 } 39 28 40 build {} 29 41 30 42 pre-build { … … 33 45 reinplace s|@PYTHON@|${python.bin}| ${worksrcpath}/daemon-control-dist 34 46 reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/daemon-control-dist 35 47 reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/denyhosts.cfg-dist 48 reinplace s|@PREFIX@|${prefix}| ${filespath}/denyhosts.plist 36 49 } 37 50 51 pre-destroot { 52 xinstall -d ${destroot}${prefix}/var/run/ 53 xinstall -d ${destroot}${prefix}/var/log/ 54 } 38 55 post-destroot { 56 ui_msg "" 39 57 ui_msg " Please read ${prefix}/share/denyhosts/README.txt" 58 ui_msg "" 59 ui_msg " You need to make config files in ${prefix}/share/denyhosts" 60 ui_msg " The files ending with '-dist' are examples for you to copy" 61 ui_msg "" 40 62 } 63 destroot.keepdirs ${destroot}${prefix}/var/run \ 64 ${destroot}${prefix}/var/log 41 65 42 66 startupitem.create yes 43 67 startupitem.type launchd 44 startupitem.start ${prefix}/share/denyhosts/daemon-control-dist start 45 startupitem.stop ${prefix}/share/denyhosts/daemon-control-dist stop 46 47 livecheck.name denyhosts 68 startupitem.start "${prefix}/share/denyhosts/daemon-control start" 69 startupitem.stop "${prefix}/share/denyhosts/daemon-control stop"