summaryrefslogtreecommitdiff
path: root/emulators/dynagen-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/dynagen-devel/files')
-rw-r--r--emulators/dynagen-devel/files/patch-dynagen11
-rw-r--r--emulators/dynagen-devel/files/patch-dynamips_lib.py15
-rw-r--r--emulators/dynagen-devel/files/patch-setup.py25
3 files changed, 51 insertions, 0 deletions
diff --git a/emulators/dynagen-devel/files/patch-dynagen b/emulators/dynagen-devel/files/patch-dynagen
new file mode 100644
index 000000000000..efa94d13df08
--- /dev/null
+++ b/emulators/dynagen-devel/files/patch-dynagen
@@ -0,0 +1,11 @@
+--- dynagen.orig Sun Feb 18 17:28:09 2007
++++ dynagen Mon Feb 26 16:50:51 2007
+@@ -34,7 +34,7 @@
+
+ # Constants
+ VERSION = '0.10.1.090807'
+-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-devel/files/patch-dynamips_lib.py b/emulators/dynagen-devel/files/patch-dynamips_lib.py
new file mode 100644
index 000000000000..4afa348c4f81
--- /dev/null
+++ b/emulators/dynagen-devel/files/patch-dynamips_lib.py
@@ -0,0 +1,15 @@
+--- dynamips_lib.py.orig Thu Sep 13 20:41:38 2007
++++ dynamips_lib.py Thu Sep 13 20:43:22 2007
+@@ -1681,7 +1681,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))
+
+ def __getsparsemem(self):
+ """ Returns the sparsemem
diff --git a/emulators/dynagen-devel/files/patch-setup.py b/emulators/dynagen-devel/files/patch-setup.py
new file mode 100644
index 000000000000..3bffa985ea88
--- /dev/null
+++ b/emulators/dynagen-devel/files/patch-setup.py
@@ -0,0 +1,25 @@
+--- /dev/null Sat Nov 25 10:03:22 2006
++++ setup.py Wed Oct 11 02:08:24 2006
+@@ -0,0 +1,22 @@
++#!/usr/bin/env python
++
++"""Setup script for the dynagen module distribution."""
++# run this like python setup --root=/usr/local
++
++from distutils.core import setup, Extension
++
++setup( # Distribution meta-data
++ name = "dynagen",
++ version = "0.4.4",
++ 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']
++)
++
++print "If you have installed the modules, copy dynagen to some "
++print "place in your $PATH, like /usr/local/bin/."