source: trunk/dports/net/ettercap/Portfile

Last change on this file was 146517, checked in by raimue@…, 19 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 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 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           github 1.0
7
8github.setup        Ettercap ettercap 0.8.0 v
9revision            2
10categories          net security
11platforms           darwin freebsd
12maintainers         nomaintainer
13license             GPL-2+
14
15description         multipurpose sniffer/interceptor/logger for switched LAN
16
17long_description \
18    Ettercap is a multi-functional packet sniffer/interceptor/logger \
19    that works on switched LANs. It allows the active and passive \
20    dissection of numerous protocols, including ciphered ones, such as \
21    SSH1, and includes features for network and host analysis. Four \
22    modes are available: IP Based, MAC Address Based, ARP Based, and \
23    PublicARP Based.
24
25homepage            http://ettercap.github.io/ettercap/
26
27checksums           rmd160  0a790da4d8a801f41b7ed4887e9b944b24d1d7ad \
28                    sha256  0533f2fb41528d2100e36523772b8c43b1ca96c4720364dbb8bc7e665a6c4da9
29
30depends_build-append \
31                    port:pkgconfig
32
33depends_lib         path:lib/libssl.dylib:openssl \
34                    port:libpcap \
35                    port:libnet11 \
36                    port:ncurses \
37                    port:pcre \
38                    port:zlib
39
40#patchfiles          patch-src-protocols-ec_tcp.c.diff
41patchfiles          patch-dont-include-pcap-bpf.h.diff \
42                    patch-safe_free_mem.diff
43
44configure.dir       ${workpath}/build
45build.dir           ${configure.dir}
46
47post-extract {
48    file mkdir ${configure.dir}
49}
50
51set docdir          ${prefix}/share/doc/${subport}
52set sysconfdir      ${prefix}/etc
53set confdir         ${sysconfdir}/${subport}
54set conffiles       {etter.conf etter.dns etter.mdns etter.nbns}
55
56post-patch {
57    reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/man/ettercap.8.in
58}
59
60configure.args-append \
61                    -DBUNDLED_LIBS=OFF \
62                    -DENABLE_CURSES=ON \
63                    -DENABLE_GTK=OFF \
64                    -DENABLE_IPV6=ON \
65                    -DENABLE_LUA=OFF \
66                    -DENABLE_PDF_DOCS=OFF \
67                    -DENABLE_PLUGINS=OFF \
68                    -DENABLE_SSL=ON \
69                    -DENABLE_TESTS=OFF \
70                    -DINSTALL_SYSCONFDIR=${sysconfdir} \
71                    -DSYSTEM_LIBS=ON \
72                    ${worksrcpath}
73
74# The test suite doesn't do much yet, but to try it:
75#depends_build-append    port:check
76#patchfiles-append       patch-dont-use-librt-on-darwin.diff
77#configure.args-append   -DENABLE_TESTS=ON
78#test.run                yes
79
80post-destroot {
81    foreach f ${conffiles} {
82        move ${destroot}${confdir}/${f} ${destroot}${confdir}/${f}.default
83    }
84
85    xinstall -d ${destroot}${docdir}
86    xinstall -m 644 -W ${worksrcpath} \
87        AUTHORS \
88        CHANGELOG \
89        LICENSE \
90        README \
91        README.BINARIES \
92        README.BUGS \
93        README.OSXLION \
94        THANKS \
95        TODO \
96        TODO.TESTING \
97        ${destroot}${docdir}
98}
99
100post-activate {
101    foreach f ${conffiles} {
102        if {![file exists ${confdir}/${f}]} {
103            copy ${confdir}/${f}.default ${confdir}/${f}
104        }
105    }
106}
107
108variant gtk description {Enable GTK2 support} {
109    depends_lib-append      port:gtk2
110
111    configure.args-replace  -DENABLE_GTK=OFF -DENABLE_GTK=ON
112}
113
114variant plugins description {Enable plugins} {
115    depends_lib-append      port:curl \
116                            port:libtool
117
118    configure.args-replace  -DENABLE_PLUGINS=OFF -DENABLE_PLUGINS=ON
119}
120
121default_variants    +gtk +plugins
122
123notes "
124Without root permission, ettercap will not be able to access your network\
125interfaces, so you probably want to run it as:
126    sudo ettercap
127"
128
129if {[variant_isset gtk]} {
130    notes-append "
131To start the GTK interface, use:
132    sudo ettercap -G
133"
134}
135
136platform darwin {
137    patchfiles-append       patch-share-etter.conf.v6-darwin.diff
138}
139
140platform darwin 11 {
141    notes-append "
142IP forwarding (port forwarding) does not work on OS X 10.7 Lion unless you\
143take special steps. Read ${docdir}/README.OSXLION for more information.
144"
145}
Note: See TracBrowser for help on using the repository browser.