Ticket #34539: ophcrack.diff
File ophcrack.diff, 2.2 KB (added by kurthindenburg (Kurt Hindenburg), 10 years ago) |
---|
-
Portfile
1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 … … 23 24 24 25 configure.args --disable-gui --disable-graph 25 26 26 set hasMoreThan512MBofRAM 0 27 catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]} 27 if {[variant_isset tables]} { 28 set hasMoreThan512MBofRAM 0 29 catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]} 30 if ${hasMoreThan512MBofRAM} { 31 default_variants +fast_tables 32 } else { 33 default_variants +small_tables 34 } 35 } 28 36 29 37 post-extract { 30 38 if {[variant_isset tables]} { 31 39 set tables_dir ${destroot}${prefix}/share/${name}/tables 32 40 33 if ${hasMoreThan512MBofRAM} {41 if {[variant_isset fast_tables]} { 34 42 xinstall -m 755 -d ${tables_dir}/xp_free_fast 35 43 system "unzip ${distpath}/tables_xp_free_fast.zip -d ${tables_dir}/xp_free_fast" 36 44 } else { … … 64 72 65 73 post-activate { 66 74 if {[variant_isset tables]} { 67 68 75 notes-append " 69 76 **************************************************** 70 77 … … 83 90 } 84 91 85 92 variant tables description {Installs the free rainbow tables for Windows XP and Vista (700+ MB)} { 86 if ${hasMoreThan512MBofRAM} {93 if {[variant_isset fast_tables]} { 87 94 distfiles-append tables_xp_free_fast.zip 88 95 checksums-append tables_xp_free_fast.zip sha1 141b8be045055068e8bae6542d484fffdd452641 89 96 } else { … … 103 110 } 104 111 } 105 112 113 variant small_tables conflicts fast_tables description {Forces the use of the small rainbow tables (typically for use on computers with <512MB RAM)} requires tables { 114 } 115 116 variant fast_tables conflicts small_tables description {Forces the use of the fast rainbow tables (typically for use on computers with >512MB RAM)} requires tables { 117 } 118 106 119 livecheck.type regex 107 120 livecheck.url ${homepage}/download.php?type=ophcrack 108 121 livecheck.regex The latest version of ophcrack is (\\d(\\.\\d+)*)