[55518] trunk/dports/security/ophcrack
macsforever2000 at macports.org
macsforever2000 at macports.org
Wed Aug 12 09:01:03 PDT 2009
Revision: 55518
http://trac.macports.org/changeset/55518
Author: macsforever2000 at macports.org
Date: 2009-08-12 09:01:02 -0700 (Wed, 12 Aug 2009)
Log Message:
-----------
Maintainer update to version 3.3.1. Removed patchfiles. (#20650)
Modified Paths:
--------------
trunk/dports/security/ophcrack/Portfile
Removed Paths:
-------------
trunk/dports/security/ophcrack/files/
Modified: trunk/dports/security/ophcrack/Portfile
===================================================================
--- trunk/dports/security/ophcrack/Portfile 2009-08-12 14:53:34 UTC (rev 55517)
+++ trunk/dports/security/ophcrack/Portfile 2009-08-12 16:01:02 UTC (rev 55518)
@@ -1,43 +1,98 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name ophcrack
-version 2.3.3
-categories security
-maintainers gmail.com:cedric.luthi
-description Microsoft Windows password cracker
-long_description Ophcrack is a Windows password cracker based on a time-\
- memory trade-off using rainbow tables. This is a new variant \
- of Hellman's original trade-off, with better performance. It \
- recovers 99.9% of alphanumeric passwords in seconds.
+name ophcrack
+version 3.3.1
+categories security
+maintainers gmail.com:cedric.luthi
+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
-master_sites sourceforge
-checksums md5 33eb0e14ab5a196ac168795e38856b8b \
- sha1 dc83eb2a3d016eee272192e258c860e733538a8e \
- rmd160 6cc9317f6c24c4d1bfa3a7b348eb759a8b0cac81
+homepage http://ophcrack.sourceforge.net
+platforms darwin
+master_sites sourceforge
-depends_lib port:gtk2
-depends_run port:bkhive port:samdump2
-patchfiles patch-Makefile.in
-pre-fetch {
- if { [string compare ${os.endian} "little"] != 0 } {
- return -code error "${name} only runs on little-endian machines."
- }
+use_bzip2 yes
+checksums ${distname}${extract.suffix} md5 740eef54e9082f26851e15c1cb4ef55c \
+ ${distname}${extract.suffix} sha1 65982407f0b7738940d5444530492ce1d81899f9 \
+ ${distname}${extract.suffix} rmd160 3a4562e861eb90030c68b067a02cc41271ee8c66
+
+configure.args --disable-gui --disable-graph
+
+set hasMoreThan512MBofRAM [expr [gets [open "|sysctl -n hw.memsize"]] >= 536870912]
+
+post-extract {
+ 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"
+ } else {
+ 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"
+ }
}
+
+pre-build {
+ if {[variant_isset tables]} {
+ reinplace "s|QString()|QString(\"${prefix}/share/${name}/tables\")|g" ${worksrcpath}/src/gui/tabledialog.cpp
+ }
+}
+
+destroot {
+ if {[variant_isset gui]} {
+ xinstall -m 755 -d ${destroot}${applications_dir}
+ copy ${worksrcpath}/src/${name}.app ${destroot}${applications_dir}
+ } else {
+ xinstall -m 755 -d ${destroot}${prefix}/bin
+ copy ${worksrcpath}/src/${name} ${destroot}${prefix}/bin
+ }
+}
+
post-activate {
- ui_msg "****************************************************"
- ui_msg ""
- ui_msg "Don't forget to download the tables from"
- ui_msg "http://lasecwww.epfl.ch/SSTIC04-10k.zip"
- ui_msg "or http://lasecwww.epfl.ch/SSTIC04-5k.zip"
- ui_msg ""
- ui_msg "and install them in ${prefix}/share/ophcrack/10000"
- ui_msg "or ${prefix}/share/ophcrack/5000"
- ui_msg ""
- ui_msg "SSTIC04-10k (388MB), for PCs with at least 256MB of RAM."
- ui_msg "SSTIC04-5k (720MB), for PCs with at least 512MB of RAM."
- ui_msg ""
- ui_msg "****************************************************"
+ if {[variant_isset tables]} {
+ ui_msg "****************************************************"
+ ui_msg ""
+ ui_msg " Free rainbow tables have been installed into"
+ ui_msg " ${prefix}/share/${name}/tables"
+ ui_msg ""
+ ui_msg " Visit http://ophcrack.sourceforge.net/tables.php"
+ ui_msg " to get more (non-free) rainbow tables."
+ ui_msg ""
+ ui_msg "****************************************************"
+ }
}
+
+variant gui description {Builds the GUI version instead of the CLI version, requires the qt4-mac port} {
+ depends_lib-append port:qt4-mac
+
+ configure.args-delete --disable-gui
+ configure.args-append --with-libqt4=${prefix}/libexec/qt4-mac
+}
+
+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
+ } else {
+ distfiles-append tables_xp_free_small.zip
+ checksums-append tables_xp_free_small.zip sha1 2933bc9e483f79966ee02569d3d91b4d0ecc5a8d
+ }
+
+ distfiles-append tables_vista_free.zip
+ checksums-append tables_vista_free.zip sha1 31425c6b35679df53ba67cb1cc3807501eec3ced
+
+ extract.only ${distname}${extract.suffix}
+}
+
+livecheck.check regex
+livecheck.url ${homepage}/download.php?type=ophcrack
+livecheck.regex The latest version of ophcrack is (\\d(\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090812/b0587c32/attachment.html>
More information about the macports-changes
mailing list