/[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.5 - (hide annotations) (download)
Wed Jan 7 13:58:42 2015 UTC (4 months, 2 weeks ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Reassign as and cleanup discussed at https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg66357.html

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 mcummings 1.3 # Copyright 1999-2006 Gentoo Foundation
2 mrness 1.1 # Distributed under the terms of the GNU General Public License v2
3 pacho 1.5 # $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 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 mrness 1.4 IUSE="xml"
17 mrness 1.1
18     RDEPEND="dev-perl/URI
19 mcummings 1.3 virtual/perl-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 mrness 1.4 xml? ( dev-perl/XML-Twig )"
25 mrness 1.1
26     S="${WORKDIR}/${MY_P}"
27    
28     pkg_setup() {
29 mrness 1.4 if ! use xml ; then
30 mrness 1.1 echo
31     einfo "If you'd like to use httpush's learning mode, please CTRL-C now"
32 mrness 1.4 einfo "and enable the xml USE flag."
33 mrness 1.1 epause 3
34     echo
35     fi
36     }
37    
38     src_unpack() {
39     unpack ${A}
40 mrness 1.4 cd "${S}"
41 mrness 1.1 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