aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-06-20 14:36:28 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-06-20 14:36:28 +0000
commit323fcfa061a698a216588735b819a9f68276c1a2 (patch)
tree1f19bb355372d6e7bcc273ea1e96d02df3183cdb
parent45d2d2334f2d2b5fe28b0658eb8fae40ffaf2062 (diff)
downloadports-323fcfa061a698a216588735b819a9f68276c1a2.tar.gz
ports-323fcfa061a698a216588735b819a9f68276c1a2.zip
Notes
-rw-r--r--emulators/dynagen/Makefile23
-rw-r--r--emulators/dynagen/distinfo6
-rw-r--r--emulators/dynagen/files/patch-confConsole.py8
-rw-r--r--emulators/dynagen/files/patch-console.py8
-rw-r--r--emulators/dynagen/files/patch-dynagen20
-rw-r--r--emulators/dynagen/files/patch-dynamips_lib.py21
-rw-r--r--emulators/dynagen/files/patch-pemu_lib.py8
-rw-r--r--emulators/dynagen/files/patch-setup.py12
-rw-r--r--emulators/dynagen/pkg-plist33
9 files changed, 92 insertions, 47 deletions
diff --git a/emulators/dynagen/Makefile b/emulators/dynagen/Makefile
index d71222b17b62..74126438a384 100644
--- a/emulators/dynagen/Makefile
+++ b/emulators/dynagen/Makefile
@@ -6,20 +6,19 @@
#
PORTNAME= dynagen
-PORTVERSION= 0.9.3
-PORTREVISION= 1
+PORTVERSION= 0.11.0
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dyna-gen
MAINTAINER= pol@opk.ru
-COMMENT= Text-based front end for Dynamips
+COMMENT= Text-based front end for Dynamips development version
-RUN_DEPENDS= dynamips:${PORTSDIR}/emulators/dynamips
+RUN_DEPENDS= dynamips:${PORTSDIR}/emulators/dynamips-devel
+# Note that it *should* be dynamips-devel but that port installs it as dynamips
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PYDISTUTILS_PKGVERSION= 0.4.4
ALL_TARGET= # empty
USE_GCC= 3.4+
USE_DOS2UNIX= yes
@@ -43,16 +42,18 @@ post-install:
.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/ethernet_switch
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/ethernet_switch/ethsw1.net ${EXAMPLESDIR}/sample_labs/ethernet_switch
${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/multiserver
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/multiserver/multiserver.net ${EXAMPLESDIR}/sample_labs/multiserver
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/pix
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/pix/pixtest.net ${EXAMPLESDIR}/sample_labs/pix
+ ${MKDIR} ${EXAMPLESDIR}/sample_labs/simple1
+ ${INSTALL_DATA} ${WRKSRC}/sample_labs/simple1/simple1.net ${EXAMPLESDIR}/sample_labs/simple1
${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
index 67138cfd2380..82833547a5ed 100644
--- a/emulators/dynagen/distinfo
+++ b/emulators/dynagen/distinfo
@@ -1,3 +1,3 @@
-MD5 (dynagen-0.9.3.tar.gz) = 89e9715f968e9d00fd73d718450ce658
-SHA256 (dynagen-0.9.3.tar.gz) = b2a22658fb54f92d15dfc6063f8f9abb959fb6a54804091db658ef70e0de88ab
-SIZE (dynagen-0.9.3.tar.gz) = 606741
+MD5 (dynagen-0.11.0.tar.gz) = 3f88b3449b17096dca84d007f0b91b3f
+SHA256 (dynagen-0.11.0.tar.gz) = 53523fe13e151c0476596315aa724d50c6523ab72bb64d0ffc8d3ea8ad4e9628
+SIZE (dynagen-0.11.0.tar.gz) = 1418846
diff --git a/emulators/dynagen/files/patch-confConsole.py b/emulators/dynagen/files/patch-confConsole.py
new file mode 100644
index 000000000000..9e5fe341d9b9
--- /dev/null
+++ b/emulators/dynagen/files/patch-confConsole.py
@@ -0,0 +1,8 @@
+--- confConsole.py.orig 2008-06-11 14:54:32.000000000 +0400
++++ confConsole.py 2008-06-11 14:54:43.000000000 +0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+ # -*- coding: utf-8 -*-
+
+ """
diff --git a/emulators/dynagen/files/patch-console.py b/emulators/dynagen/files/patch-console.py
new file mode 100644
index 000000000000..375940fc086e
--- /dev/null
+++ b/emulators/dynagen/files/patch-console.py
@@ -0,0 +1,8 @@
+--- console.py.orig 2008-06-11 14:53:38.000000000 +0400
++++ console.py 2008-06-11 14:53:57.000000000 +0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+ # -*- coding: utf-8 -*-
+
+ """
diff --git a/emulators/dynagen/files/patch-dynagen b/emulators/dynagen/files/patch-dynagen
index 5bf5d06d5461..3531ff437ce4 100644
--- a/emulators/dynagen/files/patch-dynagen
+++ b/emulators/dynagen/files/patch-dynagen
@@ -1,11 +1,17 @@
---- dynagen.orig Sun Feb 18 17:28:09 2007
-+++ dynagen Mon Feb 26 16:50:51 2007
-@@ -34,7 +34,7 @@
+--- dynagen.orig 2008-06-11 11:42:34.000000000 +0400
++++ dynagen 2008-06-11 12:18:16.000000000 +0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+ # -*- coding: utf-8 -*-
+
+ """
+@@ -41,7 +41,7 @@
# Constants
- VERSION = '0.9.3.061007'
--CONFIGSPECPATH = [ "/usr/share/dynagen", "/usr/local/share" ]
-+CONFIGSPECPATH = [ "/usr/local/share/dynagen", "/usr/share/dynagen", "/usr/local/share" ]
+ VERSION = '0.11.0'
+-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" ]
+ INIPATH = ['/etc', '/usr/local/etc']
INIFILE = 'dynagen.ini'
diff --git a/emulators/dynagen/files/patch-dynamips_lib.py b/emulators/dynagen/files/patch-dynamips_lib.py
index 199fa313aea0..2b9840e1a7dc 100644
--- a/emulators/dynagen/files/patch-dynamips_lib.py
+++ b/emulators/dynagen/files/patch-dynamips_lib.py
@@ -1,15 +1,8 @@
---- dynamips_lib.py.orig Sun Feb 18 17:28:09 2007
-+++ dynamips_lib.py Mon Feb 26 21:05:00 2007
-@@ -1411,7 +1411,11 @@
- flag = '1'
- else:
- flag = '0'
-- send(self.__d, 'vm set_sparse_mem %s %s' % (self.__name, flag))
-+
-+ # Workaround for "*** Error: Unknown command 'set_sparse_mem'" message
-+ # with dynamips-0.2.5.
-+ if flag == 1:
-+ send(self.__d, 'vm set_sparse_mem %s %s' % (self.__name, flag))
+--- dynamips_lib.py.orig 2008-06-11 14:52:21.000000000 +0400
++++ dynamips_lib.py 2008-06-11 14:52:36.000000000 +0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+ # -*- coding: utf-8 -*-
- def __getsparsemem(self):
- """ Returns the sparsemem
+ """
diff --git a/emulators/dynagen/files/patch-pemu_lib.py b/emulators/dynagen/files/patch-pemu_lib.py
new file mode 100644
index 000000000000..55611ffcb8ec
--- /dev/null
+++ b/emulators/dynagen/files/patch-pemu_lib.py
@@ -0,0 +1,8 @@
+--- pemu_lib.py.orig 2008-06-11 14:50:50.000000000 +0400
++++ pemu_lib.py 2008-06-11 14:51:02.000000000 +0400
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/local/bin/python
+ # -*- coding: utf-8 -*-
+
+ """
diff --git a/emulators/dynagen/files/patch-setup.py b/emulators/dynagen/files/patch-setup.py
index 3bffa985ea88..c1479b0c8159 100644
--- a/emulators/dynagen/files/patch-setup.py
+++ b/emulators/dynagen/files/patch-setup.py
@@ -1,5 +1,5 @@
---- /dev/null Sat Nov 25 10:03:22 2006
-+++ setup.py Wed Oct 11 02:08:24 2006
+--- /dev/null 2008-06-11 11:33:00.000000000 +0400
++++ setup.py 2008-06-11 11:38:41.000000000 +0400
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
@@ -10,15 +10,15 @@
+
+setup( # Distribution meta-data
+ name = "dynagen",
-+ version = "0.4.4",
++ version = "0.11.0",
+ description = "A frontend for dynamips",
+ author = "Greg Anuzelli",
+ author_email = "dynagen@gmail.com",
+ url = "http://sourceforge.net/projects/dyna-gen",
+
-+ #py_modules = [ 'console', 'dynamips_lib']
-+ py_modules = [ 'configobj', 'console', 'dynamips_lib',
-+ 'validate']
++ py_modules = ['confConsole','configobj','console','dynamips_lib',
++ 'pemu_lib', 'pemubin', 'pemuwrapper',
++ 'validate']
+)
+
+print "If you have installed the modules, copy dynagen to some "
diff --git a/emulators/dynagen/pkg-plist b/emulators/dynagen/pkg-plist
index 5aa51202b6d3..9c3ddf16561a 100644
--- a/emulators/dynagen/pkg-plist
+++ b/emulators/dynagen/pkg-plist
@@ -2,35 +2,52 @@ 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/confConsole.py
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/pemu_lib.py
+lib/%%PYTHON_VERSION%%/site-packages/pemubin.py
+lib/%%PYTHON_VERSION%%/site-packages/pemuwrapper.py
lib/%%PYTHON_VERSION%%/site-packages/validate.py
+lib/%%PYTHON_VERSION%%/site-packages/confConsole.pyc
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/pemu_lib.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pemubin.pyc
+lib/%%PYTHON_VERSION%%/site-packages/pemuwrapper.pyc
lib/%%PYTHON_VERSION%%/site-packages/validate.pyc
+lib/%%PYTHON_VERSION%%/site-packages/confConsole.pyo
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/pemu_lib.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pemubin.pyo
+lib/%%PYTHON_VERSION%%/site-packages/pemuwrapper.pyo
lib/%%PYTHON_VERSION%%/site-packages/validate.pyo
-%%EXAMPLESDIR%%/sample_labs/simple1/simple1.net
-%%EXAMPLESDIR%%/sample_labs/multiserver/multiserver.net
+%%EXAMPLESDIR%%/sample_labs/ethernet_switch/ethsw1.net
%%EXAMPLESDIR%%/sample_labs/frame_relay/frame_relay1.net
+%%EXAMPLESDIR%%/sample_labs/multiserver/multiserver.net
+%%EXAMPLESDIR%%/sample_labs/pix/pixtest.net
+%%EXAMPLESDIR%%/sample_labs/simple1/simple1.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/ethernet_switch
@dirrm %%EXAMPLESDIR%%/sample_labs/frame_relay
+@dirrm %%EXAMPLESDIR%%/sample_labs/multiserver
+@dirrm %%EXAMPLESDIR%%/sample_labs/pix
+@dirrm %%EXAMPLESDIR%%/sample_labs/simple1
@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/image002.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image002.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image003.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image003.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image004.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image004.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image005.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image006.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image007.jpg
@@ -38,9 +55,13 @@ lib/%%PYTHON_VERSION%%/site-packages/validate.pyo
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image009.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image010.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image011.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image011.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image012.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image012.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image013.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image013.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image014.gif
+%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image014.jpg
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image015.gif
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image016.gif
%%PORTDOCS%%%%DOCSDIR%%/tutorial_files/image017.gif