1 | # $Id: Portfile 29434 2007-09-23 17:58:38Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name dynamips |
---|
6 | version 0.2.8-RC2 |
---|
7 | revision 1 |
---|
8 | categories net |
---|
9 | maintainers jstrine@vexate.net |
---|
10 | description Cisco router emulator |
---|
11 | homepage http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator |
---|
12 | platforms darwin |
---|
13 | |
---|
14 | long_description \ |
---|
15 | Dynamips emulates a variety of Cisco routers on a \ |
---|
16 | traditional PC. It supports the emulation of select 7200, \ |
---|
17 | 3600, 3700, and 2600 series routers. It uses real Cisco \ |
---|
18 | IOS images (which are not part of this package). Of \ |
---|
19 | course, this emulator cannot replace a real router. It is \ |
---|
20 | simply a complementary tool to real labs for administrators \ |
---|
21 | of Cisco networks or people wanting to pass their \ |
---|
22 | CCNA/CCNP/CCIE exams. |
---|
23 | |
---|
24 | master_sites http://www.ipflow.utc.fr/dynamips |
---|
25 | distname dynamips-${version} |
---|
26 | checksums md5 8d12d28684d164fe3312a3fe43c84d2e \ |
---|
27 | sha1 349270690996a1e260b3eceb51ea90f94c25a59e \ |
---|
28 | rmd160 0447a4c0cf516bd2b63259881c7625e26d0d838f |
---|
29 | |
---|
30 | depends_lib port:libelf \ |
---|
31 | port:libpcap |
---|
32 | |
---|
33 | patchfiles Makefile.diff |
---|
34 | configure {} |
---|
35 | |
---|
36 | # patch.pre_args set to allow use of unmodified idle_pcs patch from developer |
---|
37 | patch.pre_args -p1 |
---|
38 | |
---|
39 | build.pre_args-append PREFIX=${prefix} |
---|
40 | destroot.pre_args-append PREFIX=${prefix} |
---|
41 | |
---|
42 | # compile using nojit if on PowerPC platform |
---|
43 | if {${os.arch} == "powerpc"} { |
---|
44 | build.pre_args-append DYNAMIPS_ARCH=nojit |
---|
45 | destroot.pre_args-append DYNAMIPS_ARCH=nojit |
---|
46 | } |
---|
47 | |
---|
48 | default_variants +idle_pcs |
---|
49 | |
---|
50 | variant no_pcap \ |
---|
51 | description {Without support to send/receive external traffic} { |
---|
52 | |
---|
53 | depends_lib-delete port:libpcap |
---|
54 | build.pre_args-append HAS_PCAP=0 |
---|
55 | destroot.pre_args-append HAS_PCAP=0 |
---|
56 | } |
---|
57 | |
---|
58 | variant idle_pcs \ |
---|
59 | description {With support for multiple idle-pcs. Uses patch \ |
---|
60 | written by Yannick Le Teigner available at \ |
---|
61 | http://dynagui.sourceforge.net.} { |
---|
62 | |
---|
63 | patchfiles-append idle_pcs.diff |
---|
64 | } |
---|