mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-04 18:40:19 +02:00
mallory: fix https://github.com/pentoo/pentoo-overlay/issues/627
This commit is contained in:
parent
fa6498ba74
commit
fc15bd3d88
5 changed files with 0 additions and 99 deletions
|
|
@ -1 +0,0 @@
|
|||
DIST mallory-0.2.0_p20130109.tar.bz2 452068 SHA256 7f0f94476c6e369b0d155d4484951066975e395746d0c02c3e2deb59fce0c05a SHA512 0e50cc46ff84e430932b5cd70da1759dde52ca2ab8c3153722b9711202cb64a59ca27571a90f2eb736d57e951e46e54b5ee7cb2659392733504ed09770aae67b WHIRLPOOL e78fb24aed1c9ef84722ade0ba593d146a6a5f4907eb114a4dbc388865c3af65f618a6f6a079c608215b342e2ef90371ad639d3a03374664d70c3a5f14d83025
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
diff -urN IntrepidusGroup-mallory-4c3ea86c5679.orig/src/plugin_managers/plugin/image_flip.py IntrepidusGroup-mallory-4c3ea86c5679/src/plugin_managers/plugin/image_flip.py
|
||||
--- IntrepidusGroup-mallory-4c3ea86c5679.orig/src/plugin_managers/plugin/image_flip.py 2013-01-09 23:48:03.000000000 +0800
|
||||
+++ IntrepidusGroup-mallory-4c3ea86c5679/src/plugin_managers/plugin/image_flip.py 2014-12-02 17:28:42.923025830 +0800
|
||||
@@ -1,5 +1,5 @@
|
||||
import config
|
||||
-import Image
|
||||
+from PIL import Image
|
||||
import StringIO
|
||||
from base import Base
|
||||
|
||||
diff -urN IntrepidusGroup-mallory-4c3ea86c5679.orig/src/plugin_managers/plugin/image_invert.py IntrepidusGroup-mallory-4c3ea86c5679/src/plugin_managers/plugin/image_invert.py
|
||||
--- IntrepidusGroup-mallory-4c3ea86c5679.orig/src/plugin_managers/plugin/image_invert.py 2013-01-09 23:48:03.000000000 +0800
|
||||
+++ IntrepidusGroup-mallory-4c3ea86c5679/src/plugin_managers/plugin/image_invert.py 2014-12-02 17:29:02.764027204 +0800
|
||||
@@ -1,6 +1,6 @@
|
||||
import config
|
||||
-import Image
|
||||
-import ImageChops
|
||||
+from PIL import Image
|
||||
+from PIL import ImageChops
|
||||
import StringIO
|
||||
from base import Base
|
||||
|
||||
diff -urN IntrepidusGroup-mallory-4c3ea86c5679.orig/src/protocol/http.py IntrepidusGroup-mallory-4c3ea86c5679/src/protocol/http.py
|
||||
--- IntrepidusGroup-mallory-4c3ea86c5679.orig/src/protocol/http.py 2013-01-09 23:48:03.000000000 +0800
|
||||
+++ IntrepidusGroup-mallory-4c3ea86c5679/src/protocol/http.py 2014-12-02 17:30:35.984033661 +0800
|
||||
@@ -10,7 +10,7 @@
|
||||
import zlib
|
||||
import gzip
|
||||
import time
|
||||
-import Image
|
||||
+from PIL import Image
|
||||
import sys
|
||||
import StringIO
|
||||
import logging
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd /usr/lib64/mallory/
|
||||
sudo -E ./launchgui.py
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd /usr/lib64/mallory/
|
||||
sudo ./mallory.py
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils python-single-r1 multilib
|
||||
|
||||
DESCRIPTION="An TCP/UDP transparent proxy that can be used to intercept network streams"
|
||||
HOMEPAGE="https://intrepidusgroup.com/insight/mallory/"
|
||||
SRC_URI="https://bitbucket.org/IntrepidusGroup/mallory/get/tip.tar.bz2 -> ${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/pynetfilter_conntrack
|
||||
dev-python/m2crypto
|
||||
dev-python/twisted-web
|
||||
dev-python/pyasn1
|
||||
dev-python/paramiko
|
||||
dev-python/pillow"
|
||||
#pillow: 508266
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
#dev-python/pyro: the bundled Pyro-2.10 is too old
|
||||
|
||||
S="${WORKDIR}/IntrepidusGroup-mallory-4c3ea86c5679"
|
||||
|
||||
src_prepare(){
|
||||
epatch "${FILESDIR}/mallory-pillow.patch"
|
||||
#add shebang
|
||||
sed -e '1s|^|#!/usr/bin/env python\n\n|' -i src/mallory.py src/launchgui.py
|
||||
|
||||
#TODO: change .log file location, sed src/config.py
|
||||
}
|
||||
|
||||
src_install(){
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
|
||||
cp -R src/* "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
|
||||
#The python line is in wrong place. We patch it manually
|
||||
# python_fix_shebang "${ED}"/usr/$(get_libdir)/${PN}/${PN}.py
|
||||
|
||||
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
|
||||
fperms +x /usr/$(get_libdir)/${PN}/launchgui.py
|
||||
|
||||
#TODO
|
||||
#dodesktop sudo -E python2.7 ./launchgui.py
|
||||
dobin "${FILESDIR}"/{malloryd,mallory_gui}
|
||||
|
||||
dodoc README SETUP CONTRIB
|
||||
}
|
||||
Loading…
Reference in a new issue