aboutsummaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-11-08 23:34:32 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-11-08 23:34:32 +0000
commitc858900efe2b3c08292523bfa2b0c8fb34a52447 (patch)
tree3d3d36c05fd595d09c78f0be377378c6a99008be /emulators
parent97bacd96154e85c28c2a78e9495cfcd748e6e64f (diff)
downloadports-c858900efe2b3c08292523bfa2b0c8fb34a52447.tar.gz
ports-c858900efe2b3c08292523bfa2b0c8fb34a52447.zip
Dynagen is a front-end for use with the Dynamips Cisco router
emulator. It uses an INI-like configuration file to provision Dynamips emulator networks. It takes care of specifying the right port adapters, generating and matching up those pesky NIO descriptors, specifying bridges, frame-relay, ATM switches, etc. It also provides a management CLI for listing devices, suspending and reloading instances, etc. WWW: http://dyna-gen.sourceforge.net/ PR: ports/105282 Submitted by: trasz <trasz@pin.if.uz.zgora.pl>
Notes
Notes: svn path=/head/; revision=176880
Diffstat (limited to 'emulators')
-rw-r--r--emulators/Makefile1
-rw-r--r--emulators/dynagen/Makefile54
-rw-r--r--emulators/dynagen/distinfo3
-rw-r--r--emulators/dynagen/files/patch-dynagen11
-rw-r--r--emulators/dynagen/pkg-descr9
-rw-r--r--emulators/dynagen/pkg-plist48
6 files changed, 126 insertions, 0 deletions
diff --git a/emulators/Makefile b/emulators/Makefile
index c6b3c20d7f06..2443c187d455 100644
--- a/emulators/Makefile
+++ b/emulators/Makefile
@@ -21,6 +21,7 @@
SUBDIR += dosbox
SUBDIR += doscmd
SUBDIR += dtcyber
+ SUBDIR += dynagen
SUBDIR += dynamips
SUBDIR += e-uae
SUBDIR += extract-xiso
diff --git a/emulators/dynagen/Makefile b/emulators/dynagen/Makefile
new file mode 100644
index 000000000000..798c46fb9dd9
--- /dev/null
+++ b/emulators/dynagen/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: dynagen
+# Date created: 2006-11-07
+# Whom: trasz <trasz@pin.if.uz.zgora.pl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dynagen
+PORTVERSION= 0.6.0
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= dyna-gen
+
+MAINTAINER= trasz@pin.if.uz.zgora.pl
+COMMENT= Text-based front end for Dynamips
+
+RUN_DEPENDS= dynamips:${PORTSDIR}/emulators/dynamips
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+ALL_TARGET= # empty
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${PREFIX}/etc/dynagen.ini.sample
+
+ @if [ ! -f ${PREFIX}/etc/dynagen.ini ]; then \
+ ${CP} -p ${PREFIX}/etc/dynagen.ini.sample ${PREFIX}/etc/dynagen.ini ; \
+ fi
+
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/configspec ${DATADIR}/configspec
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/tutorial.htm ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}/tutorial_files
+ ${INSTALL_DATA} ${WRKSRC}/docs/tutorial_files/* ${DOCSDIR}/tutorial_files
+.endif
+ ${MKDIR} ${EXAMPLESDIR}
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/simple1
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/simple1/simple1.net ${EXAMPLESDIR}/sample_labs/simple1
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/multiserver
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/multiserver/multiserver.net ${EXAMPLESDIR}/sample_labs/multiserver
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/frame_relay
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/frame_relay/frame_relay1.net ${EXAMPLESDIR}/sample_labs/frame_relay
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/simple2
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/simple2/simple2.net ${EXAMPLESDIR}/sample_labs/simple2
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/ethernet_switch
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/ethernet_switch/ethsw1.net ${EXAMPLESDIR}/sample_labs/ethernet_switch
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/all_config_options.txt ${EXAMPLESDIR}/sample_labs
+
+.include <bsd.port.mk>
diff --git a/emulators/dynagen/distinfo b/emulators/dynagen/distinfo
new file mode 100644
index 000000000000..e9d462fcd3ad
--- /dev/null
+++ b/emulators/dynagen/distinfo
@@ -0,0 +1,3 @@
+MD5 (dynagen-0.6.0.tar.gz) = 0281115e4f833c127b775ca7ba293d6e
+SHA256 (dynagen-0.6.0.tar.gz) = 8f2df5e216590147802f942a819cde5ea019e415751ba28e61e9d17dd4132c41
+SIZE (dynagen-0.6.0.tar.gz) = 434954
diff --git a/emulators/dynagen/files/patch-dynagen b/emulators/dynagen/files/patch-dynagen
new file mode 100644
index 000000000000..10d09f6e134c
--- /dev/null
+++ b/emulators/dynagen/files/patch-dynagen
@@ -0,0 +1,11 @@
+--- dynagen.orig Wed Nov 8 07:26:20 2006
++++ dynagen Wed Nov 8 07:26:47 2006
+@@ -29,7 +29,7 @@
+
+ VERSION = '0.6.0.101006'
+ DEBUG = False
+-CONFIGSPECPATH = [ "/usr/share/dynagen", "/usr/local/share" ]
++CONFIGSPECPATH = [ "/usr/local/share/dynagen", "/usr/share/dynagen", "/usr/local/share" ]
+ CONFIGSPEC = 'configspec'
+ INIPATH = [ "/etc", "/usr/local/etc" ]
+ INIFILE = 'dynagen.ini'
diff --git a/emulators/dynagen/pkg-descr b/emulators/dynagen/pkg-descr
new file mode 100644
index 000000000000..4da72d1abb37
--- /dev/null
+++ b/emulators/dynagen/pkg-descr
@@ -0,0 +1,9 @@
+Dynagen is a front-end for use with the Dynamips Cisco router
+emulator. It uses an INI-like configuration file to provision
+Dynamips emulator networks. It takes care of specifying the right
+port adapters, generating and matching up those pesky NIO descriptors,
+specifying bridges, frame-relay, ATM switches, etc. It also provides
+a management CLI for listing devices, suspending and reloading
+instances, etc.
+
+WWW: http://dyna-gen.sourceforge.net/
diff --git a/emulators/dynagen/pkg-plist b/emulators/dynagen/pkg-plist
new file mode 100644
index 000000000000..da9de344663e
--- /dev/null
+++ b/emulators/dynagen/pkg-plist
@@ -0,0 +1,48 @@
+bin/dynagen
+@unexec if cmp -s %D/etc/dynagen.ini.sample %D/etc/dynagen.ini; then rm -f %D/etc/dynagen.ini; fi
+etc/dynagen.ini.sample
+@exec if [ ! -f %D/etc/dynagen.ini ] ; then cp -p %D/%F %B/dynagen.ini; fi
+lib/%%PYTHON_VERSION%%/site-packages/configobj.py
+lib/%%PYTHON_VERSION%%/site-packages/console.py
+lib/%%PYTHON_VERSION%%/site-packages/dynamips_lib.py
+lib/%%PYTHON_VERSION%%/site-packages/validate.py
+lib/%%PYTHON_VERSION%%/site-packages/configobj.pyc
+lib/%%PYTHON_VERSION%%/site-packages/console.pyc
+lib/%%PYTHON_VERSION%%/site-packages/dynamips_lib.pyc
+lib/%%PYTHON_VERSION%%/site-packages/validate.pyc
+lib/%%PYTHON_VERSION%%/site-packages/configobj.pyo
+lib/%%PYTHON_VERSION%%/site-packages/console.pyo
+lib/%%PYTHON_VERSION%%/site-packages/dynamips_lib.pyo
+lib/%%PYTHON_VERSION%%/site-packages/validate.pyo
+%%EXAMPLESDIR%%/sample_labs/simple1/simple1.net
+%%EXAMPLESDIR%%/sample_labs/multiserver/multiserver.net
+%%EXAMPLESDIR%%/sample_labs/frame_relay/frame_relay1.net
+%%EXAMPLESDIR%%/sample_labs/simple2/simple2.net
+%%EXAMPLESDIR%%/sample_labs/ethernet_switch/ethsw1.net
+%%EXAMPLESDIR%%/sample_labs/all_config_options.txt
+@dirrm %%EXAMPLESDIR%%/sample_labs/simple1
+@dirrm %%EXAMPLESDIR%%/sample_labs/multiserver
+@dirrm %%EXAMPLESDIR%%/sample_labs/frame_relay
+@dirrm %%EXAMPLESDIR%%/sample_labs/simple2
+@dirrm %%EXAMPLESDIR%%/sample_labs/ethernet_switch
+@dirrm %%EXAMPLESDIR%%/sample_labs
+@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image001.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image010.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image002.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image011.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image003.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image012.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image004.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image013.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image005.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image014.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image006.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image007.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image008.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image009.jpg
+%%PORTDOCS%%%%DOCSDIR%%/tutorial.htm
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutorial_files
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%DATADIR%%/configspec
+@dirrm %%DATADIR%%