summaryrefslogtreecommitdiff
blob: 372d6f252645fda8876745578484e8a676d4add8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit python distutils

DESCRIPTION="sslstrip remove https and forwards http"
HOMEPAGE="http://www.thoughtcrime.org/software/sslstrip/"
SRC_URI="http://www.thoughtcrime.org/software/sslstrip/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND=""
RDEPEND=">=dev-lang/python-2.5
		 >=dev-python/twisted-web-8.1.0"

src_compile() {
	einfo "Nothing to compile"
}

src_install() {
	dodir /usr/lib/"${PN}"
	insinto /usr/lib/"${PN}"
	doins sslstrip.py lock.ico
	dodir /usr/lib/${PN}/sslstrip
	insinto /usr/lib/${PN}/sslstrip
	doins sslstrip/*.py
	dosbin "${FILESDIR}"/sslstrip
	dodoc README
}

pkg_postinst() {
	python_mod_optimize /usr/lib/sslstrip/sslstrip/
}

pkg_postrm() {
	python_mod_cleanup /usr/lib/sslstrip/sslstrip/
}