diff options
author | Duncan Lockwood (dunc) <dunc@lemonia.org> | 2009-01-22 10:31:09 +0000 |
---|---|---|
committer | Duncan Lockwood (dunc) <dunc@lemonia.org> | 2009-01-22 10:31:09 +0000 |
commit | 40c544a0345ebc20f003a973651608723ac8ea1d (patch) | |
tree | b390fead94100222ea398a77147f713039d6db6e | |
parent | app-admin/procinfo-ng: Initial commit of app-admin/procinfo-ng (diff) | |
download | sunrise-40c544a0345ebc20f003a973651608723ac8ea1d.tar.gz sunrise-40c544a0345ebc20f003a973651608723ac8ea1d.tar.bz2 sunrise-40c544a0345ebc20f003a973651608723ac8ea1d.zip |
net-misc/gns3: New Ebuild for bug 213539 thanks to everyone in #gentoo-sunrise for help and Tommy[D] for review
svn path=/sunrise/; revision=7762
-rw-r--r-- | net-misc/gns3/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/gns3/Manifest | 6 | ||||
-rw-r--r-- | net-misc/gns3/files/gns3-0.6_set_dynamips_path.patch | 12 | ||||
-rw-r--r-- | net-misc/gns3/files/gns3-0.6_set_pemu_path.patch | 13 | ||||
-rw-r--r-- | net-misc/gns3/gns3-0.6.ebuild | 44 | ||||
-rw-r--r-- | net-misc/gns3/metadata.xml | 5 |
6 files changed, 90 insertions, 0 deletions
diff --git a/net-misc/gns3/ChangeLog b/net-misc/gns3/ChangeLog new file mode 100644 index 000000000..e0955c9f2 --- /dev/null +++ b/net-misc/gns3/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/gns3 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 22 Jan 2009; Duncan Lockwood (dunc) <dunc@lemonia.org> +gns3-0.6.ebuild, + +files/gns3-0.6_set_dynamips_path.patch, + +files/gns3-0.6_set_pemu_path.patch, +metadata.xml: + New Ebuild for bug 213539 thanks to everyone in #gentoo-sunrise for help and + Tommy[D] for review + diff --git a/net-misc/gns3/Manifest b/net-misc/gns3/Manifest new file mode 100644 index 000000000..b720c3671 --- /dev/null +++ b/net-misc/gns3/Manifest @@ -0,0 +1,6 @@ +AUX gns3-0.6_set_dynamips_path.patch 761 RMD160 e8140d6ffd437a112fe0c93dd08a039d69155f9a SHA1 51ec146aa4f2013d8aab8d659d8109c50406b342 SHA256 aff552a3bbbe58fddfcb9fde3a18177159be84f02b9c30e4ee6d988294959e59 +AUX gns3-0.6_set_pemu_path.patch 847 RMD160 edf4b166a2241c035dc07cac39294a92386d32fe SHA1 365aace013e54e4cec93b1d41299551cd9336497 SHA256 ecdca6451cd85ce34d2034de24b45ed9d82db9d7354132e25c62a15cd7579ffa +DIST GNS3-0.6-src.tar.bz2 2376743 RMD160 e9817344c848192e715521d6df70d6c136cd8110 SHA1 4aca1b7697251fc584c20d842ecd8122a8b509d7 SHA256 932e0cfa200a6988732aa1c40787c3d048e027f930feed9410cc8750d0b83b30 +EBUILD gns3-0.6.ebuild 856 RMD160 cdc8912f613f7d5253d766a9859e3bb0e8e60875 SHA1 f290394ac30cc0d1c6d60bf047779f1887d6659f SHA256 324d3092ad9575089f850641923b73e23cee8235d292e0026fa0d23f4631fad7 +MISC ChangeLog 388 RMD160 54df768d81f852fbb5d818f86306990a6629d16b SHA1 4c782db01743ffe008342d46d56c6eef7ec0c9f6 SHA256 417e4072d1bc5b429bbb874537eb466ead211b4c29511b089cca96a3442a6e17 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/net-misc/gns3/files/gns3-0.6_set_dynamips_path.patch b/net-misc/gns3/files/gns3-0.6_set_dynamips_path.patch new file mode 100644 index 000000000..0f903e3ef --- /dev/null +++ b/net-misc/gns3/files/gns3-0.6_set_dynamips_path.patch @@ -0,0 +1,12 @@ +diff -urN ../GNS3-0.6-src.orig/src/GNS3/Ui/ConfigurationPages/Page_PreferencesDynamips.py src/GNS3/Ui/ConfigurationPages/Page_PreferencesDynamips.py +--- ../GNS3-0.6-src.orig/src/GNS3/Ui/ConfigurationPages/Page_PreferencesDynamips.py 2008-12-14 19:50:57.000000000 +0000 ++++ src/GNS3/Ui/ConfigurationPages/Page_PreferencesDynamips.py 2009-01-19 14:26:24.000000000 +0000 +@@ -55,6 +55,8 @@ + # Default path to dynamips executable + if self.conf.path == '' and sys.platform.startswith('win'): + self.conf.path = unicode('C:\Program Files\GNS3\Dynamips\dynamips-wxp.exe') ++ else: ++ self.conf.path = unicode('/usr/bin/dynamips') + + # Default path to working directory + if self.conf.workdir == '': diff --git a/net-misc/gns3/files/gns3-0.6_set_pemu_path.patch b/net-misc/gns3/files/gns3-0.6_set_pemu_path.patch new file mode 100644 index 000000000..72eb6d83d --- /dev/null +++ b/net-misc/gns3/files/gns3-0.6_set_pemu_path.patch @@ -0,0 +1,13 @@ +diff -urN ../GNS3-0.6-src.orig/src/GNS3/Ui/ConfigurationPages/Page_PreferencesPemu.py src/GNS3/Ui/ConfigurationPages/Page_PreferencesPemu.py +--- ../GNS3-0.6-src.orig/src/GNS3/Ui/ConfigurationPages/Page_PreferencesPemu.py 2008-12-14 19:50:57.000000000 +0000 ++++ src/GNS3/Ui/ConfigurationPages/Page_PreferencesPemu.py 2009-01-19 16:04:27.000000000 +0000 +@@ -54,8 +54,7 @@ + if sys.platform.startswith('win'): + self.conf.pemuwrapper_path = unicode('C:\Program Files\GNS3\pemuwrapper.exe') + else: +- path = os.getcwd() + '/pemu/pemuwrapper.py' +- self.conf.pemuwrapper_path = unicode(path) ++ self.conf.pemuwrapper_path = unicode('/usr/libexec/gns3/pemuwrapper.py') + + # Default path to working directory + if self.conf.pemuwrapper_workdir == '': diff --git a/net-misc/gns3/gns3-0.6.ebuild b/net-misc/gns3/gns3-0.6.ebuild new file mode 100644 index 000000000..8b7060042 --- /dev/null +++ b/net-misc/gns3/gns3-0.6.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="1" + +inherit distutils + +MY_P=${P/gns/GNS}-src + +DESCRIPTION="Graphical Network Simulator" +HOMEPAGE="http://www.gns3.net/" +SRC_URI="mirror://sourceforge/gns-3/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="x11-libs/qt-gui:4 + x11-libs/qt-svg:4 + >=dev-python/PyQt4-4.1" + +RDEPEND="${DEPEND} + >=app-emulation/dynamips-0.2.8_rc2" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}_set_dynamips_path.patch" + epatch "${FILESDIR}/${P}_set_pemu_path.patch" +} + +src_install() { + distutils_src_install + doman docs/man/gns3.1 \ + || die "Installing man pages failed" + insinto /usr/libexec/gns3 + doins "${S}/pemu/pemuwrapper.py" \ + || die "Failed to install pemuwrapper.py" +} + diff --git a/net-misc/gns3/metadata.xml b/net-misc/gns3/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/net-misc/gns3/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |