diff options
author | miwi <miwi@FreeBSD.org> | 2009-02-15 03:25:53 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-02-15 03:25:53 +0800 |
commit | 9a0f6d078614ab76bf3fa8435968e58a7945d271 (patch) | |
tree | 7643002c2c7db44aff9722470836d797306fa610 /emulators/dynagui | |
parent | d0abb063635fa123a07c7d94528cda5b26026f95 (diff) | |
download | freebsd-ports-gnome-9a0f6d078614ab76bf3fa8435968e58a7945d271.tar.gz freebsd-ports-gnome-9a0f6d078614ab76bf3fa8435968e58a7945d271.tar.zst freebsd-ports-gnome-9a0f6d078614ab76bf3fa8435968e58a7945d271.zip |
Dynagui is a GUI frontend to the dynamips Cisco 7200/36XX router
simulator. It uses the dyna-gen library in order to communicate
with the dynamips hypervisor.
WWW: http://dynagui.sourceforge.net
PR: ports/131544
Submitted by: Andrew Greenwood
Diffstat (limited to 'emulators/dynagui')
-rw-r--r-- | emulators/dynagui/Makefile | 29 | ||||
-rw-r--r-- | emulators/dynagui/distinfo | 15 | ||||
-rw-r--r-- | emulators/dynagui/files/patch-dynagui.py | 40 | ||||
-rw-r--r-- | emulators/dynagui/files/patch-libs_canvas.py | 35 | ||||
-rw-r--r-- | emulators/dynagui/files/patch-libs_gui_c7200.py | 11 | ||||
-rw-r--r-- | emulators/dynagui/files/patch-setup.py | 23 | ||||
-rw-r--r-- | emulators/dynagui/pkg-descr | 5 | ||||
-rw-r--r-- | emulators/dynagui/pkg-plist | 65 |
8 files changed, 223 insertions, 0 deletions
diff --git a/emulators/dynagui/Makefile b/emulators/dynagui/Makefile new file mode 100644 index 000000000000..4ab53d14e77c --- /dev/null +++ b/emulators/dynagui/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: dynagui +# Date created: 5 February 2009 +# Whom: Andrew Greenwood +# +# $FreeBSD$ +# + +PORTNAME= dynagui +PORTVERSION= 0.4 +CATEGORIES= emulators +MASTER_SITES= SF +DIST_SUBDIR= dynagui + +MAINTAINER= greenwood.andy@gmail.com +COMMENT= GUI frontend to the dynamips router simulator + +BUILD_DEPENDS= dynagen:${PORTSDIR}/emulators/dynagen-devel + +USE_PYTHON= 2.5+ +USE_PYDISTUTILS= yes +IMGDIR= ${PREFIX}/share/${PORTNAME}/img + +post-install: + ${MKDIR} ${IMGDIR} + ${INSTALL_DATA} ${WRKSRC}/img/* ${IMGDIR} + ${CHMOD} 755 ${PYTHON_SITELIBDIR}/dynagui.py + ${LN} -sf ${PYTHON_SITELIBDIR}/dynagui.py ${PREFIX}/bin/dynagui.py + +.include <bsd.port.mk> diff --git a/emulators/dynagui/distinfo b/emulators/dynagui/distinfo new file mode 100644 index 000000000000..8a43b2d620d2 --- /dev/null +++ b/emulators/dynagui/distinfo @@ -0,0 +1,15 @@ +MD5 (dynagui/dynagui-0.4.tar.gz) = 23086095981ec89b40fae673ea452b3f +SHA256 (dynagui/dynagui-0.4.tar.gz) = e8b8d54bfd6a4ce0dda4b4bfb3a72b5c0445fbd5b81179ec5ef4516751734942 +SIZE (dynagui/dynagui-0.4.tar.gz) = 49015 +MD5 (dynagui/patch-dynagui.py) = afc7db95e6fdad475ac026f1a8ad8bcd +SHA256 (dynagui/patch-dynagui.py) = 19d583e5a2084c27c7a4d8d9a1bd7bd094c1c85f28cf1022e8ebf39de28042f6 +SIZE (dynagui/patch-dynagui.py) = 1884 +MD5 (dynagui/patch-libs_canvas.py) = 267a261374543bec07d8f6b58ebe1ddb +SHA256 (dynagui/patch-libs_canvas.py) = da50f589fab0dbe5bc77d10ce05a46ceca51e139e784eb267d694ed3b5a1becf +SIZE (dynagui/patch-libs_canvas.py) = 1656 +MD5 (dynagui/patch-setup.py) = 81f03364993a36cddf65b33e32cac928 +SHA256 (dynagui/patch-setup.py) = 2d1a6e4778a9484fe88dd61b8a9de18c9e2cf77efdee1f4ab1690e99b6f5cb5b +SIZE (dynagui/patch-setup.py) = 525 +MD5 (dynagui/patch-libs_gui_c7200.py) = 84d1f5e9a5134ccee12807ab72d04e08 +SHA256 (dynagui/patch-libs_gui_c7200.py) = 46cafb7e6593af9eb30ddb7d3fc1b15f2d0bd2a8d22766e75c32a3328f374849 +SIZE (dynagui/patch-libs_gui_c7200.py) = 467 diff --git a/emulators/dynagui/files/patch-dynagui.py b/emulators/dynagui/files/patch-dynagui.py new file mode 100644 index 000000000000..80c0f5bfef4c --- /dev/null +++ b/emulators/dynagui/files/patch-dynagui.py @@ -0,0 +1,40 @@ +--- dynagui.py.orig 2007-12-13 16:04:43.000000000 -0500 ++++ dynagui.py 2009-02-05 18:42:36.000000000 -0500 +@@ -27,17 +27,17 @@ + import pygtk; pygtk.require('2.0') + import gtk + import gobject +-from libs.canvas import MyCanvas +-from libs import lab_io +-from libs.lab import lab +-from libs.gui_router import GuiRouter +-from libs.dynamips_properties_dialog import DynamipsPropertiesDialog +-from libs.C3600_properties_dialog import C3600PropertiesDialog +-from libs.C7200_properties_dialog import C7200PropertiesDialog +-from libs.frsw_properties_dialog import FRSwitchPropertiesDialog +-from libs.atmsw_properties_dialog import ATMSwitchPropertiesDialog +-from libs.ethsw_properties_dialog import EthSwitchPropertiesDialog +-from libs.util import RouterSelectionDialog ++from dynagui_libs.canvas import MyCanvas ++from dynagui_libs import lab_io ++from dynagui_libs.lab import lab ++from dynagui_libs.gui_router import GuiRouter ++from dynagui_libs.dynamips_properties_dialog import DynamipsPropertiesDialog ++from dynagui_libs.C3600_properties_dialog import C3600PropertiesDialog ++from dynagui_libs.C7200_properties_dialog import C7200PropertiesDialog ++from dynagui_libs.frsw_properties_dialog import FRSwitchPropertiesDialog ++from dynagui_libs.atmsw_properties_dialog import ATMSwitchPropertiesDialog ++from dynagui_libs.ethsw_properties_dialog import EthSwitchPropertiesDialog ++from dynagui_libs.util import RouterSelectionDialog + + + ui_popup = \ +@@ -509,7 +509,7 @@ + if len(lab.devices)>0: + text = 'Select routers from which to extract configuration' + rcd = RouterSelectionDialog(lab.devices, text, show_path=True) +- from libs.nvram_io import read_conf_b64gz ++ from dynagui_libs.nvram_io import read_conf_b64gz + for d in rcd.selected_devices: + cgz64 = d.config_gz64 + conf = read_conf_b64gz(cgz64) diff --git a/emulators/dynagui/files/patch-libs_canvas.py b/emulators/dynagui/files/patch-libs_canvas.py new file mode 100644 index 000000000000..9f23d501a668 --- /dev/null +++ b/emulators/dynagui/files/patch-libs_canvas.py @@ -0,0 +1,35 @@ +--- libs/canvas.py.orig 2007-09-24 17:33:03.000000000 -0400 ++++ libs/canvas.py 2009-02-05 18:43:07.000000000 -0500 +@@ -25,19 +25,19 @@ + import time + from gtk import gdk + import dynamips_lib +-from libs.lab import lab, Connection +-from libs.util import setup_ghost +-from libs.gui_c3600 import GuiC3600 +-from libs.gui_c7200 import GuiC7200 +-from libs.gui_router import GuiRouter +-from libs.gui_frsw import GuiFRSwitch +-from libs.gui_atmsw import GuiATMSwitch +-from libs.gui_ethsw import GuiEthSwitch +-from libs.C3600_properties_dialog import C3600PropertiesDialog +-from libs.C7200_properties_dialog import C7200PropertiesDialog +-from libs.frsw_properties_dialog import FRSwitchPropertiesDialog +-from libs.atmsw_properties_dialog import ATMSwitchPropertiesDialog +-from libs.ethsw_properties_dialog import EthSwitchPropertiesDialog ++from dynagui_libs.lab import lab, Connection ++from dynagui_libs.util import setup_ghost ++from dynagui_libs.gui_c3600 import GuiC3600 ++from dynagui_libs.gui_c7200 import GuiC7200 ++from dynagui_libs.gui_router import GuiRouter ++from dynagui_libs.gui_frsw import GuiFRSwitch ++from dynagui_libs.gui_atmsw import GuiATMSwitch ++from dynagui_libs.gui_ethsw import GuiEthSwitch ++from dynagui_libs.C3600_properties_dialog import C3600PropertiesDialog ++from dynagui_libs.C7200_properties_dialog import C7200PropertiesDialog ++from dynagui_libs.frsw_properties_dialog import FRSwitchPropertiesDialog ++from dynagui_libs.atmsw_properties_dialog import ATMSwitchPropertiesDialog ++from dynagui_libs.ethsw_properties_dialog import EthSwitchPropertiesDialog + + term = 'xterm' # linux terminal + win_telnet = "telnet " # windows terminal diff --git a/emulators/dynagui/files/patch-libs_gui_c7200.py b/emulators/dynagui/files/patch-libs_gui_c7200.py new file mode 100644 index 000000000000..db6b3a1435d3 --- /dev/null +++ b/emulators/dynagui/files/patch-libs_gui_c7200.py @@ -0,0 +1,11 @@ +--- libs/gui_c7200.py.orig 2009-02-09 14:29:55.000000000 -0500 ++++ libs/gui_c7200.py 2009-02-09 14:30:28.000000000 -0500 +@@ -412,7 +412,7 @@ + + class GuiC7200(C7200, GuiRouter): + pixmap = cairo.ImageSurface.create_from_png( +- os.path.join('img', 'chassis.png')) ++ os.path.join('/usr/local/share/dynagui/img', 'chassis.png')) + + def __init__(self, dynamips, x=10, y=10, name=None): + GuiRouter.__init__(self, x, y) diff --git a/emulators/dynagui/files/patch-setup.py b/emulators/dynagui/files/patch-setup.py new file mode 100644 index 000000000000..ecb888d654c5 --- /dev/null +++ b/emulators/dynagui/files/patch-setup.py @@ -0,0 +1,23 @@ +--- setup.py.orig 1969-12-31 19:00:00.000000000 -0500 ++++ setup.py 2009-02-09 11:03:10.000000000 -0500 +@@ -0,0 +1,20 @@ ++#!/usr/bin/env python ++ ++from distutils.core import setup ++import os ++ ++try: ++ os.rename('libs','dynagui_libs') ++except: ++ pass ++ ++setup( name='dynagui', ++ version='0.4', ++ description='GUI-based frontend for the dynamips emulator', ++ author='', ++ author_email='', ++ url='', ++ py_modules=['dynagui'], ++ packages=['dynagui_libs'], ++ ) ++ diff --git a/emulators/dynagui/pkg-descr b/emulators/dynagui/pkg-descr new file mode 100644 index 000000000000..41f310387009 --- /dev/null +++ b/emulators/dynagui/pkg-descr @@ -0,0 +1,5 @@ +Dynagui is a GUI frontend to the dynamips Cisco 7200/36XX router +simulator. It uses the dyna-gen library in order to communicate +with the dynamips hypervisor. + +WWW: http://dynagui.sourceforge.net diff --git a/emulators/dynagui/pkg-plist b/emulators/dynagui/pkg-plist new file mode 100644 index 000000000000..467c670cd278 --- /dev/null +++ b/emulators/dynagui/pkg-plist @@ -0,0 +1,65 @@ +bin/dynagui.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/__init__.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/canvas.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_ethsw.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_router.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/frsw_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/lab_io.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_c7200.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/C3600_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/router_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/nvram_io.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/lab.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/dynamips_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_c3600.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/atmsw_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/util.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_atmsw.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_frsw.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/ethsw_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/C7200_properties_dialog.py +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/__init__.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/canvas.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_ethsw.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_router.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/frsw_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/lab_io.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_c7200.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/C3600_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/router_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/nvram_io.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/lab.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/dynamips_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_c3600.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/atmsw_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/util.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_atmsw.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_frsw.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/ethsw_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/C7200_properties_dialog.pyc +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/__init__.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/canvas.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_ethsw.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_router.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/frsw_properties_dialog.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/lab_io.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_c7200.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/C3600_properties_dialog.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/router_properties_dialog.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/nvram_io.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/lab.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/dynamips_properties_dialog.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_c3600.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/atmsw_properties_dialog.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/util.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_atmsw.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/gui_frsw.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/ethsw_properties_dialog.pyo +lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs/C7200_properties_dialog.pyo +%%DATADIR%%/img/chassis.png +@dirrm %%DATADIR%%/img +@dirrm %%DATADIR%% +@dirrm lib/%%PYTHON_VERSION%%/site-packages/dynagui_libs |