description Microsoft Windows password cracker
long_description Ophcrack is a free Windows password cracker based on \
rainbow tables. It is a very efficient implementation \
of rainbow tables done by the inventors of the method.
homepage http://ophcrack.sourceforge.net
checksums ${distname}${extract.suffix} rmd160 9b1684bda4da361b841849ff4eabaab3b2de957d \
${distname}${extract.suffix} sha256 79219baa03afd7e52bc6d365dd5a445bc73dfac2e88216e7b050ad7749191893
patchfiles configure.diff
configure.args --disable-gui --disable-graph
set hasMoreThan512MBofRAM 0
catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]}
if {[variant_isset tables]} {
set tables_dir ${destroot}${prefix}/share/${name}/tables
if ${hasMoreThan512MBofRAM} {
xinstall -m 755 -d ${tables_dir}/xp_free_fast
system "unzip ${distpath}/tables_xp_free_fast.zip -d ${tables_dir}/xp_free_fast"
xinstall -m 755 -d ${tables_dir}/xp_free_small
system "unzip ${distpath}/tables_xp_free_small.zip -d ${tables_dir}/xp_free_small"
xinstall -m 755 -d ${tables_dir}/vista_free
system "unzip ${distpath}/tables_vista_free.zip -d ${tables_dir}/vista_free"
if {[variant_isset gui]} {
xinstall -m 755 -d ${destroot}${applications_dir}
copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
xinstall -m 755 -d ${destroot}${prefix}/bin
copy ${worksrcpath}/src/${name} ${destroot}${prefix}/bin
****************************************************
Visit http://ophcrack.sourceforge.net/tables.php
****************************************************
if {[variant_isset tables]} {
****************************************************
Free rainbow tables have been installed into
${prefix}/share/${name}/tables
****************************************************
variant gui description {Builds the GUI version instead of the CLI version, requires the qt4-mac port} {
configure.args-delete --disable-gui
configure.args-append --with-libqt4=${qt_dir}
variant tables description {Installs the free rainbow tables for Windows XP and Vista (700+ MB)} {
if ${hasMoreThan512MBofRAM} {
distfiles-append tables_xp_free_fast.zip
checksums-append tables_xp_free_fast.zip sha1 141b8be045055068e8bae6542d484fffdd452641
distfiles-append tables_xp_free_small.zip
checksums-append tables_xp_free_small.zip sha1 2933bc9e483f79966ee02569d3d91b4d0ecc5a8d