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 78234 2011-04-29 16:14:08Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name vde2 |
---|
7 | version 2.3.1 |
---|
8 | revision 1 |
---|
9 | categories net |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | license GPL-2 LGPL-2.1 BSD-old |
---|
13 | |
---|
14 | description ethernet compliant virtual network |
---|
15 | |
---|
16 | long_description VDE is an ethernet compliant virtual network that can be \ |
---|
17 | spawned over a set of physical computer over the Internet. |
---|
18 | |
---|
19 | homepage http://vde.sourceforge.net/ |
---|
20 | master_sites sourceforge:vde |
---|
21 | use_bzip2 yes |
---|
22 | |
---|
23 | checksums sha1 10e199a2dbc3d207ee29269e34f05cc5140878d9 \ |
---|
24 | rmd160 a1d0055422f34871ad3762b6093b1d39d9657184 |
---|
25 | |
---|
26 | depends_lib port:openssl |
---|
27 | |
---|
28 | configure.args --disable-kernel-switch \ |
---|
29 | --disable-experimental \ |
---|
30 | --disable-tuntap \ |
---|
31 | --disable-pcap \ |
---|
32 | --enable-cryptcab |
---|
33 | |
---|
34 | patchfiles patch-configure.ac.diff |
---|
35 | |
---|
36 | use_autoreconf yes |
---|
37 | |
---|
38 | post-patch { |
---|
39 | if {[variant_isset tuntap]} { |
---|
40 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/configure.ac |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
46 | xinstall -d ${docdir} |
---|
47 | xinstall -m 644 -W ${worksrcpath} \ |
---|
48 | COPYING \ |
---|
49 | COPYING.libvdeplug \ |
---|
50 | COPYING.slirpvde \ |
---|
51 | Changelog \ |
---|
52 | README \ |
---|
53 | doc/README.UML \ |
---|
54 | doc/README.VirtualBox \ |
---|
55 | doc/README.bochs \ |
---|
56 | doc/README.qemu \ |
---|
57 | doc/README.slirpvde \ |
---|
58 | doc/README.vde_over_ns \ |
---|
59 | doc/freebsd_tap-HOWTO \ |
---|
60 | doc/vde_autolink-HOWTO \ |
---|
61 | doc/vdeqemu-HOWTO \ |
---|
62 | ${docdir} |
---|
63 | } |
---|
64 | |
---|
65 | variant tuntap description {Enable support for TAP devices} { |
---|
66 | depends_build-append port:tuntaposx |
---|
67 | depends_lib-append port:tuntaposx |
---|
68 | configure.args-replace "s|--disable-tuntap|--enable-tuntap|" |
---|
69 | } |
---|
70 | |
---|
71 | variant pcap description {Enable support for packet capturing} { |
---|
72 | depends_lib-append port:libpcap |
---|
73 | configure.args-replace "s|--disable-pcap|--enable-pcap|" |
---|
74 | } |
---|
75 | |
---|
76 | variant experimental description {Enable support for experimental features} { |
---|
77 | configure.args-replace "s|--disable-experimental|--enable-experimental|" |
---|
78 | } |
---|
79 | |
---|
80 | livecheck.type sourceforge |
---|
81 | livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)${extract.suffix}" |
---|