Lines 4-36
Link Here
|
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="2" |
6 |
|
6 |
|
7 |
inherit eutils |
7 |
inherit autotools eutils |
8 |
|
8 |
|
9 |
DESCRIPTION="A lightweight HTTP/SSL proxy" |
9 |
DESCRIPTION="A lightweight HTTP/SSL proxy" |
10 |
HOMEPAGE="http://www.banu.com/tinyproxy/" |
10 |
HOMEPAGE="http://www.banu.com/tinyproxy/" |
11 |
SRC_URI="http://www.banu.com/pub/tinyproxy/1.6/${P}.tar.gz" |
11 |
SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2" |
12 |
|
12 |
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
15 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" |
16 |
IUSE="debug socks5 +http-via-header transparent-proxy" |
16 |
IUSE="debug +filter-proxy reverse-proxy transparent-proxy |
|
|
17 |
+upstream-proxy +xtinyproxy-header" |
18 |
|
19 |
DEPEND="app-text/asciidoc" |
20 |
RDEPEND="" |
17 |
|
21 |
|
18 |
DEPEND="socks5? ( net-proxy/dante )" |
|
|
19 |
RDEPEND="${DEPEND}" |
20 |
|
22 |
|
21 |
src_prepare() { |
23 |
src_prepare() { |
22 |
use http-via-header || epatch "${FILESDIR}"/${PN}-no-via.patch |
24 |
epatch "${FILESDIR}"/${P}-ldflags.patch |
|
|
25 |
eautoreconf |
23 |
} |
26 |
} |
24 |
|
|
|
25 |
src_configure() { |
27 |
src_configure() { |
26 |
econf \ |
28 |
econf \ |
27 |
--enable-xtinyproxy \ |
29 |
$(use_enable filter-proxy filter) \ |
28 |
--enable-filter \ |
30 |
$(use_enable reverse-proxy reverse) \ |
29 |
--enable-upstream \ |
31 |
$(use_enable transparent-proxy transparent) \ |
30 |
`use_enable transparent-proxy` \ |
32 |
$(use_enable upstream-proxy upstream) \ |
31 |
`use_enable debug` \ |
33 |
$(use_enable xtinyproxy-header xtinyproxy) \ |
32 |
`use_enable debug profiling` \ |
34 |
$(use_enable debug) \ |
33 |
`use_enable socks5 socks` \ |
|
|
34 |
|| die "econf failed" |
35 |
|| die "econf failed" |
35 |
} |
36 |
} |
36 |
|
37 |
|