/[gentoo-x86]/net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild
Gentoo

Contents of /net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Feb 28 20:03:10 2015 UTC (5 years, 4 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +3 -3 lines
add ~arm, bug #540102

(Portage version: 2.2.17/cvs/Linux x86_64, RepoMan options: --include-arches="arm", signed Manifest commit with key 072AD062)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/tinyproxy-1.8.3-r3.ebuild,v 1.10 2013/10/09 17:10:27 ago Exp $
4
5 EAPI="5"
6
7 inherit autotools eutils systemd user
8
9 DESCRIPTION="A lightweight HTTP/SSL proxy"
10 HOMEPAGE="http://www.banu.com/tinyproxy/"
11 SRC_URI="http://www.banu.com/pub/${PN}/1.8/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 ~arm ia64 ppc sparc x86"
16
17 IUSE="test debug +filter-proxy minimal reverse-proxy
18 transparent-proxy +upstream-proxy +xtinyproxy-header"
19
20 REQUIRED_USE="test? ( xtinyproxy-header )"
21
22 DEPEND="!minimal? ( app-text/asciidoc )"
23
24 pkg_setup() {
25 enewgroup ${PN}
26 enewuser ${PN} "" "" "" ${PN}
27 }
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-1.8.1-ldflags.patch
31 epatch "${FILESDIR}"/${P}-r2-DoS-Prevention.patch
32
33 use minimal && epatch "${FILESDIR}/${PN}-1.8.1-minimal.patch"
34
35 sed -i \
36 -e "s|nobody|${PN}|g" \
37 -e 's|/var/run/|/run/|g' \
38 etc/${PN}.conf.in || die "sed failed"
39
40 sed -i \
41 -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
42 configure.ac || die
43
44 eautoreconf
45 }
46
47 src_configure() {
48 if use minimal; then
49 ln -s /bin/true "${T}"/a2x
50 export PATH="${T}:${PATH}"
51 fi
52
53 econf \
54 $(use_enable debug) \
55 $(use_enable filter-proxy filter) \
56 $(use_enable reverse-proxy reverse) \
57 $(use_enable transparent-proxy transparent) \
58 $(use_enable upstream-proxy upstream) \
59 $(use_enable xtinyproxy-header xtinyproxy) \
60 --disable-silent-rules \
61 --localstatedir=/var
62 }
63
64 src_test() {
65 # The make check target does not run the test suite
66 emake test
67 }
68
69 src_install() {
70 default
71
72 dodoc AUTHORS ChangeLog NEWS README TODO
73
74 diropts -m0775 -o ${PN} -g ${PN}
75 keepdir /var/log/${PN}
76
77 newinitd "${FILESDIR}"/${PN}-1.8.3-r2.initd tinyproxy
78 systemd_dounit "${FILESDIR}"/${PN}.service
79 systemd_dotmpfilesd "${FILESDIR}"/${PN}.tmpfiles.conf
80 }
81
82 pkg_postinst() {
83 elog "For filtering domains and URLs, enable filter option in the configuration"
84 elog "file and add them to the filter file (one domain or URL per line)."
85 }

  ViewVC Help
Powered by ViewVC 1.1.20