Revision
103268
Author
snc@macports.org
Date
2013-02-19 07:52:10 -0800 (Tue, 19 Feb 2013)

Log Message

denyhosts: cannot work with 10.8

Modified Paths

Diff

Modified: trunk/dports/security/denyhosts/Portfile (103267 => 103268)


--- trunk/dports/security/denyhosts/Portfile	2013-02-19 15:51:19 UTC (rev 103267)
+++ trunk/dports/security/denyhosts/Portfile	2013-02-19 15:52:10 UTC (rev 103268)
@@ -7,7 +7,7 @@
 name                denyhosts
 categories          security sysutils
 version             2.6
-revision            4
+revision            5
 license             GPL
 maintainers         snc openmaintainer
 description         DenyHosts is a utility to help sys admins thwart ssh hackers
@@ -27,6 +27,15 @@
 patchfiles          patch-denyhosts.cfg-dist.diff \
                     patch-daemon-control-dist.diff
 
+pre-fetch {
+    if { ${os.major} > 11 } {
+        # 10.8 is not supported:
+        # https://trac.macports.org/ticket/38084#comment:2
+        ui_error "${name} requires Lion or older"
+        return -code error "unsupported OS X version"
+    }
+}
+
 build {}
 
 pre-build {