| 1 |
mrness |
1.1 |
# Copyright 1999-2005 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
chriswhite |
1.1.1.1 |
# $Header: /var/cvsroot/gentoo-x86/net-proxy/httpush/httpush-0.9_beta11.ebuild,v 1.2 2005/05/25 14:28:07 mcummings Exp $
|
| 4 |
mrness |
1.1 |
|
| 5 |
|
|
inherit eutils
|
| 6 |
|
|
|
| 7 |
|
|
MY_P="${P/_beta/b}"
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Httpush is an intercepting proxy, allowing user to modify HTTP requests on-the-fly"
|
| 10 |
|
|
HOMEPAGE="http://httpush.sourceforge.net/"
|
| 11 |
|
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
| 12 |
|
|
|
| 13 |
|
|
LICENSE="BSD"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
|
|
KEYWORDS="~x86"
|
| 16 |
|
|
IUSE="xml2"
|
| 17 |
|
|
|
| 18 |
|
|
RDEPEND="dev-perl/URI
|
| 19 |
chriswhite |
1.1.1.1 |
perl-core/MIME-Base64
|
| 20 |
mrness |
1.1 |
dev-perl/libwww-perl
|
| 21 |
|
|
dev-perl/Net-SSLeay
|
| 22 |
|
|
dev-perl/Crypt-SSLeay
|
| 23 |
|
|
dev-perl/HTML-Parser
|
| 24 |
|
|
xml2? ( dev-perl/XML-Twig )"
|
| 25 |
|
|
|
| 26 |
|
|
S="${WORKDIR}/${MY_P}"
|
| 27 |
|
|
|
| 28 |
|
|
pkg_setup() {
|
| 29 |
|
|
if ! useq xml2 ; then
|
| 30 |
|
|
echo
|
| 31 |
|
|
einfo "If you'd like to use httpush's learning mode, please CTRL-C now"
|
| 32 |
|
|
einfo "and enable the xml2 USE flag."
|
| 33 |
|
|
epause 3
|
| 34 |
|
|
echo
|
| 35 |
|
|
fi
|
| 36 |
|
|
}
|
| 37 |
|
|
|
| 38 |
|
|
src_unpack() {
|
| 39 |
|
|
unpack ${A}
|
| 40 |
|
|
cd ${S}
|
| 41 |
|
|
sed -i 's:^\(require httpush;\)$:push @INC, "/usr/lib/httpush";\n\1:' \
|
| 42 |
|
|
httpush.pl || die "sed INC failed"
|
| 43 |
|
|
sed -i 's:^\(.*DATADIR="\)data\(.*\)$:\1/var/lib/httpush\2:' *.pl \
|
| 44 |
|
|
lib/plugin/broker.pm || die "sed DATADIR= failed"
|
| 45 |
|
|
}
|
| 46 |
|
|
|
| 47 |
|
|
src_install() {
|
| 48 |
|
|
keepdir /var/lib/httpush
|
| 49 |
|
|
|
| 50 |
|
|
insinto /usr/lib/httpush
|
| 51 |
|
|
doins -r httpush.{dtd,lck,pem,pm} lib
|
| 52 |
|
|
|
| 53 |
|
|
insinto /usr/share/httpush/plugins
|
| 54 |
|
|
doins plugins/*
|
| 55 |
|
|
|
| 56 |
|
|
newbin httpush.pl httpush
|
| 57 |
|
|
newbin reindex.pl reindex
|
| 58 |
|
|
|
| 59 |
|
|
dodoc README ChangeLog LICENSE doc/*
|
| 60 |
|
|
}
|