/[gentoo-x86]/net-proxy/httpush/httpush-0.9_beta11-r1.ebuild
Gentoo

Contents of /net-proxy/httpush/httpush-0.9_beta11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Dec 14 14:28:01 2008 UTC (5 years, 4 months ago) by mrness
Branch: MAIN
CVS Tags: HEAD
Rename reindex script as httpush-reindex (#248176).
(Portage version: 2.1.4.5)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/httpush/httpush-0.9_beta11.ebuild,v 1.4 2006/03/06 19:18:38 mrness Exp $
4
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="xml"
17
18 RDEPEND="dev-perl/URI
19 virtual/perl-MIME-Base64
20 dev-perl/libwww-perl
21 dev-perl/Net-SSLeay
22 dev-perl/Crypt-SSLeay
23 dev-perl/HTML-Parser
24 xml? ( dev-perl/XML-Twig )"
25
26 S="${WORKDIR}/${MY_P}"
27
28 pkg_setup() {
29 if ! use xml ; then
30 echo
31 einfo "If you'd like to use httpush's learning mode, please CTRL-C now"
32 einfo "and enable the xml 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 httpush-reindex
58 ewarn "reindex script has been renamed httpush-reindex"
59
60 dodoc README ChangeLog doc/*
61 }

  ViewVC Help
Powered by ViewVC 1.1.20