[22285] trunk/dports/sysutils/john-devel/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Feb 24 23:24:18 PST 2007


Revision: 22285
          http://trac.macosforge.org/projects/macports/changeset/22285
Author:   ryandesign at macports.org
Date:     2007-02-24 23:24:18 -0800 (Sat, 24 Feb 2007)

Log Message:
-----------
#11298: Update to john 1.7.2 courtesy of Jann Roeder

Modified Paths:
--------------
    trunk/dports/sysutils/john-devel/Portfile

Modified: trunk/dports/sysutils/john-devel/Portfile
===================================================================
--- trunk/dports/sysutils/john-devel/Portfile	2007-02-25 07:18:24 UTC (rev 22284)
+++ trunk/dports/sysutils/john-devel/Portfile	2007-02-25 07:24:18 UTC (rev 22285)
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name        john-devel
-version     1.6.38
+version             1.7.2
 categories  sysutils security
 maintainers yeled at macports.org
 description Featureful Unix password cracker
@@ -13,44 +13,56 @@
 homepage    http://www.openwall.com/john/
 platforms   darwin
 master_sites    \
-    http://www.openwall.com/john/ \
-    ftp://ftp.ca.openwall.com/pub/projects/john/ \
-    ftp://ftp.openwall.com/pub/projects/john/ \
-    ftp://ftp1.ru.openwall.com/pub/projects/john/ \
-    ftp://ftp2.ru.openwall.com/pub/projects/john/ \
-    ftp://ftp.pl.openwall.com/pub/projects/john/ \
-    ftp://ftp.ua.openwall.com/pub/projects/john/ \
-    ftp://ftp.cz.openwall.com/pub/projects/john/
-checksums   md5 cad2877bc4d0e54c3863f5e7d1143fc6
+                    http://www.openwall.com/john/f/ \
+                    ftp://ftp2.msk.ru.openwall.com/pub/projects/john/${version}/ \
+                    ftp://ftp.ibiblio.org/pub/linux/distributions/openwall/projects/john/${version}/ \
+                    ftp://ftp.cert.dfn.de/pub/tools/net/Openwall/projects/john/${version}/ \
+                    http://distro.ibiblio.org/pub/linux/distributions/openwall/projects/john/${version}/ \
+                    ftp://ftp.mirrorgeek.com/openwall/projects/john/${version}/ \
+                    http://mirrorgeek.com/openwall/projects/john/${version}/ \
+                    ftp://ftp1.msk.ru.openwall.com/pub/projects/john/${version}/ \
+                    ftp://ftp.spb.ru.openwall.com/pub/projects/john/${version}/ \
+                    ftp://ftp.man.szczecin.pl/pub/Linux/Owl/projects/john/${version}/ \
+                    ftp://ftp.se.openwall.com/pub/projects/john/${version}/ \
+                    http://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/${version}/ \
+                    ftp://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/${version}/ \
+                    ftp://ftp.mathematik.uni-marburg.de/pub/mirror/openwall/projects/john/${version}/ \
+                    ftp://ftp.wiretapped.net/pub/openwall/projects/john/${version}/ \
+                    ftp://ftp.ua.openwall.com/pub/projects/john/${version}/ \
+                    ftp://ftp.cz.openwall.com/pub/projects/john/${version}/
+use_bzip2           yes
+checksums           md5 dc6a6c2a885110ccb5da4c1e2010cb07 \
+                    sha1 7cc994f9cbd1582b46cbdeb1d5f318891ea8b411 \
+                    rmd160 3754da88a98f1c120e28de1eb10b214bf7dd3baf
 distname    john-${version}
 worksrcdir  ${distname}/src
-configure   {}
-build.args  macosx-ppc32-cc
-build.target
+
+post-patch  {
+    reinplace "s,CFLAGS =,CFLAGS = -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\",g" ${worksrcpath}/Makefile
+    reinplace "s,CFLAGS=\",CFLAGS=\"-DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" -DJOHN_SYSTEMWIDE_HOME=\\\\\\\\\\\\\"${prefix}/share/john\\\\\\\\\\\\\" ,g" ${worksrcpath}/Makefile
+}
+use_configure       no
+
+platform powerpc {
+    build.target    "clean macosx-ppc32"
+}
+platform i386 {
+    build.target    "clean macosx-x86-mmx"
+    }
+variant altivec conflicts i386 {
+    build.target    "clean macosx-ppc32-altivec"
+}
+
 destroot {
-    file mkdir ${destroot}${prefix}/bin
+    xinstall -d ${destroot}${prefix}/bin
     file copy ${workpath}/${distname}/run ${destroot}${prefix}/share/john
-    system "chmod -R ugo+rx ${destroot}${prefix}/share/john"
+    system "chmod -R a+rx ${destroot}${prefix}/share/john"
     system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
-    file mkdir ${destroot}${prefix}/share/doc
+    xinstall -d ${destroot}${prefix}/share/doc
     file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/john
-    system "chmod -R ugo+rx ${destroot}${prefix}/share/doc/john"
+    system "chmod -R a+rx ${destroot}${prefix}/share/doc/john"
 }
 
-variant altivec conflicts sixty-four-bit {
-build.args-delete   macosx-ppc32-cc
-build.args-append   macosx-ppc32-altivec-cc
-depends_build   port:perl5.8
-    configure {
-            reinplace "s|\/usr|${prefix}|g" ${workpath}/${worksrcdir}/ppc-alti.pl
-    }
-}
-
-#variant sixty-four-bit {
-#build.args-delete  macosx-ppc32-cc
-#build.args-append  macosx-ppc64-cc
-#}
-
 post-install {
         ui_msg  ""
         ui_msg  "You'll find the john files under ${prefix}/share/john/"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070224/3567e011/attachment.html


More information about the macports-changes mailing list