Ticket #11114: Portfile_v2

File Portfile_v2, 1.5 KB (added by 0xced (Cédric Luthi), 18 years ago)

Tests endianness instead of architecture

Line 
1# $Id$
2
3PortSystem              1.0
4name                    ophcrack
5version                 2.3.3
6categories              security
7maintainers             cedric.luthi@gmail.com
8description             Microsoft Windows password cracker
9long_description        Ophcrack is a Windows password cracker based on a time-\
10                        memory trade-off using rainbow tables. This is a new variant \
11                        of Hellman's original trade-off, with better performance. It \
12                        recovers 99.9% of alphanumeric passwords in seconds.
13
14homepage                http://ophcrack.sourceforge.net
15master_sites            sourceforge
16checksums               md5 33eb0e14ab5a196ac168795e38856b8b \
17                        sha1 dc83eb2a3d016eee272192e258c860e733538a8e \
18                        rmd160 6cc9317f6c24c4d1bfa3a7b348eb759a8b0cac81
19
20depends_lib             port:gtk2
21patchfiles              patch-Makefile.in
22post-main {
23        if { [string compare ${os.endian} "little"] != 0 } {
24                ui_error "${name} only runs on little-endian machines."
25                exit 1
26        }
27}
28post-destroot {
29        # these are ELF executables for Linux
30        file delete ${prefix}/bin/bkhive2
31        file delete ${prefix}/bin/samdump2
32}
33post-activate {
34        ui_msg "****************************************************"
35        ui_msg ""
36        ui_msg "Don't forget to download the tables from"
37        ui_msg "http://lasecwww.epfl.ch/SSTIC04-10k.zip"
38        ui_msg "or http://lasecwww.epfl.ch/SSTIC04-5k.zip"
39        ui_msg ""
40        ui_msg "and install them in ${prefix}/share/ophcrack/10000"
41        ui_msg "or ${prefix}/share/ophcrack/5000"
42        ui_msg ""
43        ui_msg "SSTIC04-10k (388MB), for PCs with at least 256MB of RAM."
44        ui_msg "SSTIC04-5k (720MB), for PCs with at least 512MB of RAM."
45        ui_msg ""
46        ui_msg "****************************************************"
47}