source: trunk/dports/security/unhash/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
2
3PortSystem 1.0
4
5name                unhash
6version             1.1
7revision            1
8categories          security
9platforms           darwin
10maintainers         mww openmaintainer
11license             GPL-2
12description         brute force attack against MD5 or SHA1 hashes
13long_description    UnHash is a program that tries a brute force attack \
14                    against a given hash. The hash can be MD5 or SHA1, and \
15                    the program will auto-detect which one is given.
16
17homepage            http://www.dxp2532.info/
18master_sites        ${homepage}/tools/
19checksums           md5     b0cce452ec2eb64c4e0a8ec1b04a32d5 \
20                    sha1    ea9638aa3e8969a674d3e3f67144bd47cfeffa53 \
21                    rmd160  4f6a896783073249b5b3b8021f61b57943146d93
22use_bzip2           yes
23
24depends_lib         path:lib/libssl.dylib:openssl
25
26patchfiles          patch-Makefile
27
28post-extract {
29    file copy ${filespath}/strnlen.h ${filespath}/strnlen.c ${worksrcpath}
30}
31
32use_configure       no
33use_parallel_build  no
34
35build.type          gnu
36build.args          CPPFLAGS="${configure.cppflags}" CFLAGS="${configure.cflags}" LIBS="-L${prefix}/lib -lssl -lcrypto" CC="${configure.cc}"
37
38destroot {
39    xinstall -m 755 -s ${worksrcpath}/unhash ${destroot}${prefix}/bin
40    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}-${version}
41    xinstall -m 444 -W ${worksrcpath} CHANGES COPYING INSTALL README TODO ${destroot}${prefix}/share/doc/${name}-${version}
42}
43
Note: See TracBrowser for help on using the repository browser.