summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago M. Mola <coldwind@gentoo.org>2007-02-06 21:06:45 +0000
committerSantiago M. Mola <coldwind@gentoo.org>2007-02-06 21:06:45 +0000
commit58d73cadfe12dd0d0bdf8e7cbd2382b0ff2e210a (patch)
treeef8a6279b0502aecb8d8e318d3900d75bb2ba411 /net-analyzer/packetgarden
parentdev-python/pypcap: Initial ebuild for bug #165531 (diff)
downloadsunrise-reviewed-58d73cadfe12dd0d0bdf8e7cbd2382b0ff2e210a.tar.gz
sunrise-reviewed-58d73cadfe12dd0d0bdf8e7cbd2382b0ff2e210a.tar.bz2
sunrise-reviewed-58d73cadfe12dd0d0bdf8e7cbd2382b0ff2e210a.zip
typo
svn path=/sunrise/; revision=2947
Diffstat (limited to 'net-analyzer/packetgarden')
-rw-r--r--net-analyzer/packetgarden/ChangeLog9
-rw-r--r--net-analyzer/packetgarden/Manifest24
-rw-r--r--net-analyzer/packetgarden/files/digest-packetgarden-1.03
-rw-r--r--net-analyzer/packetgarden/files/packetgarden-1.0-games-path.patch40
-rw-r--r--net-analyzer/packetgarden/files/packetgarden-1.0-launcher.patch28
-rw-r--r--net-analyzer/packetgarden/metadata.xml5
-rw-r--r--net-analyzer/packetgarden/packetgarden-1.0.ebuild54
7 files changed, 163 insertions, 0 deletions
diff --git a/net-analyzer/packetgarden/ChangeLog b/net-analyzer/packetgarden/ChangeLog
new file mode 100644
index 000000000..43a79d9be
--- /dev/null
+++ b/net-analyzer/packetgarden/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-analyzer/packetgarden
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 06 Feb 2007; Santiago M. Mola <cooldwind@gmail.com>
+ +packetgarden-1.0.ebuild, +files/packetgarden-1.0-games-path.patch,
+ +files/packetgarden-1.0-launcher.patch, +metadata.xml:
+ Initial ebuild for bug #162593
+
diff --git a/net-analyzer/packetgarden/Manifest b/net-analyzer/packetgarden/Manifest
new file mode 100644
index 000000000..36af9fb28
--- /dev/null
+++ b/net-analyzer/packetgarden/Manifest
@@ -0,0 +1,24 @@
+AUX packetgarden-1.0-games-path.patch 2177 RMD160 8a7f439ac8fbf3b1793e41c2ccfeddee0f2cfa81 SHA1 301c446f747bb608be04944090bd7c198eac2333 SHA256 1725c61b6c6e020c9f77a98d1eec0feaba25ab80e643503e3c8200f2ec3a37ca
+MD5 e3e2fb27565c6550918eaa3dcac1b2f7 files/packetgarden-1.0-games-path.patch 2177
+RMD160 8a7f439ac8fbf3b1793e41c2ccfeddee0f2cfa81 files/packetgarden-1.0-games-path.patch 2177
+SHA256 1725c61b6c6e020c9f77a98d1eec0feaba25ab80e643503e3c8200f2ec3a37ca files/packetgarden-1.0-games-path.patch 2177
+AUX packetgarden-1.0-launcher.patch 1113 RMD160 e09bb3ef6d04561d2d4a4fb014c0aebcc788d20d SHA1 de9b4b02f40c86445d4400143b8b7b3988ff77c4 SHA256 cfb01a827c2b6dd0e0e192f44ebdf8a40ff77f8b20e4e2df3a1a8b3df19a22d4
+MD5 3217efff57b4f06271479f8111a970cc files/packetgarden-1.0-launcher.patch 1113
+RMD160 e09bb3ef6d04561d2d4a4fb014c0aebcc788d20d files/packetgarden-1.0-launcher.patch 1113
+SHA256 cfb01a827c2b6dd0e0e192f44ebdf8a40ff77f8b20e4e2df3a1a8b3df19a22d4 files/packetgarden-1.0-launcher.patch 1113
+DIST packetgarden_1.0_all.tar.gz 2753341 RMD160 3552f7928f36bf26e253f18694d494bad724435f SHA1 283f28b20d72d6e0296736e74866d875206097db SHA256 1bca146c2d448a14edd491214c0490cc76acc0fe416e9466e0eac9aeb31e4e6c
+EBUILD packetgarden-1.0.ebuild 1211 RMD160 f1156382ec9dd8ca6e86752f39849dce1ee37a50 SHA1 8434b35b519f56478fc807e16e5830533ce898cb SHA256 f5d3f75ab7ab2af0ba44cc44d8ffe499f821f3a3e776bc3d18846f2513d009fb
+MD5 3b19f43ff0c835d41e5d03b0a5f012ca packetgarden-1.0.ebuild 1211
+RMD160 f1156382ec9dd8ca6e86752f39849dce1ee37a50 packetgarden-1.0.ebuild 1211
+SHA256 f5d3f75ab7ab2af0ba44cc44d8ffe499f821f3a3e776bc3d18846f2513d009fb packetgarden-1.0.ebuild 1211
+MISC ChangeLog 341 RMD160 e15c3b058544f6bb0545de5f30e67ff36e77ae27 SHA1 315c4ce99609722b51a8b71e2c1b69b72cb19e80 SHA256 0f0b73fa5e17ecf886b1325c1dd34ea1580fbd9c763b147b8721cdc8dfa5d07a
+MD5 0f47be6e75b7fab197151afddb3767cb ChangeLog 341
+RMD160 e15c3b058544f6bb0545de5f30e67ff36e77ae27 ChangeLog 341
+SHA256 0f0b73fa5e17ecf886b1325c1dd34ea1580fbd9c763b147b8721cdc8dfa5d07a ChangeLog 341
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
+MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
+RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
+SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170
+MD5 b76af48f033312ddc5236f6ff2c6feed files/digest-packetgarden-1.0 265
+RMD160 7c4d7e84364c6ee819f932ac57dea28aa234b251 files/digest-packetgarden-1.0 265
+SHA256 12640b15c5dc06c7d7691d353e3a022b17705ee2be68317c67b22c11ae362bf7 files/digest-packetgarden-1.0 265
diff --git a/net-analyzer/packetgarden/files/digest-packetgarden-1.0 b/net-analyzer/packetgarden/files/digest-packetgarden-1.0
new file mode 100644
index 000000000..71ae5a9b4
--- /dev/null
+++ b/net-analyzer/packetgarden/files/digest-packetgarden-1.0
@@ -0,0 +1,3 @@
+MD5 e4017a46f123253665a3d2585ae15aa5 packetgarden_1.0_all.tar.gz 2753341
+RMD160 3552f7928f36bf26e253f18694d494bad724435f packetgarden_1.0_all.tar.gz 2753341
+SHA256 1bca146c2d448a14edd491214c0490cc76acc0fe416e9466e0eac9aeb31e4e6c packetgarden_1.0_all.tar.gz 2753341
diff --git a/net-analyzer/packetgarden/files/packetgarden-1.0-games-path.patch b/net-analyzer/packetgarden/files/packetgarden-1.0-games-path.patch
new file mode 100644
index 000000000..79ab76401
--- /dev/null
+++ b/net-analyzer/packetgarden/files/packetgarden-1.0-games-path.patch
@@ -0,0 +1,40 @@
+--- pg_garden.py.orig 2007-02-06 20:33:04.000000000 +0100
++++ pg_garden.py 2007-02-06 20:47:43.000000000 +0100
+@@ -331,7 +331,7 @@
+ os.execl('pg_garden.exe')
+ else:
+ try:
+- os.execl('/usr/share/games/packetgarden/pg_garden.py')
++ os.execl('/usr/share/packetgarden/pg_garden.py')
+ except:
+ os.execl('python ./pg_garden.py')
+
+@@ -1297,7 +1297,7 @@
+ self.send.visible = 0
+ self.send_label.visible = 0
+ try:
+- cap = subprocess.Popen("gksudo --message='Packet Garden needs permission to read information from your network card.' python /usr/share/games/packetgarden/pg_packet.py " +self.device +" " +PG_DIR, shell=True)
++ cap = subprocess.Popen("gksudo --message='Packet Garden needs permission to read information from your network card.' python /usr/share/packetgarden/pg_packet.py " +self.device +" " +PG_DIR, shell=True)
+ except:
+ cap = subprocess.Popen("gksudo --message='Packet Garden needs permission to read information from your network card.' python ./pg_packet.py " +self.device +" " +PG_DIR, shell=True)
+ menu_toggle(1)
+@@ -1320,7 +1320,7 @@
+ except:
+ pass
+ try:
+- subprocess.Popen("gksudo --message='Packet Garden needs permission to stop the capture process.' /usr/share/games/packetgarden/stop_capture", shell=True)
++ subprocess.Popen("gksudo --message='Packet Garden needs permission to stop the capture process.' /usr/share/packetgarden/stop_capture", shell=True)
+ except:
+ subprocess.Popen("gksudo --message='Packet Garden needs permission to stop the capture process.' ./stop_capture", shell=True)
+ menu_toggle(1)
+--- pg_player.py.orig 2007-01-29 08:25:32.000000000 +0100
++++ pg_player.py 2007-02-06 20:48:10.000000000 +0100
+@@ -86,7 +86,7 @@
+ os.execl('pg_garden.exe')
+ else: # defaults to Linux
+ try:
+- os.execl('/usr/share/games/packetgarden/pg_garden.py')
++ os.execl('/usr/share/packetgarden/pg_garden.py')
+ except:
+ os.execl('python ./pg_garden.py')
+ elif self.event[1] == sdlconst.K_LEFT: self.left_key_down = 1
diff --git a/net-analyzer/packetgarden/files/packetgarden-1.0-launcher.patch b/net-analyzer/packetgarden/files/packetgarden-1.0-launcher.patch
new file mode 100644
index 000000000..9cadbe496
--- /dev/null
+++ b/net-analyzer/packetgarden/files/packetgarden-1.0-launcher.patch
@@ -0,0 +1,28 @@
+--- packetgarden.orig 2007-02-06 01:51:24.000000000 +0100
++++ packetgarden 2007-02-06 01:56:38.000000000 +0100
+@@ -6,20 +6,20 @@
+ if [ "$1" = "-local" ]; then {
+ export EXECDIR=.
+ } else {
+- export EXECDIR=/usr/share/games/packetgarden/
++ export EXECDIR=/usr/share/packetgarden/
+ }
+ fi
+ if ls $HOME/.packetgarden; then {
+ echo "user directory already exists"
+- $EXECDIR/pg_garden.py
++ python $EXECDIR/pg_garden.py
+ } else {
+- echo "first run.. copying game data from /usr/share/games/packetgarden to ~/.packetgarden.."
++ echo "first run.. copying data from /usr/share/packetgarden to ~/.packetgarden.."
+ mkdir $HOME/.packetgarden
+ if [ "$1" = "-local" ]; then {
+ cp -r config data guide logs labels stats $HOME/.packetgarden/
+ } else {
+- cd /usr/share/games/packetgarden/ ; cp -r config data guide logs labels stats $HOME/.packetgarden/
++ cd /usr/share/packetgarden/ ; cp -r config data guide logs labels stats $HOME/.packetgarden/
+ } fi
+- $EXECDIR/pg_garden.py
++ python $EXECDIR/pg_garden.py
+ } fi
+ } fi
diff --git a/net-analyzer/packetgarden/metadata.xml b/net-analyzer/packetgarden/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/net-analyzer/packetgarden/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>
diff --git a/net-analyzer/packetgarden/packetgarden-1.0.ebuild b/net-analyzer/packetgarden/packetgarden-1.0.ebuild
new file mode 100644
index 000000000..576419795
--- /dev/null
+++ b/net-analyzer/packetgarden/packetgarden-1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+MY_P="${P/-/_}_all"
+
+DESCRIPTION="captures information about how you use the internet and use it to
+grow a private world"
+HOMEPAGE="http://www.packetgarden.com/"
+SRC_URI="http://selectparks.net/~julian/pg/dists/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-python/dpkt
+ dev-python/imaging
+ dev-python/geoip-python
+ dev-python/pypcap
+ >=dev-python/soya-0.13_rc1
+ x11-libs/gksu"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ if !built_with_use dev-python/soya openal ; then
+ eerror "${PN} needs dev-python/soya built with openal USE flag enabled."
+ die "dev-python/soya without openal"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-launcher.patch"
+ epatch "${FILESDIR}/${P}-games-path.patch"
+ mv stop_capture packetgarden-stop
+}
+
+src_install() {
+ dobin packetgarden packetgarden-stop
+ insinto /usr/share/${PN}
+ doins -r config data guide labels logs stats pg_*.py
+ dodoc README_LINUX.txt
+}
+
+pkg_postinst() {
+ elog "In order to get a good performance it is very recomended"
+ elog "to install dev-python/psyco"
+}