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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Apr 22 19:15:11 2005 UTC (9 years, 4 months ago) by mrness
Branch: MAIN
www-proxy -> net-proxy
(Portage version: 2.0.51.19)

1 mrness 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/www-proxy/httpush/httpush-0.9_beta11.ebuild,v 1.1 2005/04/01 14:08: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="xml2"
17    
18     RDEPEND="dev-perl/URI
19     dev-perl/MIME-Base64
20     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     }

  ViewVC Help
Powered by ViewVC 1.1.20