[36898] trunk/dports/net

mr_bond at macports.org mr_bond at macports.org
Sat May 17 11:09:25 PDT 2008


Revision: 36898
          http://trac.macosforge.org/projects/macports/changeset/36898
Author:   mr_bond at macports.org
Date:     2008-05-17 11:09:24 -0700 (Sat, 17 May 2008)

Log Message:
-----------
New port sumbission, dynamips version 0.2.8-RC2 (required for GNS3)

Added Paths:
-----------
    trunk/dports/net/dynamips-devel/
    trunk/dports/net/dynamips-devel/Portfile
    trunk/dports/net/dynamips-devel/files/
    trunk/dports/net/dynamips-devel/files/patch-Makefile

Added: trunk/dports/net/dynamips-devel/Portfile
===================================================================
--- trunk/dports/net/dynamips-devel/Portfile	                        (rev 0)
+++ trunk/dports/net/dynamips-devel/Portfile	2008-05-17 18:09:24 UTC (rev 36898)
@@ -0,0 +1,52 @@
+# $Id$
+
+PortSystem 1.0
+
+name		dynamips-devel
+version		0.2.8-RC2
+revision	1
+categories	net
+maintainers	mr_bond openmaintainer
+description	Cisco router emulator
+homepage	http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
+platforms	darwin
+
+long_description \
+		Dynamips emulates a variety of Cisco routers on a \
+		traditional PC.  It supports the emulation of select 7200, \
+		3600, 3700, and 2600 series routers.  It uses real Cisco \
+		IOS images (which are not part of this package).  Of \
+		course, this emulator cannot replace a real router. It is \
+		simply a complementary tool to real labs for administrators \
+		of Cisco networks or people wanting to pass their \
+		CCNA/CCNP/CCIE exams.
+
+master_sites	http://www.ipflow.utc.fr/dynamips
+distname	dynamips-${version}
+checksums	md5 8d12d28684d164fe3312a3fe43c84d2e \
+		sha1 349270690996a1e260b3eceb51ea90f94c25a59e
+
+depends_lib	port:libelf \
+			port:libpcap
+
+patchfiles	patch-Makefile
+configure {}
+
+build.pre_args-append		PREFIX=${prefix}
+destroot.pre_args-append	PREFIX=${prefix}
+
+# compile using nojit if on PowerPC platform
+if {${os.arch} == "powerpc"} {
+	build.pre_args-append		DYNAMIPS_ARCH=nojit
+	destroot.pre_args-append	DYNAMIPS_ARCH=nojit
+}
+
+#default_variants	+idle_pcs
+
+variant no_pcap \
+	description {Without support to send/receive external traffic} {
+
+	depends_lib-delete		port:libpcap
+	build.pre_args-append		HAS_PCAP=0
+	destroot.pre_args-append	HAS_PCAP=0
+}

Added: trunk/dports/net/dynamips-devel/files/patch-Makefile
===================================================================
--- trunk/dports/net/dynamips-devel/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/net/dynamips-devel/files/patch-Makefile	2008-05-17 18:09:24 UTC (rev 36898)
@@ -0,0 +1,49 @@
+--- Makefile.bak	2008-05-17 15:53:31.000000000 +0200
++++ Makefile	2008-05-17 15:52:19.000000000 +0200
+@@ -23,7 +23,6 @@
+ VERSION_DEV=$(VERSION_TRAIN)-$(shell date +%Y%m%d-%H)
+ 
+ # Executable binary extension
+-DESTDIR?=/usr
+ BIN_EXT?=
+ 
+ CC?=gcc
+@@ -45,7 +44,8 @@
+ 	-DHAS_POSIX_MEMALIGN=$(HAS_POSIX_MEMALIGN)
+ 
+ #PCAP_LIB=/usr/local/lib/libpcap.a
+-PCAP_LIB=-lpcap
++#PCAP_LIB=-lpcap
++PCAP_LIB=$(PREFIX)/lib/libpcap.a
+ 
+ ifeq ($(shell uname), FreeBSD)
+    PTHREAD_LIBS?=-pthread
+@@ -62,8 +62,9 @@
+    DESTDIR=/usr
+ else
+ ifeq ($(shell uname -s), Darwin)
+-   CFLAGS+=-I/usr/local/include -mdynamic-no-pic -D_FILE_OFFSET_BITS=64
+-   LIBS=-L/usr/local/lib -L. -ldl -lelf -lpthread
++   CFLAGS+=-I$(PREFIX)/include -mdynamic-no-pic -D_FILE_OFFSET_BITS=64
++   LIBS=-L. $(PREFIX)/lib/libelf.a -lpthread
++   LIBS=-L$(PREFIX)/lib -L. -ldl -lelf -lpthread
+ else
+ ifeq ($(shell uname -s), SunOS)
+    CFLAGS+=-I/usr/local/include -DINADDR_NONE=0xFFFFFFFF \
+@@ -252,11 +253,11 @@
+ 
+ install: $(PROG) nvram_export
+ 	@echo "Installing"
+-	install -d $(DESTDIR)/bin $(DESTDIR)/man/man1 $(DESTDIR)/man/man7 $(DESTDIR)/etc
+-	install dynamips nvram_export   $(DESTDIR)/bin
+-	install -m644 dynamips.1        $(DESTDIR)/man/man1
+-	install -m644 nvram_export.1    $(DESTDIR)/man/man1
+-	install -m644 hypervisor_mode.7 $(DESTDIR)/man/man7
++	install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/man/man1 $(DESTDIR)$(PREFIX)/man/man7 $(DESTDIR)$(PREFIX)/etc
++	install dynamips nvram_export   $(DESTDIR)$(PREFIX)/bin
++	install -m644 dynamips.1        $(DESTDIR)$(PREFIX)/man/man1
++	install -m644 nvram_export.1    $(DESTDIR)$(PREFIX)/man/man1
++	install -m644 hypervisor_mode.7 $(DESTDIR)$(PREFIX)/man/man7
+ # install -m644 example         $(DESTDIR)/etc/dynamips
+ 
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080517/110d6cfc/attachment.htm 


More information about the macports-changes mailing list