source: trunk/dports/security/reaver/Portfile

Last change on this file was 122687, checked in by ryandesign@…, 3 years ago

reaver: fix upgrading

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 122687 2014-07-26 19:45:03Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                reaver
7version             1.4
8categories          security net
9platforms           darwin
10maintainers         ryandesign openmaintainer
11license             GPL-2+
12
13description         Brute-force attack against Wi-Fi Protected Setup
14
15long_description    Reaver implements a brute-force attack against Wi-Fi \
16                    Protected Setup which can crack the WPS PIN of a wireless \
17                    access point in a matter of hours and subsequently recover \
18                    the WPA/WPA2 passphrase. Reaver includes Wash, a utility \
19                    for identifying potentially vulnerable access points.
20
21homepage            http://code.google.com/p/reaver-wps/
22master_sites        googlecode:reaver-wps
23
24checksums           rmd160  190f4481987c57d3ee956e5800287d5a69fd0516 \
25                    sha256  add3050a4a05fe0ab6bfb291ee2de8e9b8a85f1e64ced93ee27a75744954b22d
26
27depends_lib         port:libpcap \
28                    port:sqlite3
29
30patch.dir           ${worksrcpath}/src
31configure.dir       ${patch.dir}
32build.dir           ${configure.dir}
33
34patchfiles          patch-Makefile.in.diff \
35                    patch-libwps-libwps.h.diff \
36                    reaver_osx.diff
37
38# Disable silent rules.
39build.args          V=1
40
41build.args-append   CC="${configure.cc} [get_canonical_archflags cc]"
42
43post-destroot {
44    xinstall -d ${destroot}${prefix}/share/doc
45    copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
46    move ${destroot}${prefix}/share/doc/${name}/reaver.1.gz ${destroot}${prefix}/share/man/man1
47    move ${destroot}${prefix}/etc/reaver/reaver.db ${destroot}${prefix}/etc/reaver/reaver.db.empty
48}
49
50post-activate {
51    if {![file exists ${prefix}/etc/reaver/reaver.db]} {
52        copy ${prefix}/etc/reaver/reaver.db.empty ${prefix}/etc/reaver/reaver.db
53    }
54}
55
56# TODO: ld: warning: ignoring file crypto/libcrypto.a, file was built for archive which is not the architecture being linked
57universal_variant   no
58
59notes "
60Reaver is only supported on Linux. This experimental OS X port uses patches\
61submitted to the developers of Reaver but not yet incorporated into their\
62code. On OS X, the reaver and wash tools must be run as root, and you will be\
63disassociated from your normal wireless network while using them.
64"
Note: See TracBrowser for help on using the repository browser.