source: trunk/dports/security/ophcrack/Portfile

Last change on this file was 129058, checked in by jmr@…, 3 years ago

ophcrack: don't let the build system override our optflags

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Portfile 129058 2014-12-04 20:00:50Z ryandesign@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
24patchfiles          configure.diff
25
26configure.args      --disable-gui --disable-graph
27
28set hasMoreThan512MBofRAM 0
29catch {set hasMoreThan512MBofRAM [expr [sysctl hw.memsize] >= 536870912]}
30
31post-extract {
32    if {[variant_isset tables]} {
33        set tables_dir ${destroot}${prefix}/share/${name}/tables
34       
35        if ${hasMoreThan512MBofRAM} {
36            xinstall -m 755 -d ${tables_dir}/xp_free_fast
37            system "unzip ${distpath}/tables_xp_free_fast.zip -d ${tables_dir}/xp_free_fast"
38        } else {
39            xinstall -m 755 -d ${tables_dir}/xp_free_small
40            system "unzip ${distpath}/tables_xp_free_small.zip -d ${tables_dir}/xp_free_small"
41        }
42       
43        xinstall -m 755 -d ${tables_dir}/vista_free
44        system "unzip ${distpath}/tables_vista_free.zip -d ${tables_dir}/vista_free"
45    }
46}
47
48destroot {
49    if {[variant_isset gui]} {
50        xinstall -m 755 -d ${destroot}${applications_dir}
51        copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
52    } else {
53        xinstall -m 755 -d ${destroot}${prefix}/bin
54        copy ${worksrcpath}/src/${name} ${destroot}${prefix}/bin
55    }
56}
57
58notes "
59****************************************************
60
61  Visit http://ophcrack.sourceforge.net/tables.php
62  to get rainbow tables.
63
64****************************************************
65"
66
67post-activate {
68    if {[variant_isset tables]} {
69
70        notes-append "
71****************************************************
72
73  Free rainbow tables have been installed into
74  ${prefix}/share/${name}/tables
75
76****************************************************
77        "
78    }
79}
80
81variant gui description {Builds the GUI version instead of the CLI version, requires the qt4-mac port} {
82    PortGroup qt4 1.0
83    configure.args-delete --disable-gui
84    configure.args-append --with-libqt4=${qt_dir}
85}
86
87variant tables description {Installs the free rainbow tables for Windows XP and Vista (700+ MB)} {
88    if ${hasMoreThan512MBofRAM} {
89        distfiles-append tables_xp_free_fast.zip
90        checksums-append tables_xp_free_fast.zip sha1 141b8be045055068e8bae6542d484fffdd452641
91    } else {
92        distfiles-append tables_xp_free_small.zip
93        checksums-append tables_xp_free_small.zip sha1 2933bc9e483f79966ee02569d3d91b4d0ecc5a8d
94    }
95   
96    distfiles-append tables_vista_free.zip
97    checksums-append tables_vista_free.zip sha1 31425c6b35679df53ba67cb1cc3807501eec3ced
98   
99    extract.only ${distname}${extract.suffix}
100   
101    patchfiles-append patch-src-gui-tabledialog.cpp.diff
102   
103    post-patch {
104        reinplace "s|@TABLES_DIR@|${prefix}/share/${name}/tables|g" ${worksrcpath}/src/gui/tabledialog.cpp
105    }
106}
107
108livecheck.type  regex
109livecheck.url   ${homepage}/download.php?type=ophcrack
110livecheck.regex The latest version of ophcrack is (\\d(\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.