[61956] trunk/dports/sysutils/john-devel/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Dec 25 12:41:57 PST 2009
Revision: 61956
http://trac.macports.org/changeset/61956
Author: ryandesign at macports.org
Date: 2009-12-25 12:41:39 -0800 (Fri, 25 Dec 2009)
Log Message:
-----------
john-devel: update to 1.7.3.4; clean up how some of the port works
Modified Paths:
--------------
trunk/dports/sysutils/john-devel/Portfile
Modified: trunk/dports/sysutils/john-devel/Portfile
===================================================================
--- trunk/dports/sysutils/john-devel/Portfile 2009-12-25 16:43:20 UTC (rev 61955)
+++ trunk/dports/sysutils/john-devel/Portfile 2009-12-25 20:41:39 UTC (rev 61956)
@@ -2,9 +2,10 @@
PortSystem 1.0
name john-devel
-version 1.7.3.1
+version 1.7.3.4
categories sysutils security
maintainers nomaintainer
+license GPLv2
description Featureful Unix password cracker
long_description John the Ripper is a UNIX password cracker, currently available for \
UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \
@@ -29,56 +30,61 @@
ftp://ftp.ua.openwall.com/pub/projects/john/${version}/ \
ftp://ftp.cz.openwall.com/pub/projects/john/${version}/
use_bzip2 yes
-checksums md5 4a8de450ff332bd0c7cbc573eb5032d9 \
- sha1 45f6ed73f7ea82460f3a33d6452bd8c17bdf863d \
- rmd160 f6e01c72c068904fe9e49a0669a9cdf0dc745be2
+
+checksums md5 2f2310c49961c3edea6f92b8dcd45ff4 \
+ sha1 3919cac037360512e6d72d04d72d492ee9673ded \
+ rmd160 a3a27c24eb71af8797bc02621ed02a8c9edd6b1d
+
distname john-${version}
-worksrcdir ${distname}/src
+build.dir ${worksrcpath}/src
-# Patch params.h since that avoids lots of messy escaping and quoting
-# issues
patchfiles patch-params.h
+patch.dir ${build.dir}
post-patch {
- reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/params.h
+ reinplace "s|@@PREFIX@@|${prefix}|g" ${patch.dir}/params.h
+ delete ${worksrcpath}/doc/INSTALL
}
use_configure no
pre-build {
- system "cd ${worksrcpath} && make clean"
+ system "cd ${build.dir} && make clean"
}
build.args CC=${configure.cc}
+build.target generic
-platform powerpc {
- if {$build_arch == "ppc64"} {
- build.target macosx-ppc64
- } else {
- build.target macosx-ppc32
+platform darwin {
+ switch ${configure.build_arch} {
+ ppc { build.target macosx-ppc32 }
+ ppc64 { build.target macosx-ppc64 }
+ i386 { build.target macosx-x86-sse2 }
+ x86_64 { build.target macosx-x86-64 }
}
}
-platform i386 {
- if {$build_arch == "x86_64"} {
- build.target macosx-x86-64
- } else {
- build.target macosx-x86-sse2
+variant altivec description {Enable AltiVec support} {
+ pre-configure {
+ switch ${configure.build_arch} {
+ ppc -
+ ppc64 {}
+ default {
+ ui_error "The +altivec variant can only be used when building for PowerPC."
+ return -code error "incompatible architecture"
+ }
+ }
}
-}
-
-variant altivec conflicts i386 description {Enable AltiVec support} {
pre-build {
- build.target ${build.target}-altivec
+ append build.target -altivec
}
}
destroot {
- xinstall -d ${destroot}${prefix}/bin
- file copy ${workpath}/${distname}/run ${destroot}${prefix}/share/john
+ file copy ${worksrcpath}/run ${destroot}${prefix}/share/john
system "chmod -R a+rx ${destroot}${prefix}/share/john"
- system "ln -s ${prefix}/share/john/john ${destroot}${prefix}/bin/john"
+ ln -s ../share/john/john ${destroot}${prefix}/bin/john
xinstall -d ${destroot}${prefix}/share/doc
- file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/john
- system "chmod -R a+rx ${destroot}${prefix}/share/doc/john"
+ file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/john
+ system "chmod -R a+r ${destroot}${prefix}/share/doc/john"
}
post-install {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091225/571101ed/attachment.html>
More information about the macports-changes
mailing list