source: trunk/dports/security/ophcrack/Portfile @ 124112

Last change on this file since 124112 was 124112, checked in by khindenburg@…, 5 years ago

ophcrack: update to 3.6.0; add license; add notes changes from #41961

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 124112 2014-08-19 00:51:50Z khindenburg@macports.org $
2
3PortSystem          1.0
4
5name                ophcrack
6version             3.6.0
7categories          security
8license             GPL-2+
9maintainers         nomaintainer
10description         Microsoft Windows password cracker
11long_description    Ophcrack is a free Windows password cracker based on \
12                    rainbow tables. It is a very efficient implementation \
13                    of rainbow tables done by the inventors of the method.
14
15homepage            http://ophcrack.sourceforge.net
16platforms           darwin
17master_sites        sourceforge
18
19use_bzip2           yes
20
21checksums           ${distname}${extract.suffix} rmd160  9b1684bda4da361b841849ff4eabaab3b2de957d \
22                    ${distname}${extract.suffix} sha256  79219baa03afd7e52bc6d365dd5a445bc73dfac2e88216e7b050ad7749191893
23
24configure.args      --disable-gui --disable-graph
25
26set hasMoreThan512MBofRAM 0
27catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]}
28
29post-extract {
30    if {[variant_isset tables]} {
31        set tables_dir ${destroot}${prefix}/share/${name}/tables
32       
33        if ${hasMoreThan512MBofRAM} {
34            xinstall -m 755 -d ${tables_dir}/xp_free_fast
35            system "unzip ${distpath}/tables_xp_free_fast.zip -d ${tables_dir}/xp_free_fast"
36        } else {
37            xinstall -m 755 -d ${tables_dir}/xp_free_small
38            system "unzip ${distpath}/tables_xp_free_small.zip -d ${tables_dir}/xp_free_small"
39        }
40       
41        xinstall -m 755 -d ${tables_dir}/vista_free
42        system "unzip ${distpath}/tables_vista_free.zip -d ${tables_dir}/vista_free"
43    }
44}
45
46destroot {
47    if {[variant_isset gui]} {
48        xinstall -m 755 -d ${destroot}${applications_dir}
49        copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
50    } else {
51        xinstall -m 755 -d ${destroot}${prefix}/bin
52        copy ${worksrcpath}/src/${name} ${destroot}${prefix}/bin
53    }
54}
55
56notes "
57****************************************************
58
59  Visit http://ophcrack.sourceforge.net/tables.php
60  to get rainbow tables.
61
62****************************************************
63"
64
65post-activate {
66    if {[variant_isset tables]} {
67
68        notes-append "
69****************************************************
70
71  Free rainbow tables have been installed into
72  ${prefix}/share/${name}/tables
73
74****************************************************
75        "
76    }
77}
78
79variant gui description {Builds the GUI version instead of the CLI version, requires the qt4-mac port} {
80    PortGroup qt4 1.0
81    configure.args-delete --disable-gui
82    configure.args-append --with-libqt4=${qt_dir}
83}
84
85variant tables description {Installs the free rainbow tables for Windows XP and Vista (700+ MB)} {
86    if ${hasMoreThan512MBofRAM} {
87        distfiles-append tables_xp_free_fast.zip
88        checksums-append tables_xp_free_fast.zip sha1 141b8be045055068e8bae6542d484fffdd452641
89    } else {
90        distfiles-append tables_xp_free_small.zip
91        checksums-append tables_xp_free_small.zip sha1 2933bc9e483f79966ee02569d3d91b4d0ecc5a8d
92    }
93   
94    distfiles-append tables_vista_free.zip
95    checksums-append tables_vista_free.zip sha1 31425c6b35679df53ba67cb1cc3807501eec3ced
96   
97    extract.only ${distname}${extract.suffix}
98   
99    patchfiles-append patch-src-gui-tabledialog.cpp.diff
100   
101    post-patch {
102        reinplace "s|@TABLES_DIR@|${prefix}/share/${name}/tables|g" ${worksrcpath}/src/gui/tabledialog.cpp
103    }
104}
105
106livecheck.type  regex
107livecheck.url   ${homepage}/download.php?type=ophcrack
108livecheck.regex The latest version of ophcrack is (\\d(\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.