summaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-11-08 23:34:32 +0000
committermiwi <miwi@FreeBSD.org>2006-11-08 23:34:32 +0000
commit81bc1beef9fda88d5dfdd5b4423da72a10e2084e (patch)
tree86a44ab3455257cbbeea7dbae296a9f05921bbb7 /emulators
parentb867670bd5d3d76011835cd94a80c713dce4459f (diff)
downloadFreeBSD-ports-81bc1beef9fda88d5dfdd5b4423da72a10e2084e.zip
FreeBSD-ports-81bc1beef9fda88d5dfdd5b4423da72a10e2084e.tar.gz
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>
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 c6b3c20..2443c18 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 0000000..798c46f
--- /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 0000000..e9d462f
--- /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 0000000..10d09f6
--- /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 0000000..4da72d1
--- /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 0000000..da9de34
--- /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%%
OpenPOWER on IntegriCloud