[126664] trunk/dports/security/denyhosts/Portfile

jmr at macports.org jmr at macports.org
Mon Oct 13 05:00:26 PDT 2014


Revision: 126664
          https://trac.macports.org/changeset/126664
Author:   jmr at macports.org
Date:     2014-10-13 05:00:26 -0700 (Mon, 13 Oct 2014)
Log Message:
-----------
denyhosts: use unified python portgroup, correct license, mark noarch

Modified Paths:
--------------
    trunk/dports/security/denyhosts/Portfile

Modified: trunk/dports/security/denyhosts/Portfile
===================================================================
--- trunk/dports/security/denyhosts/Portfile	2014-10-13 11:51:08 UTC (rev 126663)
+++ trunk/dports/security/denyhosts/Portfile	2014-10-13 12:00:26 UTC (rev 126664)
@@ -2,13 +2,13 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
 name                denyhosts
 categories          security sysutils
 version             2.6
 revision            5
-license             GPL
+license             GPL-2
 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\
@@ -17,6 +17,7 @@
                     hosts, attacked users and suspicious logins.
 
 platforms           darwin freebsd
+supported_archs     noarch
 distname            DenyHosts-${version}
 homepage            http://denyhosts.sourceforge.net/
 master_sites        sourceforge:denyhosts
@@ -27,6 +28,8 @@
 patchfiles          patch-denyhosts.cfg-dist.diff \
                     patch-daemon-control-dist.diff
 
+python.default_version  27
+
 pre-fetch {
     if { ${os.major} > 11 } {
         # 10.8 is not supported:
@@ -42,7 +45,7 @@
     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.7 denyhosts.py} ${python.bin}]
+    set bin_path [string map [list python${python.branch} 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141013/df0b62c8/attachment.html>


More information about the macports-changes mailing list